Too late to answer. but FYI and others who find this useful,
By executing String.valueOf(result) , you print the entire contents of the body. but in order to get your values ββusing parameters, first of all you need to click to fix SoapObject .
I don't know if there is any easy way to find the correct SoapObject , but still this method does the trick, and as soon as you get the correct SoapObject , then you are done. find below how to find the correct SoapObject ,
First you need to check the number of parameters in your first SoapObject ,
result.getPropertyCount();
you will receive less quantity for this, as this is the very first cover,
then print and see which parameter gives you corect data,
result.getProperty(0); result.getProperty(1); etc ...
Once you find the right parameter, take SoapObject . eg,
SoapObject result2 = (SoapObject) result.getProperty(0);
then check the amount of this object. and do the same as above until you get the correct SoapObject .
After you find the latest SoapObject , it will print as follows without useless lines,
anyType{gnName = Prasad; address = Address of the person; ; workingDays = 5; gnDivision = California; contactNumber = 0123456789}
Now you can continue this object as follows:
SoapObject result3 = (SoapObject) result2.getProperty(5); Log.v("Name : ", result3.getProperty("gnName").toString());
And you will get the result in DDMS as below,
Name : Prasad
I think this will help you, let me know if you have any additional problems.