It's not a secret anymore!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAPBodyElement in Axis" Watch "SOAPBodyElement in Axis" New topic
Author

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
Greenhorn

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.
 
Consider Paul's rocket mass heater.
 
subject: SOAPBodyElement in Axis
 
Similar Threads
axis, xsd:int and multiRef
Apache axis arraylist problem
WS-I monitor?
Exception: java.lang.illegal Argument Exception
problem with perl web services and java client