web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Connect to Dynamics NAV 2015 Web service

(0) ShareShare
ReportReport
Posted on by 305

I am currently implementing a NAV 2015 solution where I need to access a couple of NAV Page Web services. The problem is that I can't get past the Authentication.

I have tried using both http and https but no matter what I try I'm unable to connect.

Trying to browse the Web Service using either  IE or Chrome just results in a neverending stream of login windows.

 

NAV is set up to use Windows Credentials.

Using http I'm able to add the reference to my Visual Studio 2012 project. But when trying to use the service I keep getting errors regarding credentials. Using https the neverending stream of login windows appear.

 

Example for NAV 2013 like (http://msdn.microsoft.com/en-us/library/dd355316(v=nav.71).aspx) does not work. For example the UseDefaultCredentials attribute doesn't exist. I'm new to NAV but to me it seems like the Web Services implementation have changed from NAV 2013 to NAV 2015.

 

Is there anyone that know how to configure/connect to the service? Spent the last 2 days testing different combinations of configurations and code.

*This post is locked for comments

I have the same question (0)
  • keoma Profile Picture
    32,729 on at
    RE: Connect to Dynamics NAV 2015 Web service

    hi,

    follow msdn.microsoft.com/.../dd338962(v=nav.80).aspx

    use the sample from chapter "Calling the Web Services" and add the nav webservice in vs2012 as web service reference (not as wcf service reference). property UseDefaultCredentials does only exist when reference the nav web service as .net web service ref. (not as wcf service reference).

  • Fredrik Danielsson Profile Picture
    305 on at
    RE: Connect to Dynamics NAV 2015 Web service

    I will try that again. But for now I keep getting the popup below when trying to add the reference.
    I have tried both with and without SSL.

  • Tharanga Chandrasekara Profile Picture
    23,118 on at
    RE: Connect to Dynamics NAV 2015 Web service

    Is your NAV web client working properly?

    Plus when you provide your login credentials provide with your domain.

    DOMAIN\UserName

  • keoma Profile Picture
    32,729 on at
    RE: Connect to Dynamics NAV 2015 Web service

    are the client pc and the server (with nav service) within the same windows domain?

    if there is a firewall active between the 2 pcs, turn it off.

    execute the web service url in the browser (ie). do you get a correct result without error (xml structure)?

  • Fredrik Danielsson Profile Picture
    305 on at
    RE: Connect to Dynamics NAV 2015 Web service

    The NAV Web Client works properly and I provide my credentials in the DOMAIN\UserName form´.

    Both the client and the server are on the same domain. I have administrator privileges on both client and on the server.

    The Windows firewall is active (set by Group Policies) on the server but all port that are involved are open.

  • keoma Profile Picture
    32,729 on at
    RE: Connect to Dynamics NAV 2015 Web service

    is the account you use as login credentials for the web service a nav user with role super?

    did you try the full qualified servername instead of the (short) servername?

    try to use the ip address instead of the servername in the webservice url:

    e.g. http://servername:7047/... --> http://10.0.0.2:7047/...

  • Fredrik Danielsson Profile Picture
    305 on at
    RE: Connect to Dynamics NAV 2015 Web service

    The user has SUPER credentials in NAV.

    I've tried the following (all tries requires login)

    http://ipaddress - OK

    http://shortname - empty webpage

    http://fullname - empty webpage

    https://ipaddress - Question about cert then OK

    https://shortname - Question about cert then emtpy webpage

    https://fullname - empty webpage

    So the responses are the same with short and full name, the quesiton about the cert for the ipadress and the shortname are expected since the cert is issued to the fullname.

    Any ideas to why is has this behaviour?

  • keoma Profile Picture
    32,729 on at
    RE: Connect to Dynamics NAV 2015 Web service

    hi,

    the dns resolution does not work correct.

    to fix follow:

    http://technet.microsoft.com/en-us/library/cc755882(v=ws.10).aspx

    http://technet.microsoft.com/en-us/library/cc959340.aspx

  • Fredrik Danielsson Profile Picture
    305 on at
    RE: Connect to Dynamics NAV 2015 Web service

    The dns resolution is fully functional. It will resolve the hostnames correctly.

    I am able to run client, administration from my client without any problems.

  • Verified answer
    keoma Profile Picture
    32,729 on at
    RE: Connect to Dynamics NAV 2015 Web service

    hm, ok.

    then check the SPNs and follow this thread (also a discussion about empty pages, etc.):

    www.mibuso.com/.../viewtopic.php

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans