Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
Hi all,

i created a simple helloworld webservice in .net. now i want to call webservice in my android application created in android studio. please help me.
Posted
Comments
Prasad Khandekar 4-Jun-13 6:10am    
Android Studio is a new Android development environment based on IntelliJ IDEA. So process or code for calling a web service remains unaffected.

For soad based web service you can try generating stub using wsdl2java and use it to call the soap web service. Alternatively you can even use DefaultHttpClient to manually constuct the XML payload and call the SOAP web service.

For JSON based simple again you can use DefaultHttpClient.

Please go through following article on CP

http://www.codeproject.com/Articles/112381/Step-by-Step-Method-to-Access-Webservice-from-Andr.

Regards,
josh-jw 4-Jun-13 6:11am    
ur link is not working. plz give any useful links.
Prasad Khandekar 4-Jun-13 6:15am    
Try looking at following

1. http://www.codeproject.com/Articles/304302/Calling-Asp-Net-Webservice-ASMX-From-an-Android-Ap

2. http://matthias.jimdo.com/2011/07/04/consuming-restful-web-services-on-android-using-spring-android/
3. http://www.ibm.com/developerworks/webservices/library/ws-android/
josh-jw 4-Jun-13 6:25am    
thnx. i will go through it.
josh-jw 4-Jun-13 6:41am    
in android studio , hoe we can add ksoap library? there is no option like properties of project for add jar file

1 solution

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