Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Calling NAV Web Service with Codeunit 1290 (NAV 2016)

$
0
0
Hello,

I'm trying to call a NAV Web Service from NAV with Codeunit 1290. (NAV 2016)

I defined a Codeunit in NAV with a simple Function

SetAndGet(_InParam : Text,VAR _Outparam :Text)

the Problem is, everytime I call the Web Service from NAV with a defined SOAP Request
<x:Envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:wst="urn:microsoft-dynamics-schemas/codeunit/wstestmip">
<x:Header/>
  <x:Body>
    <wst:SetAndGet>
      <wst:_InParam>1234</wst:_InParam>
      <wst:_OutParam/>
    </wst:SetAndGet>
  </x:Body>
</x:Envelope>

The Response is always only the wsdl Definition.
<definitions targetNamespace="urn:microsoft-dynamics-schemas/codeunit/wstestmip" xmlns="http://schemas.xmlsoap.org/wsdl/&quot; xmlns:tns="urn:microsoft-dynamics-schemas/codeunit/wstestmip">
  <types>
    <schema elementFormDefault="qualified" targetNamespace="urn:microsoft-dynamics-schemas/codeunit/wstestmip" xmlns="http://www.w3.org/2001/XMLSchema"&gt;
      <element name="SetAndGet">
        <complexType>
          <sequence>
            <element minOccurs="1" maxOccurs="1" name="_InParam" type="string" />
            <element minOccurs="1" maxOccurs="1" name="_OutParam" type="string" />
          </sequence>
        </complexType>
      </element>
      <element name="SetAndGet_Result">
        <complexType>
          <sequence>
            <element minOccurs="1" maxOccurs="1" name="_OutParam" type="string" />
          </sequence>
        </complexType>
      </element>
    </schema>
  </types>
  <message name="SetAndGet">
    <part name="parameters" element="tns:SetAndGet" />
  </message>
  <message name="SetAndGet_Result">
    <part name="parameters" element="tns:SetAndGet_Result" />
  </message>
  <portType name="wstestmip_Port">
    <operation name="SetAndGet">
      <input name="SetAndGet" message="tns:SetAndGet" />
      <output name="SetAndGet_Result" message="tns:SetAndGet_Result" />
    </operation>
  </portType>
  <binding name="wstestmip_Binding" type="tns:wstestmip_Port">
    <binding transport="http://schemas.xmlsoap.org/soap/http&quot; xmlns="http://schemas.xmlsoap.org/wsdl/soap/&quot; />
    <operation name="SetAndGet">
      <operation soapAction="urn:microsoft-dynamics-schemas/codeunit/wstestmip:SetAndGet" style="document" xmlns="http://schemas.xmlsoap.org/wsdl/soap/&quot; />
      <input name="SetAndGet">
        <body use="literal" xmlns="http://schemas.xmlsoap.org/wsdl/soap/&quot; />
      </input>
      <output name="SetAndGet_Result">
        <body use="literal" xmlns="http://schemas.xmlsoap.org/wsdl/soap/&quot; />
      </output>
    </operation>
  </binding>
  <service name="wstestmip">
    <port name="wstestmip_Port" binding="tns:wstestmip_Binding">
      <address location="http://client15:7047/DynamicsNAV90/WS/CRONUS AG/Codeunit/wstestmip&quot; xmlns="http://schemas.xmlsoap.org/wsdl/soap/&quot; />
    </port>
  </service>
</definitions>

Any Idea?


Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>