File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!