2

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?

Mark Estrada
  • 9,013
  • 37
  • 119
  • 186

2 Answers2

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.

This post also talks about KSOAP and Authenticated web-services.

Community
  • 1
  • 1
Swayam
  • 16,294
  • 14
  • 64
  • 102
  • 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
0

Hi see this example for KSOAP.

If you are using WSHTTPBINDING watch this.

Hope this will give you some information.

Community
  • 1
  • 1
Nirmal
  • 2,340
  • 21
  • 43