tags:

views:

167

answers:

3

Hi ! I would like to be able to see the XML Stream generated by my CXF generated from WSDL client. Is there a way to do this ?

For example, I'm building my request with Java objects, and I would like to see the XML stream built by CXF before it sends it to the server.

Thank you for your answer !

+1  A: 

You can use TCPMon to capture the web service requests and responses as they're sent and received.

Brian Agnew
ok thank you, I started using also TcpTrace on Windows, also I'm now writing a servlet to analyse the request, I guess we can't analyse the Xml request from the WS client, I think it'a shame...
But TCPMon will intercept the client/server communication, so you'll see stuff as it comes from the client.
Brian Agnew
+2  A: 

You can use the LoggingInterceptors CXF includes.

See: http://cwiki.apache.org/CXF20DOC/debugging.html

Daniel Kulp
A: 

If you want to see the XML payload formatted try Membrane Monitor. It is an interceptor like TCPMon.

baranco