This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Namespace to method parameters in Axis 1.4

 
Anand Natarajan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Anand Natarajan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Any help or guidance. Please help.

Thanks,
Anand
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic