<div dir="ltr"><div>TIL of $wsdl->explain! Thank you so much, I figured it out:</div><div><br></div><div><div> 51 return +{</div><div> 52 FaultDetailsFault => {</div><div> 53 faultcode => pack_type( '<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>', 'Client'),</div><div> 54 faultstring => $descr,</div><div> 55 </div><div> 56 detail => {</div><div> 57 ErrorCode => $code,</div><div> 58 ErrorMessage => $string,</div><div> 59 }</div><div> 60 },</div><div> 61 _RETURN_CODE => $status,</div><div> 62 };</div></div><div><br></div><div>Thanks</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, May 22, 2017 at 8:43 AM Mark Overmeer <<a href="mailto:mark@overmeer.net">mark@overmeer.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Errietta Kostala (<a href="mailto:errietta@errietta.me" target="_blank">errietta@errietta.me</a>) [170519 14:17]:<br>
> 've been trying to emulate the following behaviour:<br>
><br>
> <s:Fault><br>
> <faultcode>s:Client</faultcode><br>
> <faultstring xml:lang="is-IS">Business Rule Error</faultstring><br>
> <detail><br>
> <FaultDetails xmlns="(our namespace)" xmlns:i="<br>
> <a href="http://www.w3.org/2001/XMLSchema-instance" rel="noreferrer" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><br>
> <ErrorCode>301</ErrorCode><br>
> <ErrorMessage>Message here</ErrorMessage><br>
> </FaultDetails><br>
> </detail><br>
> </s:Fault><br>
<br>
Is there no help in $wsdl->explain(...)?<br>
<br>
My guess is that you should not explicitly specify the FaultDetails<br>
wrapper: only the content.<br>
--<br>
Regards,<br>
<br>
MarkOv<br>
<br>
------------------------------------------------------------------------<br>
Mark Overmeer MSc MARKOV Solutions<br>
Mark@Overmeer.net <a href="mailto:solutions@overmeer.net" target="_blank">solutions@overmeer.net</a><br>
<a href="http://Mark.Overmeer.net" rel="noreferrer" target="_blank">http://Mark.Overmeer.net</a> <a href="http://solutions.overmeer.net" rel="noreferrer" target="_blank">http://solutions.overmeer.net</a><br>
<br>
</blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Errietta Kostala<br><<a href="mailto:errietta@errietta.me">errietta@errietta.me</a>></div></div>