• Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAPBodyElement in Axis  RSS feed

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Javacoders!

When running call.invoke() in my current Axis client the following SOAP body is generated and sent:



What the Web Service expects is:



As you can tell the xml elements <username>, <password> and <xmlDocument> are not included in the Axis generated SOAPBody but are called <argx>.

How can I use call.invoke() and set the SOAPBody elements to specific names, not the default <argx> names?

Kind regards
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change your client to generate document/literal encoding of the SOAP message. Looks like your client now is doing a rpc/encoded style.
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!