0

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

harikrishnan
  • 1,985
  • 4
  • 32
  • 63

1 Answers1

1

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.

Francisco Durdin Garcia
  • 12,540
  • 9
  • 53
  • 95
z44.nelther
  • 898
  • 5
  • 8