[Xml-compile] Prefixing soap envelope

Mark Overmeer mark at overmeer.net
Wed Nov 26 14:12:25 GMT 2008


* Adam Bartosik (moldovenu at gmail.com) [081126 13:54]:
> 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>

That is a common problem with mixing namespace-aware and namespace-less
schema's :(  Therefore, the default compile option for XML::Compile is
   use_default_namespace => 0

You may also experiment with the option (destination not important)
   prefixes => [ '' => 'do not use' ]

Which version of XML::Compile do you use?  And which version of X::C::SOAP?

The SOAP implementation currently lacks a few of the features which
XML::Compile has.  I am working on a major rewrite to get that to
work.  However, until that is finished, there are some issues...
-- 
Regards,
               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list