kSoap2 printing request dump

Hi,

kSoap2 is a library for SOAP which is used in Androids.

Here's a neat little trick, if you want to see the actual XML sent received.

1. Set httpTransport.debug=true; before making the call

2. Read values from the httpTransport object afterwards

String s1 = httpTransport.requestDump;
String s2 = httpTransport.responseDump;

Have fun !!!

Comments

Popular posts from this blog

Encrypt and Decrypt Images Using Java

Build your own Network sniffer

ASP Response.Write newline