Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Missing Element in SOAP Request  RSS feed

 
visu Nekk
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!