Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get XML file from Java Request object before sending. Web services SOAP

Salman5May 15 2014 — edited May 15 2014

I am building Java application for Online Web Services and let's call it application A . I got theWSDL file form the second party so I can communicate with their application and let's call it application B.

From the WSDL file I generate the Java classes needed which are Requests and Responsesclasses. Application A will send some request object after setting the needed parameters and excepting response object from application B.

The connection is established and both applications A and B are communicating with each other.

Question:

From application A how can I get the xml data(file or text) for the request object before sending it to application B?

As described the connection is done by passing Java object as request and I know that in some point this request will be converted to xml file. How to get it?

--- EDIT ----

Important Information is missing that may cause confusion.

I am generated the Java Classed have been generated using Axis framework

This post has been answered by Salman5 on May 15 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2014
Added on May 15 2014
1 comment
1,000 views