This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes Namespace to method parameters in Axis 1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Namespace to method parameters in Axis 1.4" Watch "Namespace to method parameters in Axis 1.4" New topic
Author

Namespace to method parameters in Axis 1.4

Anand Natarajan
Greenhorn

Joined: Feb 25, 2009
Posts: 5
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

Joined: Feb 25, 2009
Posts: 5
Hi All,
Any help or guidance. Please help.

Thanks,
Anand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Namespace to method parameters in Axis 1.4
 
Similar Threads
namespace problem in request soap message
JAX-RPC and Calendar question
Webservices with Axis 1.3
Server.userException: Exception while executing Client
problem with perl web services and java client