hello,
i am developing a android app
and i am not use never .net asmx webservice in my app
i try so many codes but its not give me right solution
so plz give me code to use this service
my webservice is
www.foodpoodle.softtechservice.com/Webservice/login.asmx
so plz give me code or sample
my code not working
thanks
Loading


Hemant KumarRank #1,202 · 1.5K reputationPosted Feb 25, 2012, 3:43 AM EST
Please see this
http://stackoverflow.com/questions/1048310/how-to-call-a-net-web-service-from-android
http://www.codeproject.com/Articles/304302/Calling-Asp-Net-Webservice-ASMX-From-an-Android-Ap
Dharmesh SharmaRank #1,974 · 741 reputationPosted Feb 25, 2012, 3:52 AM EST
i have already seen this links
but getting error
this is my code
Shen Hengbin94 reputationPosted Feb 25, 2012, 3:58 AM EST
http://code.google.com/p/ksoap2-android/downloads/detail?name=ksoap2-android-assembly-2.4-jar-with-dependencies.jar&can=2&q=
2, Invoke your webservice by a simple sample like below.
Shen Hengbin94 reputationPosted Feb 25, 2012, 4:02 AM EST
Dharmesh SharmaRank #1,974 · 741 reputationPosted Feb 27, 2012, 10:50 PM EST
net get any responce
so plz have a look n give me new code
thanks
Shen Hengbin94 reputationPosted Feb 28, 2012, 5:27 AM EST
Shen Hengbin94 reputationPosted Feb 28, 2012, 5:33 AM EST
I don't know what's wrong with you.
I have uploaded my sample solution you can download it and try.
Dharmesh SharmaRank #1,974 · 741 reputationPosted Feb 28, 2012, 5:59 AM EST
i am sorry for that
but i am working on next module and using same your code but when i get responce but i am not get how to parse
i am using this webservice
http://www.foodpoodle.softtechservice.com/Webservice/diettype.asmx
but its return this one
diettype_listResponse{diettype_listResult=anyType{schema=anyType{element=anyType{complexType=anyType{choice=anyType{element=anyType{complexType=anyType{sequence=anyType{element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; }; }; }; }; }; }; }; diffgram=anyType{NewDataSet=anyType{Table=anyType{id=4; user_id=2; Wheat_x0020_Free=true; Egg_x0020_Free=true; Diabetes=true; GlutenFree=false; Low_x0020_GI=false; Heart=false; Dairy_x0020_Free=false; Low_x0020_Fat=false; Low_x0020_Chemical=false; Low_x0020_Salt=false; Low_x0020_Carb=false; Organic=false; vegetarian=false; Lactose=false; Preservative=false; }; }; }; }; }
and i need of this part
Wheat_x0020_Free=true; Egg_x0020_Free=true; Diabetes=true; GlutenFree=false; Low_x0020_GI=false; Heart=false; Dairy_x0020_Free=false; Low_x0020_Fat=false; Low_x0020_Chemical=false; Low_x0020_Salt=false; Low_x0020_Carb=false; Organic=false; vegetarian=false; Lactose=false; Preservative=false;
and i need each value of every field
like whear_x0020_free=true
like that
but i dont understand how to get cox its not a xml
thanks
and plz add me on skype or gmail
my id is [email protected]
and send me your id for more help
Shen Hengbin94 reputationPosted Feb 28, 2012, 3:44 PM EST
Shen Hengbin94 reputationPosted Mar 16, 2012, 8:16 AM EDT
Dharmesh SharmaRank #1,974 · 741 reputationPosted Mar 16, 2012, 8:54 AM EDT
i have solve my problem with the help of your codes
thanks