Cannot add web service reference in VS

Cem_Karaer
Member Posts: 281
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
?
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
Dynamics NAV Developer since 2005
0
Answers
-
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 20050
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 321 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions