Talking to 3rd party Webservice

StLi
Member Posts: 83
Hi!
Disclaimer: This is not about offering a Webservice with NAV to some 3rd Party program. I want to do the exact opposite.
I'm looking for a way to connect to an external Webservice to transmit some data to it when the Navision user does a certain task. Like Updating attributes of an Item-Record. Or Posting a purchase order.
I guess this will lead me to write a .NET component but i was wondering if there are alternatives and if there is some kind of "best practise model" around already.
Thanks for your help in advance!
Edit: I figured it might help to elaborate a little more: We built a module able to exchange data with a Webshop via SOAP-interface. But so far it was always the Webshop sending requests to us. With the Webshop already having included Enduser friendly E-Mail-Template management and many more features, we now want to be able to push new events on the Navision side to the Webshop in realtime. At the moment we have a Timer on the Webshops side to ask for updates regularly. But we want more flexibility.
Disclaimer: This is not about offering a Webservice with NAV to some 3rd Party program. I want to do the exact opposite.
I'm looking for a way to connect to an external Webservice to transmit some data to it when the Navision user does a certain task. Like Updating attributes of an Item-Record. Or Posting a purchase order.
I guess this will lead me to write a .NET component but i was wondering if there are alternatives and if there is some kind of "best practise model" around already.
Thanks for your help in advance!
Edit: I figured it might help to elaborate a little more: We built a module able to exchange data with a Webshop via SOAP-interface. But so far it was always the Webshop sending requests to us. With the Webshop already having included Enduser friendly E-Mail-Template management and many more features, we now want to be able to push new events on the Navision side to the Webshop in realtime. At the moment we have a Timer on the Webshops side to ask for updates regularly. But we want more flexibility.
0
Comments
-
You can do this without writing a .NET component, through xmlHttp and SOAP.
These links will get you started:
Connect Navision with external web service
Connecting to NAV Web Services from Microsoft Dynamics NAV 2009 SP1No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Thank you very much, i'll look into this as soon as we're going to realise the extension.0
-
I actually prefer using a dotnet component. With C# you can link to the webservice and it will generate all the classes. You can then use them in C# and NAV.
This creates cleaner code and you can often use C# commands that are harder to do in NAV.
Downside: you end up having business logic in C#.
Personally I believe Microsoft should make it easier to consume webservices in nav. Programming xmlhttp directly is quite a hassle.
Just my 2 cents.0 -
Hello,
I could help you with a bare bones working example without any error handling. However, it makes a difference how you will authenticate. For example, if you call another NAV installation, you will set the username and password in xmlhttp. But if you would call a Magento API, you need to set an ApiKey as a parameter and deal with session timeouts. So the actual implementation depends on the 3rd party app.0 -
The Authentication will be done with each request so this is just a matter of two parameters.
Unfortunately The realisation of this got down prioritized so I'll have to do other stuff for the next few months. Thanks for the help anyway. I hope i'll remember this thread when i'm back on the topic. :?0 -
I have been looking for the dotnet equivalent for calling a webservice.
What is the dotnet equivalent of the XmlHttp?
So far I have found a hint, but nothing I can use.David Machanick
http://mibuso.com/blogs/davidmachanick/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