NAS return ok

gmorken
Member Posts: 38
Hello,
I've created a website in asp.net for a testpurpose to insert new order and orderlines in nav. The website is sending msmq-message to nas and nas is calling codeunit to exececute business logic in nav. Everyting is working ok and I'm able to insert orders and lines from the website.
But what I cant see is how to send back a message from nav to the website that everyting went ok?
I know I can send a MSMQ message back from nav to outqueue and read it to the website but how will I know that the outmessage matches my order? Are there som guid or something I can use?
Regards
Tomas
I've created a website in asp.net for a testpurpose to insert new order and orderlines in nav. The website is sending msmq-message to nas and nas is calling codeunit to exececute business logic in nav. Everyting is working ok and I'm able to insert orders and lines from the website.
But what I cant see is how to send back a message from nav to the website that everyting went ok?
I know I can send a MSMQ message back from nav to outqueue and read it to the website but how will I know that the outmessage matches my order? Are there som guid or something I can use?
Regards
Tomas
0
Comments
-
Did you look at this msdn article?
http://msdn.microsoft.com/en-us/library/ms952079.aspxWeb Method] public NavDS GetItem(string No) { string request = "GetItem(" + No + ")"; mqToNavision.Send (request, "Navision MSMQ-BA"); mqFromNavision.Formatter = new System.Messaging.XmlMessageFormatter (new Type[] {typeof (NavDS)}); System.Messaging.Message msg = mqFromNavision.Receive (new System.TimeSpan (0,0,0,30)); NavDS nds = new NavDS (); nds.ReadXml (msg.BodyStream, System.Data.XmlReadMode.Auto); return nds; }
0 -
Try searching the Navision e-Commerce forum. I found this (old) thread Message Queue Send doesn't tell me the ID which talks about a Correlation ID.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Nice, thanks. That should work if I set createreply on the msmqmessage.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