I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-04-21 13:56:51-07 by noah
mucking with namespaces
I need to interface with a SOAP server which doesn't accept the following format:
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <getElement xmlns="http://services.company.com/"> <elementId>12345</elementId> </getElement> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Instead, it requires this:
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://services.company.com/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <ns2:getElement> <elementId>12345</elementId> </ns2:getElement> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
How do I do this using SOAP::WSDL? Do I create my own serializer class, or is there another way? Thanks, Noah
Direct Responses: 7716 | Write a response