Web Service using Json in NAV 2016.

sv3006sv3006 Member Posts: 2
As anyone exposed Web Service using Json in NAV 2016. Is it possible to share the example.

Thanks in advance.

Answers

  • boraunalboraunal Member Posts: 10
    Hi,

    In our company we have done something for json web services. You can use Codeunit-1237-Get Json Structure to parse from json to xml and it will generate you an xml result.

    Or there is a DOTNET variable that allows you to turn json to xml document. But first you need to register Json dll to navision for your request. You can download it from offical site.

    Example code for Json to xml method
    XmlDocument := JsonConvert.DeserializeXNode(FileContent,'xml_Root');
  • sv3006sv3006 Member Posts: 2
    Hi Boraunal

    Thanks for the reply.
Sign In or Register to comment.