This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAPBodyElement in Axis

 
Dominic Steng�rd
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
 
Arthur Ford
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic