This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
Don't get me started about those stupid light bulbs.
 
subject: SOAPBodyElement in Axis