Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: returning Fault response in XML::Compile::SOAP::HTTPDaemon

by markov (Scribe)
on Apr 28, 2010 at 10:04 UTC ( #837260=note: print w/ replies, xml ) Need Help??


in reply to returning Fault response in XML::Compile::SOAP::HTTPDaemon

return +{ PolicyException => { faultcode => pack_type(SOAP11ENV, 'Server') , faultstring => 'policy exception' , detail => { messageId => $error_code , text => $error_message , variables => [ $error_code, $error_message, ] } } };

See last part of the XML::Compile::SOAP::Daemon man-page.

The fault you want to produce is addressed by its WSDL part name "PolicyException". This directly enforces the datatype you have to specify with "detail". Confusingly, that detail element is also named PolicyException. WSDL parts can be element- or type-style. This way, we can unify both styles.


Comment on Re: returning Fault response in XML::Compile::SOAP::HTTPDaemon
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://837260]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-12-28 22:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls