What kind of authentication does the web service expect?
There was recently a discussion on how to authenticate a kSoap2 client with a web service and the conclusion was that kSoap2 does not support WS-Security and it would take significant work to implement such support in a client. There is the option of basic security.
Have you managed using the web service using soapUI or some other, non-kSoap2, client?
All i know is that there is a SAP webserver and not sure how to know what type of authentification it expects or how to know that. I found this link here and it might be using WS-Security.
Do you know another approach to connecting from Android to a SAP server?
I have tried using HttpClient and basic auth but that didn't work either.I kept getting the message that i am not authorized.
Joined: Oct 04, 2006
Depending on the situation and the requirements, I would consider a mediator service that uses SOAP web service to communicate with the SAP server and, for instance, JSON to communicate with the mobile device.
Such a mediator service can easily be set up using existing integration frameworks/tools.
You should be able to tell from the WSDL of the SAP service whether it uses WS-Security or not. If it does, there probably are WS-Policy data in the WSDL.