Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAPBodyElement in Axis

 
Dominic Steng�rd
Ranch Hand
Posts: 186
  • 0
  • 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
  • 0
  • 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