note 107430 modified in soapserver.fault by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 21:16:24 +0000 |
| Subject: | note 107430 modified in soapserver.fault by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187865@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: <?php 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>"); ?>
--was--
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>");
http://php.net/manual/en/soapserver.fault.php