SyntaxFix
Write A Post
Hire A Developer
Questions
Typecast the envelope to SoapPrimitive:
SoapPrimitive result = (SoapPrimitive)envelope.getResponse(); String strRes = result.toString();
and it will work.