What happens to a Java object’s life when it is passed to a SOAP web service and returned after modification? I know it is serialized, mar-shelled, converted to XML etc. But i am not sure about the sequence.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You usually start with a generated object whose class is decorated with XML annotations. After filling your object with data, you pass it as a parameter to a web service method. The JAX-WS libraries will use JAXB and the annotations on your object to marshal it into XML, pack it into a SOAP message, and send it over the network to a web service endpoint.
On the server side, the SOAP message is disassembled and the object XML is unmarshaled. At this point, the method logic executes and provides a return value. If that return value is another XML serializable object, we go through the whole process again to marshal and send the response.