36 $xml .=
'<?xml version="1.0" encoding="UTF-8"?>';
37 $xml .=
'<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">';
38 $xml .=
' <SOAP-ENV:Body>';
39 $xml .=
' <SOAP-ENV:Fault>';
40 $xml .=
' <faultcode>'. htmlspecialchars($exception->getCode()) .
'</faultcode>';
41 $xml .=
' <faultstring>'. htmlspecialchars($exception->getMessage()) .
'</faultstring>';
42 $xml .=
' <detail><trace>'. htmlspecialchars($exception->getTraceAsString()) .
'</trace></detail>';
43 $xml .=
' </SOAP-ENV:Fault>';
44 $xml .=
' </SOAP-ENV:Body>';
45 $xml .=
'</SOAP-ENV:Envelope>';
Whoops - php errors for cool kids.
Catches an exception and converts it to an Soap XML response.
toXml(\Exception $exception)
Converts a Exception into a SoapFault XML.
Abstract implementation of a Handler.