Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Java
androidHttpTransport.call (soap_action + GetPersonnel_METHOD, enveloppe);
SoapObject result = (SoapObject) envelope.getResponse ()


This is the soap response I got

Java
anyType{EntityKey=anyType{EntityContainerName=DSS_SOTUBIEntities;{
EntityKeyValues=anyType{EntityKeyMember=anyType{Key=PersonnelID; Value=2; }; }; 
EntitySetName=Personnels; } Adresse=ariana; CAB=784555584; CodeCommande=1; CommandeID=5;
 CommercialID=2; DateCreation=2013-12-13T00:00:00; CommercialID=2;


View Properties

Java
String res=null; 
SoapObject pii = (SoapObject)result.getProperty(0); 
res = pii;


res displays the following result:

Java
anyType{EntityContainerName=DSS_SOTUBIEntities;{
EntityKeyValues=anyType{EntityKeyMember=anyType{Key=PersonnelID; Value=2; }; }; 
EntitySetName=Personnels; 


and for getProperty(1)

Java
SoapObject pii = (SoapObject)result.getProperty(1);
 pii = (SoapObject)result.getProperty(1);


res show"undefined"

how to recuper the value of Adresse,CAB, CodeCommande...

Thanx for help.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900