| Author |
cannot authentificate with ksoap2
|
Gabriela Radu
Greenhorn
Joined: Jan 26, 2012
Posts: 5
|
|
Hello,
I am trying to authentificate to a SAP server with ksoap and i am stuck... it seems that it does not want to take into consideration my username and password. This is my code:
I receive this error:
The response is null, the androidHttpTransport.requestDump is null. What am I doing wrong, do you know? Thank you for your time...
|
 |
Ivan Krizsan
Bartender
Joined: Oct 04, 2006
Posts: 2193
|
|
Hi!
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?
Best wishes!
|
My free books and tutorials: http://www.slideshare.net/krizsan
|
 |
Gabriela Radu
Greenhorn
Joined: Jan 26, 2012
Posts: 5
|
|
Hello
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.
Thank you
|
 |
Ivan Krizsan
Bartender
Joined: Oct 04, 2006
Posts: 2193
|
|
Hi!
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.
Best wishes!
|
 |
 |
|
|
subject: cannot authentificate with ksoap2
|
|
|