(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
<[email protected]>
_______________________________________________
Xml-compile mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile

Reply via email to