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
The Response is always only the wsdl Definition.
Any Idea?
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/" 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/" 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"> <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" xmlns="http://schemas.xmlsoap.org/wsdl/soap/" /> <operation name="SetAndGet"> <operation soapAction="urn:microsoft-dynamics-schemas/codeunit/wstestmip:SetAndGet" style="document" xmlns="http://schemas.xmlsoap.org/wsdl/soap/" /> <input name="SetAndGet"> <body use="literal" xmlns="http://schemas.xmlsoap.org/wsdl/soap/" /> </input> <output name="SetAndGet_Result"> <body use="literal" xmlns="http://schemas.xmlsoap.org/wsdl/soap/" /> </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" xmlns="http://schemas.xmlsoap.org/wsdl/soap/" /> </port> </service> </definitions>
Any Idea?