Is it Possible to Manipulate NAV Data from an OData Web Service Outside of Dynamics NAV 2018?

Gigadros
Member Posts: 7
I am currently trying to do something identical to what is done in the following video:
https://www.youtube.com/watch?v=umcwT6TmWX8
Essentially, the goal is to have some sort of external website or application that can manipulate the records in NAV 2018. I have followed tutorials like this, and others from the Microsoft Docs website to no success. Whenever I get to the step in Visual Studio to Add Service Reference, I am always met with the same error:

The link in this error is not relevant to NAV, and I can't find a tutorial that does a method that isn't identical to this one, the most recent one I could fine was done in NAV 2016. I am unable to find any tutorials that use this 'OData Client Code Generation Tool' with NAV either.
Does there exist alternatives to achieve this in Dynamics NAV 2018?

Essentially, the goal is to have some sort of external website or application that can manipulate the records in NAV 2018. I have followed tutorials like this, and others from the Microsoft Docs website to no success. Whenever I get to the step in Visual Studio to Add Service Reference, I am always met with the same error:

The link in this error is not relevant to NAV, and I can't find a tutorial that does a method that isn't identical to this one, the most recent one I could fine was done in NAV 2016. I am unable to find any tutorials that use this 'OData Client Code Generation Tool' with NAV either.
Does there exist alternatives to achieve this in Dynamics NAV 2018?
0
Answers
-
I think you are mission some text in your URL..
Normally it's http://server:port/Instance/Protocol/company/service
Aren't there missing service and company ?For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.1 -
I am currently trying to complete this on a Chronus Demo Database on a remote server. Also, I display the XML data in a web browser when using that same address, so I am unsure what the issue is here.0
-
Have you copyed the URL for the page webservice?
As I wrote above, it looks like your URL is incomplet.
Do you have a screenshot of the webservice page?For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.0 -
Thank you for pointing out the issue with the URL, I had changed it and am now receiving a more meaningful error message. It seems to be something relating to authorization:
There was an error downloading 'http://addresshere:7048/DynamicsNAV110/OData/Company('CRONUS Canada, Inc.')/Customers/$metadata'.
The request failed with HTTP status 400: Bad Request.
Metadata contains a reference that cannot be resolved: 'http://addresshere:7048/DynamicsNAV110/OData/Company('CRONUS Canada%2C Inc.')/Customers'.
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.
Also, do I need to have developed the webservice first? I haven't made anything yet because I am having problems connecting my Visual Studio Service Reference to my address, which is odd since I do get an XML displayed in both IE and Chrome, along with the built in IE in Visual Studio.0 -
You new/Next problem is a worse problem, you need to connect to your webservice as a NAV user.
And perhaps you need to look at using a certificateFor help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.0
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
- 320 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