posted 13 years ago
Hi,
I am using Axis 1.4 to access webservice. My stubs and the skeleton has been generated using WSDL2Java. But when i submit my request to the webservice my namespace to the method parameters is getting overridden with empty namespace. Has anyone faced the same issue. How to over come it. I really appreciate any guidance.
Here is my request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getProfiles xmlns="http://namespace.test.com/testns">
<subject_type xmlns="">USER_ID</subject_type>
<subject xmlns="">1234567</subject>
<content_selector xmlns="">CONTENT_ID</content_selector>
<content_value xmlns="">34567</content_value>
</getProfiles>
</soapenv:Body>
and my webservice accepts the following request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getProfiles xmlns="http://namespace.test.com/testns">
<subject_type>USER_ID</subject_type>
<subject>1234567</subject>
<content_selector>CONTENT_ID</content_selector>
<content_value>34567</content_value>
</getProfiles>
</soapenv:Body>
Thanks in advance