About calling External Web service through Navision
sachin4211
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
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
0
Answers
-
this is becoming a popular hint: look in codeunit "VAT Lookup Ext. Data Hndl" in NAV2016.0
-
You can see my codeunit in this post: http://forum.mibuso.com/discussion/comment/304367#Comment_304367
Is very simple but it may help.
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
