I can uses Web service client classes to obtain the result but instead of the text result i want complete SOAP message in my JavaSE program. How can I do that? Any Idea?
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.
Yes there is.
Use
Dispatch<Source>to work on the SOAP message JAX-WS Dispatch.Example
DISCLAIMER: Did not even attempt to compile the code:
You can also specify if you want to work on the HTTP payload (as XML) i.e. SOAP envelope or the SOAP payload i.e. the response.
You will have write code to handle the raw XML (e.g. use DOM).
You can use this api if you use JAX-WS or CXF.
For AXIS2 it is possible to work on XML as well.Just will be some specific apis
Of course there is also SAAJ you can use.