J JanG Member Licensed User Longtime User May 4, 2014 #1 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: Code: 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: May 4, 2014
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: Code: 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?
DonManfred Expert Licensed User Longtime User May 4, 2014 #2 Try putting Code: job1.Username = "DOMAIN\USER" job1.Password = "PW" after Code: job1.Download("http://X.X.X.X:YYYY/services") Upvote 0
Try putting Code: job1.Username = "DOMAIN\USER" job1.Password = "PW" after Code: job1.Download("http://X.X.X.X:YYYY/services")
J JanG Member Licensed User Longtime User May 4, 2014 #3 Thanx, but still the same problem... Upvote 0
J JanG Member Licensed User Longtime User May 4, 2014 #4 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: May 4, 2014 Upvote 0
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 ???
Erel B4X founder Staff member Licensed User Longtime User May 5, 2014 #5 Http library currently only supports basic and digest authentications. Upvote 0