[Xml-compile] Fault Responses
Errietta Kostala
errietta at errietta.me
Fri May 19 14:16:42 GMT 2017
(sorry for emailing again but I think last time I hit a wall because I
wasn't registered_
'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>
I've tried:
33 return +{
34 Fault => {
35 faultcode => pack_type( '
http://schemas.xmlsoap.org/soap/envelope/', 'Client'),
36 faultstring => $descr,
37 detail => { FaultDetails => {
39 # ErrorCode => $code,
40 #ErrorMessage => $string, } }
41 },
42 _RETURN_CODE => $status,
43 };
(That returns that FaultDetails isn't allowed in `detail`)
And:
return +{
FaultDetails => { ErrorCode => .., ErrorMessage => .., faultcode => ..,
faultstring => .. } }
That returns that FaultDetails isnt' allowed in the response
I also found a reference to 'MyOperation_FaultDetailsFault_FaultMessage' in
the WSDL and tried that the same way as FaultDetails and got the same error.
How can I make this work?
Thanks
--
Errietta Kostala
<errietta at errietta.me>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20170519/4dcbaac7/attachment.htm>
More information about the Xml-compile
mailing list