connect and access Function in Microsoft Dynamics NAV Web service from NodeJS?

139 Views Asked by At

I am new to SOAP we services and recently got task to consume existing NAV service from Node.js. My Node.js code is on Google cloud functions.

So far I tried really hard using this answer: Is it possible to access Microsoft Dynamics NAV Web service from NodeJS?

But it seems like I am not able to get any response except 'Nan'.

what should be my values for wsdl_headder and wsdl_option?

this is my request, REQUESTXML =

<GETDETAIL LanguageCode="ENG" ID="1042" TNo="T00205" TaxBreakdown="TRUE">

  <SUBHEADERS>
    <SUBHEADER Name="SALES"/>
  </SUBHEADERS>
</GETDETAIL>

and this is what we call in OLD JAVA code, xmlCommunicationPort.getdetail(REQUESTXML, returnString);

xmlCommunicationPort is the object created in during Authentication and getdetail is a method generated automatically by a java.

0

There are 0 best solutions below