Use tcpdump, wireshark, or a similar tool.
On Tue, Apr 13, 2010 at 8:38 AM, Lucio Crusca <lu...@sulweb.org> wrote: > Hello *, > > I'm coding some XMLRPC client tests for certain XMLRPC webservices. The server > is Django and it's being written by someone else, but that's only to say I > have no control over that code. All I have to do is to write client Java tests > for the documented services. > > Now one of my tests fails. The developer who writes server code asked me to > add to my failed test output the xml string sent by my client to his server. > Here is my current java code: > > XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); > config.setServerURL(new URL(url)); > config.setBasicUserName("admin"); > config.setBasicPassword("admin"); > > XmlRpcClient client = new XmlRpcClient(); > client.setConfig(config); > > String rpcmethod = "resources.myrpcservice"; > params = new Object[]{1}; > client.execute(rpcmethod, params); > > (basically cut & pasted from the examples). How do I intercept the xml string > my client sends to the server? > > Thanks in advance, > Lucio. > -- Germanys national anthem is the most boring in the world - how telling!