This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.