mirror of
https://github.com/filp/whoops.git
synced 2026-09-02 05:27:07 +00:00
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:
@@ -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>';
|
||||
|
||||
Reference in New Issue
Block a user