This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Web Services and the fly likes SOAPBodyElement in Axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAPBodyElement in Axis" Watch "SOAPBodyElement in Axis" New topic

SOAPBodyElement in Axis

Dominic Steng�rd
Ranch Hand

Joined: Feb 05, 2001
Posts: 186
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

Dominic Steng�rd<br />Sun Certified Java 2 Programmer
Arthur Ford

Joined: Sep 06, 2006
Posts: 22
Change your client to generate document/literal encoding of the SOAP message. Looks like your client now is doing a rpc/encoded style.
I agree. Here's the link:
subject: SOAPBodyElement in Axis
It's not a secret anymore!