Connect to Query Web Service Using OData - Use Domain Not IP Address
doddwell
Member Posts: 65
Hello
I Have created a Web Service that exposes a Query object and NAV has automatically assigned the following URL:
http://ServerName.DomainName.local:9098/DatabaseName/OData/Company('Company-Name')/My_Customers
When I try to consume the Query using the above URL either via Excel or a Browser, my credentials won't work. If, however, I use the IP Address, it works:
http://192.168.50.131:9098/DatabaseName/OData/Company('Company-Name')/My_Customers
On the Nav Service Tier server, the OData Services "OData Base URL" was originally set to blank. I have updated this (and then restarted the service) to http://ServerName.DomainName.local:9098/DatabaseName/OData/ and this hasn't made any difference.
Many Thanks
I Have created a Web Service that exposes a Query object and NAV has automatically assigned the following URL:
http://ServerName.DomainName.local:9098/DatabaseName/OData/Company('Company-Name')/My_Customers
When I try to consume the Query using the above URL either via Excel or a Browser, my credentials won't work. If, however, I use the IP Address, it works:
http://192.168.50.131:9098/DatabaseName/OData/Company('Company-Name')/My_Customers
On the Nav Service Tier server, the OData Services "OData Base URL" was originally set to blank. I have updated this (and then restarted the service) to http://ServerName.DomainName.local:9098/DatabaseName/OData/ and this hasn't made any difference.
Many Thanks
0
Best Answer
-
You have to use IP instead of domain due to unavailability of DNS server.Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.6
Answers
-
You have to use IP instead of domain due to unavailability of DNS server.Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.6
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions