Cannot add web service reference in VS

Cem_KaraerCem_Karaer Member Posts: 281
edited 2012-02-15 in NAV Three Tier
Hello,

I want to use NAV web service in my web application. I copy and paste the web service URL (http://[some IP number]:7047/DynamicsNAV/WS/[company name]/Codeunit/[Web service name]) to the IE, IE requests my credentials, after entering the right credentials I am able to see the XML schema of the web service (this is what I want). But when I try to add a web reference in my VS solution using the same URL, VS does not ask me any credential at all, shows me the method list and method signatures but no means to add the web reference. The following error is on the "Web services found at this URL" section:

There was an error downloading 'http://[some IP number]:7047/DynamicsNAV/WS/[company name]/Codeunit/[Web service name]'.
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

I strongly believe that VS uses wrong credentials to get to the URL. How can I get the full error specification and make VS forget the past :)?
Cem Karaer @ Pargesoft
Dynamics NAV Developer since 2005

Answers

  • Cem_KaraerCem_Karaer Member Posts: 281
    I figured out the problem. When I try to add a web reference, the server on which I make the development issued a failure audit error. So I discovered that the account I run Visual Studio is not sufficient to add the reference (I don't know why yet). So I ran the VS as the Log-on account that runs Microsoft Dynamics NAV Server service on the server. Finally it worked!
    Cem Karaer @ Pargesoft
    Dynamics NAV Developer since 2005
Sign In or Register to comment.