Re: [soaplite] Adding namespaces to SOAP-ENV::Envelope
- This is an excellent question - something I will have to write about... at
least more explicitly on majordojo.com. Future versions of SOAP::Lite will
make this easier. Here is how *I* would address the problem:
This tells about how to override the root element of the response. In this
way you can take exact control over the namespaces and prefixes used...
> I'd like to be able to add further namespaces into the Envelope.^byrne :/
> The web service I am connecting my SOAP::Lite client to declares many
> methods and data types in its own namespace. SOAP::Lite handles the method
> names in a rather peculiar way, and doesn't seem to handle the structure
> types very well at all.
> For method names, what I'm expecting is this:
> >SOAP-ENV:Envelope [...] xmlns:myNamespace="myURI"
> To unsubscribe from this group, send an email to:
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
- On Wed, 26 Nov 2003, Byrne Reese wrote:
> This is an excellent question - something I will have to write about... atusing call() gives you a lot more flexibility.
> least more explicitly on majordojo.com. Future versions of SOAP::Lite will
> make this easier. Here is how *I* would address the problem:
which is very helpful, I have used this technique successfully to set the
namespace of the envelope, because ebXML-MS requires you specify the
namespace of things like ebXML, xlink, etc in the Envelope, Header and
Unfortunately there is still now way to specify a namespace in the
SOAP-BODY or SOAP-Header.
Any help on munging these without writing my own serializer would be much
p.s. I have uploaded version 0.6 of SOAP::Data::Builder to CPAN, it is now
more OO and doesn't churn out pages of debug info anymore. Patches welcome
Aaron J Trevena - Perl Hacker, Kung Fu Geek, Internet Consultant
AutoDia --- Automatic UML and HTML Specifications from Perl, C++
and Any Datasource with a Handler. http://droogs.org/autodia