Consuming Web services INTO NAV

ottobe
Member Posts: 67
I am about to build functionality for reading invoice data from a customer into NAV 2009. The customer exposes incoices using a web service on his server.
The problem is that all information from Microsoft, and most postings I have found on the net is about web services cover the opposite; how to expose a webservice from NAV.
From what I have found out it is possible to use automation like XMLHTTP and DOMdocument, but that involves a lot of coding including parsing of the XML.
I guess using an XML port would be better.
Do anybody have some ideas of the best way to do this? Links?
The problem is that all information from Microsoft, and most postings I have found on the net is about web services cover the opposite; how to expose a webservice from NAV.
From what I have found out it is possible to use automation like XMLHTTP and DOMdocument, but that involves a lot of coding including parsing of the XML.
I guess using an XML port would be better.
Do anybody have some ideas of the best way to do this? Links?
0
Comments
-
Hi
I use Visual Studio to build a web reference or a class for the web service. Compile a .dll and put that into the Add-ins folder for the server and/or the client. That is the fastest way in my experience to implement web service communication in NAV tree tier.
Look here http://www.dynamics.is/?p=1381________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
The quickest way would be the suggestion above. The best way however, imho, is to roll up your sleeves and start leveraging the XMLHTTP and XMLDOMDocument automations. It's a lot of work, but if you keep reusability in mind it's worth the effort. Have a look at this post at Freddys Blog: http://blogs.msdn.com/b/freddyk/archive ... 9-sp1.aspx
Sometime ago I started off with this code to call webservices. I abstracted all the complexity away by writing wrappers and now I can call any SOAP webservice using the same methods and parameters, including Navision itself for all sorts of multicompany integration.0
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