Skip to main content

how to see outbound xml

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
yulinxp
Offline
Joined: 2008-02-22

I use JAX WS to generate the stub classes based on wsdl. I can call web service passing my object.
How can I find the outbound xml that represents my java object?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
spamfoodie
Offline
Joined: 2011-02-23

If you use "glassfish" as your Application/Web -server, you can add the following
parameters (<yourDomain>/config/domain.xml):

<jvm-options>-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true</jvm-options>
<jvm-options>-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true</jvm-options>

or

<jvm-options>-Dcom.sun.metro.soap.dump=true</jvm-options>

You have to restart your server.
Then have a look in the server.log file....

Or use TCPmon: <a target="_blank" href="http://ws.apache.org/commons/tcpmon/download.cgi">http://ws.apache.org/commons/tcpmon/download.cgi</a>


Or use &quot;SoapUI&quot; to send requests and see your responses.