I've made several web services (both SOAP and ODATA) in Nav, and when I call these from a Visual Studio program, they work well. BUT if I test them from a Web Service Test program, e.g. Boomerang (Google Chrome), SOA Client (Firefox), SoaUI, all tests returns Authentication error (401). I've tried to alter the authentication types, and even set the NAV to use NTLM authentication without any success.
A webshop programmer who should consume one of my webservices from a PHP program had a similar problem. We digged a lot in the Internet, and there was several propositions to what to do, but nothing worked.
Is there anybody in here, who might have any clue for a solution? That would be great!
Best Reagards Jes Kristensen
0
Comments
Try webservice studio. Hope this works with your service.
Link to download: https://webservicestudio.codeplex.com/
If it does not work, don't worry it happens. Just try to consume in Visual studio or some other client it will work.
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.
Try System.Net.WebPermission.
Zaid Tariq
Dynamics NAV/365 BC Developer at Dynamics 360
please like / agree / verify my answer, if was helpful.
But it is not actualy calling the web service from a Visual Studio project, which is the problem - it works weel. The main problem is the authentication problems from the various test clients and plugins or joust calling a Nav web service from a non Visual Studio project. The mentioned Webservice Studio / Codeplex (from 2008) which should work, is a Visual Studio project too, and therefore it will work (but good to know, there is at least one test program whick works for a Nav Web Service!). It seems to Navision web services only can be called from a Visual Studio project, and from no other platforms, neither the common test tools nor e.g. a PHP program.
It would be very nice if I am wrong, and somebody knows how to call a web service from a non Visual Studio platform
Best regards Jes Kristensen
Also, please check the SOAPUI tool if you didn't.
Hope this helps.
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.
Best regards Jes Kristensen
Yes and for future purpose use WebStudio tool which i have mentioned above its great and works like a charm with NAV web service. Some days ago i was facing the same 401 authorization issue but trust me this tool saves me.
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.
SoapUI works with NAV Webservices, at least the 5.3 version.
You need to fill the Username and Password in the Request Properties.
Regards.
Yes you can. Not only php but from any platform.
For PHP have a look: https://blogs.msdn.microsoft.com/freddyk/2010/01/19/connecting-to-nav-web-services-from-php/
https://www.adv-usa.com/2016/06/29/connecting-to-dynamics-nav-web-services-using-php/
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.
<add key="ServicesUseNTLMAuthentication" value="false"/>
with
<add key="ServicesUseNTLMAuthentication" value="true"/>