0

My question is somewhat similar to Get boolean from SoapObject (kSOAP2),

so, the thing is my soap response is something like

anyType{ResCode=100; TransID=123456; Signature=abc123def456; OutputParams=anyType{params=anyType{useruid=a-e23; status=1; fullname=john smith; }; }; }

pretty much with the same format as the link above, but using the answers provided there I still keep getting

java.lang.RuntimeException: illegal property: useruid

and the code that i used was

//resp = resp.getProperty("OutputParams");
//resp = (SoapObject) resp.getProperty("params");
//str = resp.getPropertyAsString("useruid");
str = resp.getPropertyAsString("params");

all these didn't work... anybody has more ideas?

Community
  • 1
  • 1
acvon
  • 161
  • 3
  • 6
  • 21

1 Answers1

1

Thanks for the help guys, I figured out the problem its cause of my carelessness when I didn't try the combinations as below

resp = (SoapObject) resp.getProperty("OutputParams");
resp = (SoapObject) resp.getProperty("params");
str = resp.getPropertyAsString("useruid");
vikas
  • 1,535
  • 1
  • 13
  • 22
acvon
  • 161
  • 3
  • 6
  • 21