[Xml-compile] Fault Responses
Errietta Kostala
errietta at errietta.me
Mon May 22 08:17:32 GMT 2017
TIL of $wsdl->explain! Thank you so much, I figured it out:
51 return +{
52 FaultDetailsFault => {
53 faultcode => pack_type( '
http://schemas.xmlsoap.org/soap/envelope/', 'Client'),
54 faultstring => $descr,
55
56 detail => {
57 ErrorCode => $code,
58 ErrorMessage => $string,
59 }
60 },
61 _RETURN_CODE => $status,
62 };
Thanks
On Mon, May 22, 2017 at 8:43 AM Mark Overmeer <mark at overmeer.net> wrote:
> * 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
>
> --
Errietta Kostala
<errietta at errietta.me>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20170522/47ae695b/attachment.htm>
More information about the Xml-compile
mailing list