<div dir="ltr">(sorry for emailing again but I think last time I hit a wall because I wasn&#39;t registered_<div><br></div><div><span style="color:rgb(33,33,33);font-size:13px">&#39;ve been trying to emulate the following behaviour:</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">&lt;s:Fault&gt;</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">         &lt;faultcode&gt;s:Client&lt;/faultcod</span><span style="color:rgb(33,33,33);font-size:13px">e&gt;</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">         &lt;faultstring xml:lang=&quot;is-IS&quot;&gt;Business Rule Error&lt;/faultstring&gt;</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">         &lt;detail&gt;</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">            &lt;FaultDetails xmlns=&quot;(our namespace)&quot; xmlns:i=&quot;</span><br style="color:rgb(33,33,33);font-size:13px"><a href="http://www.w3.org/2001/XMLSchema-instance" rel="noreferrer" target="_blank" style="font-size:13px">http://www.w3.org/2001/XMLSchema-instance</a><span style="color:rgb(33,33,33);font-size:13px">&quot;&gt;</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">               &lt;ErrorCode&gt;301&lt;/ErrorCode&gt;</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">               &lt;ErrorMessage&gt;Message here&lt;/ErrorMessage&gt;</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">            &lt;/FaultDetails&gt;</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">         &lt;/detail&gt;</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">      &lt;/s:Fault&gt;</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">I&#39;ve tried:</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px"> 33   return +{</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px"> 34     Fault =&gt; {</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px"> 35       faultcode     =&gt; pack_type( &#39;</span><br style="color:rgb(33,33,33);font-size:13px"><a href="http://schemas.xmlsoap.org/soap/envelope/" rel="noreferrer" target="_blank" style="font-size:13px">http://schemas.xmlsoap.org/soap/envelope/</a><span style="color:rgb(33,33,33);font-size:13px">&#39;, &#39;Client&#39;),</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px"> 36       faultstring   =&gt; $descr,</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px"> 37      detail =&gt; { FaultDetails =&gt; {</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px"> 39       #  ErrorCode =&gt; $code,</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px"> 40       #ErrorMessage =&gt; $string, } }</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px"> 41    },</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px"> 42     _RETURN_CODE =&gt; $status,</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px"> 43   };</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">(That returns that FaultDetails isn&#39;t allowed in `detail`)</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">And:</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">return +{</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">FaultDetails =&gt; { ErrorCode =&gt; .., ErrorMessage =&gt; .., faultcode =&gt; ..,</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">faultstring =&gt; .. } }</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">That returns that FaultDetails isnt&#39; allowed in the response</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">I also found a reference to &#39;MyOperation_FaultDetailsFault</span><span style="color:rgb(33,33,33);font-size:13px">_FaultMessage&#39; in</span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">the WSDL and tried that the same way as FaultDetails and got the same error.</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">How can I make this  work?</span><br style="color:rgb(33,33,33);font-size:13px"><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">Thanks</span><br></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Errietta Kostala<br>&lt;<a href="mailto:errietta@errietta.me">errietta@errietta.me</a>&gt;</div></div>