Error when checking available web service

battoosaibattoosai Member Posts: 16
edited 2012-10-28 in NAV Three Tier
Hi,

I am encountering the following error when running the command in the browser:
http://localhost:7047/DynamicsNAV/WS/Services

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
<s:Body>
<s:Fault>
<faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">
a:Microsoft.Dynamics.Nav.Types.Exceptions.NavReadDeniedPermissionException
</faultcode>
<faultstring xml:lang="en-US">
You do not have permission to read the Company table.
</faultstring>
<detail>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/"&gt;
You do not have permission to read the Company table.
</string>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

I created a new windows user and assigned it with a super user role in NAV. I also pointed the CustomConfig file to the correct database. Then setup the Microsoft Dynamics Nav Server and Microsoft Dynamics Business Web Services to the same user name. I followed all the steps stated in the walkthrough of NAV and also created a codeunit and exposed it as web service.

Are there additional setups that are needed in NAV, windows or SQL Server?

Thanks!

Answers

  • kinekine Member Posts: 12,562
    It depends on:

    Security model (if extended, you need to synchronize)
    How you are connecting to the URL (IE, Chrome, Firefox...)
    If SPNs and delegation is needed and if it is correctly set when needed
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • battoosaibattoosai Member Posts: 16
    kine wrote:
    It depends on:

    Security model (if extended, you need to synchronize)
    How you are connecting to the URL (IE, Chrome, Firefox...)
    If SPNs and delegation is needed and if it is correctly set when needed


    Hi Kine,

    I have already synchronize the Security as well and I am just using the Standard Security model. I am also using firefox because I do not know why it doesn't load properly in IE (always fails with a different error message). I am also just trying it on a test PC which already houses the Dynamics NAV Server and the Database Server. So no delegation is needed or is it?

    Btw, I was able to load the Webservices list using another database, I just want to know why this happens and what is the solution for this. Thanks a lot.
  • battoosaibattoosai Member Posts: 16
    It is now working. Basically, I deleted all the user accounts. Created a new user account and assigned this to the Dynamics Nav Server and Web Service.

    Thanks for the help :)
Sign In or Register to comment.