Consuming Web services INTO NAV

ottobeottobe Member Posts: 67
edited 2013-08-20 in NAV Three Tier
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?

Comments

  • thegunzothegunzo Member Posts: 274
    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.com
  • MarijnMarijn Member Posts: 69
    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.
Sign In or Register to comment.