My goal is to be able to expose Codeunits as Web Services and to be able to access their data from a data outside the network using VB .Net.
I was able to do this inside the network by creating a Visual Basic (or C#) project and connecting to a Web Service at this address:
http://localhost:7047/DynamicsNAV/WS/CR ... ./services
However, that address obviously won't work anywhere but on the host machine.
I'm trying to do the same thing, just outside the network and that's where I'm coming up empty.
Any help would be appreciated.
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thank you for the simple solution.
You'll also in your .NET app create new network credentials and specify login and password in your code.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
As long as I am logged in under the same domain, I can access the services using a connection string like this:
http://[computer name]:7047/DynamicsNAV/WS/CRONUS%20Canada,%20Inc./services
However, if I am outside of that domain, even logged into the same computer, that string no longer works.
If I replace the computer name with the static ip of that computer, I get two security prompts: one for the computer logon, and then one for the service.
This is where I get stumped, I am not aware of a username and password combo for the service. What am I doing wrong?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.