Reach NAV 2016 Webservice on virtual server from public URL

Erik_Heirbaut
Member Posts: 16
I have a virtual server with a NAV 2016 environment, in which I created a Webservice. In order to access the webserive from outside the server, I configured NAvUserPassword security with a self-signed certificate thumbprint and a dedicated non-AD NAV user with SUPER permissions.
When I access the service URL on the server as https://localhost:29247/SERVICE/WS/Company/Codeunit/CUName, it works fine with the user credentials, although it takes long to establish the connection.
But when I try to access the same service from my own PC, using the server's public IP address instead of localhost, I get an ERR_CONNECTION_TIMED_OUT error. I added the service SOAP port 29247 to the firewall for inbound and outbound traffic.
Does anyone have an idea about what I am fogetting here?
When I access the service URL on the server as https://localhost:29247/SERVICE/WS/Company/Codeunit/CUName, it works fine with the user credentials, although it takes long to establish the connection.
But when I try to access the same service from my own PC, using the server's public IP address instead of localhost, I get an ERR_CONNECTION_TIMED_OUT error. I added the service SOAP port 29247 to the firewall for inbound and outbound traffic.
Does anyone have an idea about what I am fogetting here?
0
Best Answer
-
You are using HTTPS but are using localhost as the path? it should either being using a legit SSL certificate or a self signed certificate ie. https://mypcname.mydomainname.com:port/services/ws/company etc.
By using localhost you are going to hit unsecure error messages from your browser, get the cert sorted first and then try again. Hope this helps!5
Answers
-
Is the VM in Azure? Then you may need to add an 'endpoint' to the VM for port 29247 (using the Azure portal)Jan Veenendaal0
-
No, it's not in Azure. It is a virtual server on which we develop and test.0
-
You are using HTTPS but are using localhost as the path? it should either being using a legit SSL certificate or a self signed certificate ie. https://mypcname.mydomainname.com:port/services/ws/company etc.
By using localhost you are going to hit unsecure error messages from your browser, get the cert sorted first and then try again. Hope this helps!5
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