php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32857 Correct SoapFaults encoded in SOAP Body does work if Axis sends HTTP error 500
Submitted: 2005-04-27 20:04 UTC Modified: 2005-05-17 17:45 UTC
From: thetaphi@php.net Assigned:
Status: Closed Package: SOAP related
PHP Version: 5CVS-2005-04-27 (dev) OS: Solaris 9
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thetaphi@php.net
New email:
PHP Version: OS:

 

 [2005-04-27 20:04 UTC] thetaphi@php.net
Description:
------------
After updating our application server to a Axis 1.2 (before it was Axis 1.1), the handling of SOAP faults in PHP does not work correct.
Axis 1.2 sends a HTTP server error 500 together with the XML body containing the SoapFault with its error message (in Axis the Message of a java.rmi.RemoteException).
Instead of throwing a correct exception containing the FaultString of the XML body, PHP displays a "Internal Server Error" fault (I think because he gets the 500 HTTP Error).
PHP should also handle "500" as valid response from SOAP if it contains a correct XML body with SOAP envelope and decode it. If there is some HTML or other non-XML in it (a "real" HTTP error) it can throw the exeption with the server error like before.


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-17 17:16 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-05-17 17:45 UTC] thetaphi@php.net
Works since Dmitry's last change: http://cvs.php.net/diff.php/php-src/ext/soap/php_http.c?r1=1.55.2.14&r2=1.55.2.15&ty=h
Tested this on Saturday but forgot to close this bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 07 23:01:27 2024 UTC