You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by velu1980 <ve...@gmail.com> on 2011/03/03 15:28:36 UTC

Namespace to method parameters in Axis 1.4

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
-- 
View this message in context: http://old.nabble.com/Namespace-to-method-parameters-in-Axis-1.4-tp31059150p31059150.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org