Options

About calling External Web service through Navision

sachin4211sachin4211 Member Posts: 3
Hi Experts,

i need your help and thanks in advance.
I am using Navision 2013 R2.

i want to call External webservices form Navision and push data (Like Sales Order ) to other database through same web service which i will call by using web services method how it can be done.
i went through many mibuso links but could not found clear idea about this we can done this through by installing soap toolkit
the code is

Connector.Property('EndPointURL','http://ec.europa.eu/taxation_customs/vies/api/checkVatPort?wsdl');
Connector.Connect;
Connector.Property('SoapAction','urn:ec.europa.eu:taxud:vies:services:checkVat:types');
Connector.BeginMessage;

CREATE(Serializer);
Serializer.Init(Connector.InputStream);

Serializer.StartEnvelope('','STANDARD','utf-16');
Serializer.StartBody('STANDARD');
Serializer.StartElement('checkVat','urn:ec.europa.eu:taxud:vies:services:checkVat:types');

Serializer.StartElement('countryCode','urn:ec.europa.eu:taxud:vies:services:checkVat:types');
Serializer.WriteString('GB');
Serializer.EndElement;
Serializer.StartElement('vatNumber','urn:ec.europa.eu:taxud:vies:services:checkVat:types');
Serializer.WriteString('704767477');
Serializer.EndElement;

Serializer.EndElement;
Serializer.EndBody;
Serializer.EndEnvelope;

Connector.EndMessage;

IF ISCLEAR(XMLDOM) THEN
CREATE(XMLDOM);
XMLDOM.load(Connector.OutputStream);
XMLNode := XMLDOM.selectSingleNode('//valid');
IF NOT ISCLEAR(XMLNode) THEN
MESSAGE(XMLNode.text);
XMLDOM.save('c:\vat.xml');
CLEAR(XMLDOM);
CLEAR(Connector);

but i am not able to install soap tool kit so what to do and after that how will i use the methods here i am confused :( .
i have worked a bit on web services so please suggest how it can we done.

Thanks
Sachin Shukla

Answers

Sign In or Register to comment.