Web Service between different NAV
Gonzalo
Member Posts: 19
Hi Experts,
I've two different clients both in NAV 2016, in one of them I've publised a codeunit with just a function (this function is set Local = NO). And from the other client, I want to call that web service and get a decimal. (also I want to set some parameters to that function)
In .NET is pretty easy (I'm able to see the function adding the reference), but from NAV how in earth do I create that url in order to access to that function??
I tried something like that, but it doesn't work: http://ipserver1:8147/DynamicsNAV90/WS/CHRONUS/Codeunit/test/functiontest?param1=1000.
Thanks
I've two different clients both in NAV 2016, in one of them I've publised a codeunit with just a function (this function is set Local = NO). And from the other client, I want to call that web service and get a decimal. (also I want to set some parameters to that function)
In .NET is pretty easy (I'm able to see the function adding the reference), but from NAV how in earth do I create that url in order to access to that function??
I tried something like that, but it doesn't work: http://ipserver1:8147/DynamicsNAV90/WS/CHRONUS/Codeunit/test/functiontest?param1=1000.
Thanks
0
Answers
-
Hi Gonzalo, I have to developer the same thing, but I have NAV2013. What do you think if we try to developer, togheter, a solution?
I have made a research and I have found that is possible only to do a DLL the should be work like a proxy, using a service WCF - channelfactory.
Please, contact me here or by mail massimo@pasqualinfomatica.com
thank you0 -
You have to pass parameters as a SOAP request, i.e. you have to POST an XML document adhering to the SOAP specification and the WSDL of the published web service to its url.
There are many examples on the net. Please search for it.
You can either create an assembly and use this, as @massimopasquali suggested, or you can do it using some Dotnet objects from within C/AL.0 -
Hi Vaprog your idea its interested, can you give us an example about you have suggested before : "You have to pass parameters as a SOAP request, i.e. you have to POST an XML document adhering to the SOAP specification and the WSDL of the published web service to its url."
0 -
Yeah, Vaprog we would be very pleased if you give us an example.
Thanks0 -
you can find an example in codeunit 248 "VAT Lookup Ext. Data Hndl" in NAV2016. It is using a webservice call to validate a VAT-number.0
-
Thanks Remco, that is exactly what I'm looking for0
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
- 323 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
