• 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

Missing Element in SOAP Request

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have generated client stubs from wsdl using wsdl2java. When I try to access the web service using the code, I get this exception:

SOAP request Body contains more than one body element - this service requires that all SOAP requests contain at most one body element.

When I checked out the SOAP request using tcpmon, I found that the outermost element of the soap body is missing. For e.g. if this request is to be transmitted ---

<soap-env xmlns="">
<soap-body>
<ws:Subscribe>
<wa:getDate>abc</wa:getDate>
</ws:Subscribe>
</soap-body>
</soap-env>

the following request is transmitted ---

<soap-env xmlns="">
<soap-body>
<wa:getDate>abc</wa:getDate>
</soap-body>
</soap-env>

The subscribe element is missing. How to correct this issue? Please help me out.

Thanks in advance,
Visu Nekk
 
reply
    Bookmark Topic Watch Topic
  • New Topic