6582Generating SOAP::Fault detail elements
- Jul 1, 2011I'm running into a wall on generating child elements within SOAP::Fault <detail> response. I can generate one child element just fine, but nothing I try will create multiple child elements. I've found examples online of this sort of output but no code to do it. Passing in a hashref or arrayref isn't doing it.
I'm using the SOAP::Lite package and Perl 5.8. I'm generating the fault by calling die with a SOAP::Fault constructor. What I want is an output that looks like this:
<soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<faultstring>Must pass start_time</faultstring>
<error_string>Missing start_time argument</error_string>
<time>Fri Jul 1 15:45:06 UTC 2011</time>
Any help would be appreciated.
- Next post in topic >>