I have added Customer Card Page as in Web Service form 810 and place a check mark on Published.
Then I checked web service availablity by entering the address
http://localhost:7047/DynamicsNAV/WS/services in the Internet Explorer and it is working fine.
Now I m trying to call web service through Visual C#.
I am trying to add service by "Add service Reference".
In Add Service Reference Window I wrote the address
http://localhost:7047/DynamicsNAV/WS/services
but I got the following error.
Metadata contains a reference that cannot be resolved: 'http://localhost:7047/DynamicsNAV/WS/Page/Customer_List'.
There was an error downloading 'http://localhost:7047/DynamicsNAV/WS/Page/Customer_List'.
The request failed with the error message:
--
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><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 Profile table.</faultstring><detail><string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">You do not have permission to read the Profile table.</string></detail></s:Fault></s:Body></s:Envelope>
--.
Metadata contains a reference that cannot be resolved: 'http://localhost:7047/DynamicsNAV/WS/services'.
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM'.
The remote server returned an error: (401) Unauthorized.
If the service is defined in the current solution, try building the solution and adding the service reference again.
Please suggest me any solution.....
Comments
Navision Technical Consultant
Navision Consultant
You had given user id and pass check user role or assign user as super user
Thank You
Navision Consultant
ie: reference.WebService foo = new reference.WebService;
foo.Credentials = new System.Net.NetworkCredential("User","password","DOMAIN");
We had similar problems unitl we did that correctly.
But I have this problem when I add the service reference.
When I place this address http://localhost:7047/DynamicsNAV/WS/services in Add service reference window and click on GO then I get error!
When I published a page(Standard or Customized) or Codeunit(standard) as a Web service I got the error. But When I published a Customized Codeunit then I didn't get any error. I could easily get the codeunit method.
Navision Consultant
did you check the link in Internet explorer.?
Navision Consultant(Technical and Functional)
Phone No: 09979876474
Email : anshpat2826@gmail.com
Did you solve this?