[Xml-compile] Fault Responses

Mark Overmeer mark at overmeer.net
Mon May 22 07:43:33 GMT 2017


* Errietta Kostala (errietta at errietta.me) [170519 14:17]:
> 've been trying to emulate the following behaviour:
> 
> <s:Fault>
>      <faultcode>s:Client</faultcode>
>      <faultstring xml:lang="is-IS">Business Rule Error</faultstring>
>      <detail>
>         <FaultDetails xmlns="(our namespace)" xmlns:i="
> http://www.w3.org/2001/XMLSchema-instance">
>            <ErrorCode>301</ErrorCode>
>            <ErrorMessage>Message here</ErrorMessage>
>         </FaultDetails>
>      </detail>
>   </s:Fault>

Is there no help in $wsdl->explain(...)?

My guess is that you should not explicitly specify the FaultDetails
wrapper: only the content.
-- 
Regards,

               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list