SOAP-WSDL - mucking with namespaces

Posted on Mon Apr 21 16:56:51 2008 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