Options

Read XML from webservice url from NAV 2016

abhi1901abhi1901 Member Posts: 102
Hi Guys,

I have a task to read a XML from webservice url.
The 3rd party application will not have request-response scenario.
I have to pull the data from the webservice from nav coding.

Kindly let me know how we can achieve it.

Thank you.

Answers

  • Options
    vnhackvnhack Member Posts: 9
    use dll .net

    System.Xml.XmlDocument.'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    System.Xml.XmlNode.'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
  • Options
    abhi1901abhi1901 Member Posts: 102
    I know how to communicate with Request-Response scenario using the .net var in NAV.
    But here there will be no Request-Response concept.
    There is one URL from which I have to read XML.
    3rd party here will not respond any xml.
  • Options
    EvREvR Member Posts: 178
    Why not just write an assembly in c# that handles everything and use it in c/al code?
  • Options
    archer89archer89 Member Posts: 337
    Please write down the webservice call. How Do you retrieve the xml?
    In general you can use xmldom or .net xml classes to load that xml Text into a xmldocument object.
    best regards
    Franz Kalchmair, MVP
    Alias: Jonathan Archer

    please like / agree / verify my answer, if it was helpful for you. thx.
    Blog: http://moxie4nav.wordpress.com/
Sign In or Register to comment.