Nav2013 Webservice and Javascript NTML Authentication

IsumaruIsumaru Member Posts: 7
edited 2013-10-17 in NAV Three Tier
Hello ,

I tried to connect via Javascript to my webservice to recieve data from specific tables.
It works only when I run it with internet explorer 10 compatiblity mode or a lower version.
If I use the internet explorer there is a automatic authentication pop up for domain/username and password.
The problem is that i want to connect to the webservice from an mobile phone via java script and if the browser isn't a IE(as i know there is no IE for andorid and ios) there is no login pop up and you only get an error : HTTP/1.1 401 Unauthorized.
I used the code from "http://blogs.msdn.com/b/freddyk/archive/2010/01/21/connecting-to-nav-web-services-from-javascript.aspx".

I hope someone can help me with this problem.

best regards,
Isumaru

Comments

  • PoltergeistPoltergeist Member Posts: 200
    Do you have the line <add key="WebServicesUseNTLMAuthentication" value="true"></add> in the settingsfile of the webservice? Without it, it certainly is not going to work...
  • IsumaruIsumaru Member Posts: 7
    Yes I tried that but I still dont get a login pop up and the same error message "HTTP/1.1 401 Unauthorized"
  • thegunzothegunzo Member Posts: 274
    Try to add the web service host to Intranet Sites in Internet Explorer. That should trigger an automatic windows authentication.
    ________________________________
    Gunnar Gestsson
    Microsoft Certified IT Professional
    Dynamics NAV MVP
    http://www.dynamics.is
    http://Objects4NAV.com
  • IsumaruIsumaru Member Posts: 7
    The problem is that i cant use the Internet Explorer on the mobile phone(Android). :(
Sign In or Register to comment.