File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes maps parameters to XML using JAXB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "maps parameters to XML using JAXB" Watch "maps parameters to XML using JAXB" New topic
Author

maps parameters to XML using JAXB

Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 724
On Ivan's notes, p.127, it says "JAX-WS maps the parameters of the method calls to XML using JAXB and inserts them into the SOAP message."

When doc/lit/wrapped is used, the response and request wrapper bean classes (JAXBElements) are generated by wsimport, for example Add.class and AddResponse.class. The parameters for the add(int num1, int num2) method are mapped to Add bean and the Add bean object is marshaled into XML before it is put into the SOAP body.

However, with doc/lit/unwrapped and rpc/lit, those response and request wrapper bean classes are not generated, how can the parameters be mapped to those bean (JAXBElements) before they are marshaled?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: maps parameters to XML using JAXB
 
Similar Threads
Convert @WebService implemenation class into @WebServiceProvider implementation class
How to generate Java annotations using Apache Axis
Spring-ws client with Jax-ws web service
ServiceMode Message and Provider<SOAPMessage>
Problems with JAXB-generated javadoc code