I designed a swing application which as a client for restful webservice. Now i want to display both request and response of the webservice as the business want to see
what is the request and response that has gone to webservice as that it acts as a debug too along with viewing the data returned by restful service. I can view response xml
but request i do not know how to generate xml for webservice request from client side. Please help me.
If you are using cxf framework you can use LogginIninterceptors and LogginOutinterceptors which will capture you request and responses respectively and further you can handle them however you want.
Also handlers as Anthony said, in case if you are using plain jax-ws.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop