[Xml-compile] Prefixing soap envelope

Adam Bartosik moldovenu at gmail.com
Wed Nov 26 13:54:03 GMT 2008


Hi,
I am using Catalyst::Controller::SOAP (based on XML::Compile, so this
is why I am writing here) as a SOAP 1.1 server and testing this
solution with Axis2 client. It is working fine unless I am returning
SOAP fault - Axis2 cannot get the content of the faultstring,
faultcode and detail, because they are in the same namespace as the
envelope.
I am looking for any way to prefix the envelope,

to get something like this:
<tns:Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<tns:Body><tns:Fault>
<faultcode>code</faultcode><faultstring>....

instead of
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Fault><faultcod
e>CODE</faultcode><faultstring>

How to prefix / change namespace for this SOAP envelope? I already
checked XML::Compile::SOAP, played with
XML::Compile::Schema::compile() options (passed by
Catalyst::Controller::SOAP->config->{xml_compile}->{}) but without any
success.

Thank you for any help,

-- 
Adam Bartosik
http://langs-tech-stuff.blogspot.com/



More information about the Xml-compile mailing list