• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

namespace problem in request soap message

 
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic