|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
returning Fault response in XML::Compile::SOAP::HTTPDaemonby buff (Acolyte) |
| on Apr 27, 2010 at 08:53 UTC ( [id://837059]=perlquestion: print w/replies, xml ) | Need Help?? |
|
buff has asked for the wisdom of the Perl Monks concerning the following question: Kind Monks, I'm building a SOAP interface using XML::Compile::SOAP::HTTPDaemon module (version 2.02). The communication protocol is defined by WSDL files. There also exists a reference implementation of the server. I got the HTTPDaemon running, I've loaded the WSDL definitions, and created a callback function for one of the defined operations. I'm also able to give a proper response for a proper request. WSDL definition of the operation follows:
The problem comes when something is wrong in the request and I want to throw an exception (return a fault response in SOAP terms). The reference server returns (e.g.) a message like this:
I'm unable to get this kind of XML out of nested hash structure returned from the callback function. I tried this...:
...but this leads to empty detail element in the response:
I also tried to create the PolicyException element (same as in the reference response) by myself using XML::LibXML and asigning it to the 'detail' key directly, but then I get this error message:
Kind Monks, could please give me some good advice?
Back to
Seekers of Perl Wisdom
|
|
|||||||||||||||||||||||||||||||||