This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes namespace problem in request soap message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "namespace problem in request soap message" Watch "namespace problem in request soap message" New topic
Author

namespace problem in request soap message

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi All,

I am using both AXIS 1.2 RC2, Custom (De)Serializers on both client side and server side. I am using custom java beans in both my ejb method call and return type.

I am using axis stubs in my java web service client program and trying to consume a ejb web service. Below is the request soap message I got from my AXIS TCPMonitor:

<?xml version="1.0" encoding="UTF-8"?>
<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>
<getDPL xmlns="http://ws.si.com/wsdl/dcplanlistws">
<d-p-l-r web-ivr-flag="0" >
<br-request-bean xmlns="http://ws.si.com/schemas/dw"></br-request-bean>
</d-p-l-r>
</getDPL>
</soapenv:Body>
</soapenv:Envelope>



The problem with the above message is that there is no namespace declaration for the tag/element <d-p-l-r> and because of this on my server side my custom (de)serializer is not understanding this element and hence it is
unable to marshal this element. So what do I do or configure axis so that namespace declaration exists for each of the elements in my request soap message. Ideally I think I should send below soap request message to my server so that my deserializer on the server side can understand how to translate the incoming xml back to java objects. Please correct me if my understanding is wrong.

<?xml version="1.0" encoding="UTF-8"?>
<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>
<getDPL xmlns="http://ws.si.com/wsdl/dw">
<d-p-l-r web-ivr-flag="0" >
<br-request-bean xmlns="http://ws.si.com/schemas/dw"></br-request-bean>
</d-p-l-r>
</getDPL>
</soapenv:Body>
</soapenv:Envelope>



Thanks & Regards,


RR Kumaran
SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: namespace problem in request soap message
 
Similar Threads
sendind SOAP request
web service explorer testing Web service gets right return value, java client gets wrong value
Webservices with Axis 1.3
Namespace to method parameters in Axis 1.4
How to make .NET/AXIS Client add namespace to soap message elements