Fixed soap fault response for strice soap clients

Sopa clients which validate the soap fault against a xsd require the stacktrace to be nested in a child-element of `<detail>`
This commit is contained in:
Markus Staab
2014-05-24 11:51:30 +02:00
parent 2c89a358c8
commit 7a6549cf5c
+1 -1
View File
@@ -39,7 +39,7 @@ class SoapResponseHandler extends Handler
$xml .= ' <SOAP-ENV:Fault>';
$xml .= ' <faultcode>'. htmlspecialchars($exception->getCode()) .'</faultcode>';
$xml .= ' <faultstring>'. htmlspecialchars($exception->getMessage()) .'</faultstring>';
$xml .= ' <detail>'. htmlspecialchars($exception->getTraceAsString()) .'</detail>';
$xml .= ' <detail><trace>'. htmlspecialchars($exception->getTraceAsString()) .'</trace></detail>';
$xml .= ' </SOAP-ENV:Fault>';
$xml .= ' </SOAP-ENV:Body>';
$xml .= '</SOAP-ENV:Envelope>';