boski
boski

Reputation: 1146

Best way to parse Android / Java SoapObject return data

I have some data return from SoapObject (Android / Java)

final SoapObject result=(SoapObject)envelope.getResponse();
SoapObject so = (SoapObject) result.getProperty(0); 

this is how data looks like:

anyType{DocumentElement=anyType{Tabela=anyType{WER=1; TYU=0; NNN=0; ABC=0; BBB=Napoje; }; Tabela=anyType{WER=201; TYU=0; NNN=0; ABC=0; BBB=Alkohole; }; Tabela=anyType{WER=501; TYU=0; NNN=0; ABC=0; BBB=Pizza; }; Tabela=anyType{WER=601; TYU=0; NNN=0; ABC=0; BBB=Desery; };

I should parse that (like a String with Regex) or I can do it in better way?

Upvotes: 0

Views: 950

Answers (1)

Lalit Poptani
Lalit Poptani

Reputation: 67286

I had created a demo application for parsing the SOAP Response. Also if you want to convert the SOAP response in XML response and parse that can also be done. Checkout my example from my github source

Upvotes: 1

Related Questions