Navision running as a webservice (without MSMQ)

ehs
Member Posts: 34
JohnP has provided this detailed description on how to make Navision contact a webservice using xmlports and HTTP POST communication:
http://www.mibuso.com/forum/viewtopic.p ... 375#116375
Can anyone help me with an example on how to make Navision work the other way around - as a webservice receiving request (xml documents) from HTTP and sending back xml answers ?
I have done a lot of integration with MSMQ communication but this time I need some code that can send/receive xml to/from Navision using HTTP (preferably with the NAV communication components which is also used in John's example).
http://www.mibuso.com/forum/viewtopic.p ... 375#116375
Can anyone help me with an example on how to make Navision work the other way around - as a webservice receiving request (xml documents) from HTTP and sending back xml answers ?
I have done a lot of integration with MSMQ communication but this time I need some code that can send/receive xml to/from Navision using HTTP (preferably with the NAV communication components which is also used in John's example).
0
Comments
-
NAV communication components supports the Sockets. You can use them to communicate with the server through TCP/IP. In this case, it is very similar to MSMQ just you will use another class and address. But I am not sure, if it will be poosible to use it through HTTP protocol...0
-
Thanks Kine,
TCP/IP Socket is ok, but can you give me an example of C/Side code which makes a single instance codeunit continuously waiting for xml documents sent to a TCP/IP port on the NAS server and the replies with another xml document ?0 -
Take a look intio Codeunit 7700.
RegardsDo you make it right, it works too!0 -
Garak, I did that (this advice was also mentioned in John's hint), but I find it difficult to transform this to a simple "receive and send xml via TCP/IP" codeunit.
If anyone can set up an example of the code needed to do the job so that the codeunit is waiting for request all the time and replies with a new xml document I would be very grateful.0 -
If you already have same thing for MSMQ, you just replace the MSMQ component with Socket component and for the rest you can look into Communication components help file (c:\Program Files\Common Files\Microsoft Dynamics NAV\Communication Component\devguide.chm). There are examples how to receive and send something through Sockets...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