How to call WCF service from Nav

landlord
Member Posts: 18
Hi,
I need to call an external web service that is written using WCF from Nav 2013. Do I need to create a new class project in VS and to use it as addin in NAV?
I would really appreciate if someone could give me some hints on this.
Thanks.
I need to call an external web service that is written using WCF from Nav 2013. Do I need to create a new class project in VS and to use it as addin in NAV?
I would really appreciate if someone could give me some hints on this.
Thanks.
0
Answers
-
Hi,
Please take a look at this blog
http://vjeko.com/blog/web-services-black-belt-consuming-nav-web-services-using-pure-cal
Or you can use XMLHttpRequest, as shown in this example
http://navcode.blogspot.com/2012/01/connecting-to-soap-webservice-from.html
I hope this helps.0 -
Hi Vremeni4,
Thank you for your reply.
Vjeko's codeunit works only with NAV pages, and another example that you provided uses Automation which I can not use with Nav 2013.
I need something that uses DotNet type variables, but I am still not sure if I can call external WCF service from Nav 2013.0 -
Hi ,
Personally I do not see any reason why you cannot use automation.
Most of the automation variables have their presentation in .NET
Anyhow this is a nice and simple example how to consume a web service from NAV.
http://dynamicsuser.net/blogs/waldo/archive/2011/12/20/net-interop-consume-a-third-party-web-service-check-vat-registration-no.aspx
I hope this helps.0 -
Hi Vremeni4,
I ended up creating an add-in. It was very easy, and I needed just 3 lines of code in NAV to call the service.
Thank you for your help.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions