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 <[email protected]> wrote:
> * Errietta Kostala ([email protected]) [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
> [email protected] [email protected]
> http://Mark.Overmeer.net http://solutions.overmeer.net
>
> --
Errietta Kostala
<[email protected]>
_______________________________________________
Xml-compile mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile