Android Question HttpUtils2 authentication problem - Web Service

JanG

Member
Licensed User
Longtime User
Hi community,

I have a simple task, but I despair of it. I want to connect to a SOAP Web Service hosted on a windows machine:
B4X:
DIM job1 as httpjob


job1.initialize("TestJob", me)

job1.Username = "DOMAIN\USER"
job1.Password = "PW"

job1.Download("http://X.X.X.X:YYYY/services")
The Username and the Password are correct. But every time I get "401: Unauthorized".

If I send the same request with the browser on the same device I get the authorization window for entering USER/PW. If I do it, I get the result of my webservice. But with my b4a code the authorization does not work.

What am I doing wrong?
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Try putting
B4X:
job1.Username = "DOMAIN\USER"
job1.Password = "PW"
after
B4X:
job1.Download("http://X.X.X.X:YYYY/services")
 
Upvote 0

JanG

Member
Licensed User
Longtime User
Now I think it is because my given Windows Webservice only supports Kerberos (SPNEGO) or NTLM Authentication. Is it right, that b4a (HttpUtils2) does not support it and so my project will never work :(???
 
Last edited:
Upvote 0
Top