Skip Menu |

This queue is for tickets about the XML-Compile-SOAP-Daemon CPAN distribution.

Report information
The Basics
Id: 121791
Status: rejected
Priority: 0/
Queue: XML-Compile-SOAP-Daemon

People
Owner: Nobody in particular
Requestors: errietta [...] errietta.me
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Fault Responses
Date: Fri, 19 May 2017 13:47:24 +0000
To: bug-XML-Compile-SOAP-Daemon [...] rt.cpan.org
From: Errietta Kostala <errietta [...] errietta.me>
Hello, I don't think this is a bug but I was hoping for some advice here. I'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 <errietta@errietta.me>
not a bug