note 107430 added to soapserver.fault
| From: | dub357 at gmail dot com | Date: | Wed, 08 Feb 2012 20:01:35 +0000 |
| Subject: | note 107430 added to soapserver.fault | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185925@lists.php.net to get a copy of this message | ||
This function also sends a 500 response code back to the client with the request.
This was causing issues with an Apache Axis 1.2 client I had so I instead implemented by own fault
handling:
header("Content-Type: text/xml");
header("Status: 200");
die("<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>500</faultcode>
<faultstring>".$ex->getMessage())."</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>");
----
Server IP: 64.71.164.2
Probable Submitter: 129.57.8.35
----
Manual Page -- http://www.php.net/manual/en/soapserver.fault.php
Edit -- https://master.php.net/note/edit/107430
Del: integrated -- https://master.php.net/note/delete/107430/integrated
Del: useless -- https://master.php.net/note/delete/107430/useless
Del: bad code -- https://master.php.net/note/delete/107430/bad+code
Del: spam -- https://master.php.net/note/delete/107430/spam
Del: non-english -- https://master.php.net/note/delete/107430/non-english
Del: in docs -- https://master.php.net/note/delete/107430/in+docs
Del: other reasons-- https://master.php.net/note/delete/107430
Reject -- https://master.php.net/note/reject/107430
Search -- https://master.php.net/manage/user-notes.php