Options

Cannot access webservice

navinbnavinb Member Posts: 51
edited 2011-07-26 in NAV Three Tier
Hi,

I am facing accesing webservice url with ipaddrese or names.The link works perfectly with localhost i.e
http://localhost:7047/DynamicsNAV/WS/CR ... ./services

But when i try to replace localhost with IP address or name system ask for credentials and doesnt display anything .
SQL Server ,NAV Server and NAV web service all are running with n/w service account,so i think no need to setup delegations .Please suggest

Comments

  • Options
    kinekine Member Posts: 12,562
    What about firewall? Or from which machine you are connecting when it is not working? From outside? Is the PC in domain? You need to send the correct credentials to work with he webservice...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    ArmondsArmonds Member Posts: 66
    I'm experiencing the same problem.

    What user right must have user under which the services is run in domain?
  • Options
    gedasgedas Member Posts: 87
    I would say localhost is connecting directly as ip and FQN is going in another way...
    Firewalls on ports for outside connections?
    Network settings?
    What error is in IE if you will set IE to show "not friendly Http error messages"?
    GB
  • Options
    kinekine Member Posts: 12,562
    navinb wrote:
    Hi,

    I am facing accesing webservice url with ipaddrese or names.The link works perfectly with localhost i.e
    http://localhost:7047/DynamicsNAV/WS/CR ... ./services

    But when i try to replace localhost with IP address or name system ask for credentials and doesnt display anything .
    SQL Server ,NAV Server and NAV web service all are running with n/w service account,so i think no need to setup delegations .Please suggest

    You need to setup delegation if they are running on different computers...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    ArmondsArmonds Member Posts: 66
    SQL and NAV services are on the same computer. I'm trying to connect to service from the same computer. There are no error messages nor in IE (just blank screen), nor in Events.
  • Options
    kinekine Member Posts: 12,562
    It means that internet explorer loads empty page or the connection will end? Because blank screen could be different thing... is the page loading finished sucessfully? Another possible way how to find more is to enable logging for service tier and check the logs.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    ArmondsArmonds Member Posts: 66
    Yes the page load ends successfully.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META content="text/html; charset=windows-1257" http-equiv=Content-Type></HEAD>
    <BODY></BODY></HTML>
    

    How to enable logging for service tier?
  • Options
    kinekine Member Posts: 12,562
    Than - have you some webservices published?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    mihail_kolevmihail_kolev Member Posts: 379
    did you try by IP instead of machine name?

    Anyway, if you use webservice it's better to set up delegation because of errors like this. Not so hard work to do.
    -Mihail- [MCTS]
  • Options
    ArmondsArmonds Member Posts: 66
    By IP also the login was asked.

    Will ask domain admin to add SPNs and delegations.
  • Options
    ArmondsArmonds Member Posts: 66
    Thanks, for help.

    SPNs did the trick

    P.S. same rake for the second time :oops: viewtopic.php?f=32&t=38312
  • Options
    smpgrlz2smpgrlz2 Member Posts: 12
    We have just now started this process and have been able to access the list of services in the form of an xml config page.

    Do the SPNs & Delegations look like what I have below?

    We added spns for a domain user we created, but could not get the Web Services Service to start, so we put it back to Network Service.

    setspn -A http/server domain\serviceuser

    setspn -A http/server.company.domain domain\serviceuser


    I have not attempted this yet:

    httpcfg delete urlacl –u http://+:7047/DynamicsNAV/

    httpcfg set urlacl -u http://+:7047/DynamicsNAV/ -a D:^(A;^;GX^;^;^; SID of user domain\serviceuser)
Sign In or Register to comment.