What is the best way to access a soap web service from an android device right now. I see a lot of different approaches but I am not sure which way is the best. Currently I need to create a small project where authentication is required to a SOAP base web service endpoint. Any hints?
Asked
Active
Viewed 1,178 times
2 Answers
2
Use the KSOAP 2 library to communicate with your web-service.
You can find numerous tutorials for ksoap and this is good place to start.
EDIT:
If you require authentication to connect to the web-service, you would need to build the header of the soap request. The following Stack Overflow questions should definitely guide you how to do the authentication.
- how to set soap Header using ksoap2 - android
- SOAP web service on android
- Basic HTTP authentication using KSOAP for android
- Blackberry kSoap2 & Soap Header
This post also talks about KSOAP and Authenticated web-services.
-
Saw this library also. But I cannot see how to authenticate using this library. If my soap based web service requires a username/password. Does this library support this and if so do you have any links to start with? – Mark Estrada Oct 04 '13 at 03:04
-
Updated the answer with a few links which should address your problem. – Swayam Oct 04 '13 at 03:57