Android Studio Soap Xml Request format not printing

489 Views Asked by At

The below Android soap xml request/resposen is printing in Eclipse. But, In Android Studio, Response is print, Request in XML format not printing. mySample Code:

Android Ksoap Xml request

AndroidHttpTransport httpTransport = new AndroidHttpTransport(URL);

    httpTransport.debug = true;

    httpTransport.call(SOAP_ACTION, envelope);

    httpTransport.requestDump

    httpTransport.responseDump

Thanks

1

There are 1 best solutions below

1
z44.nelther On

In case someone else is having the same problem I fixed it with the trim() method.

Log.d("TAG ", ""+(androidHttpTransport.requestDump).trim());

PD: Maybe the op wasn't calling a print method.