Navision Communication Component version 2.0 - Error

marco.morreale
Member Posts: 58
I am using Navision Application Server whit MSMQ communication.
I use Navision Communication Component version 2.0.
Method "CreateReply" does not set the CorrelationId property on the outgoing message.
I'd set it manually but the property is not accessible.
So what's the use of "CreateReply" instead of "CreateMessage"? ](*,)
In the document by Patrice Dupont ".Net Development with Navision" is stated that "In .NET you can use the correlation ID to match the outgoing message with the incoming message" but how is it possible if Navision COMPLETELY IGNORES the CorrelationID property. :!:
I use Navision Communication Component version 2.0.
Method "CreateReply" does not set the CorrelationId property on the outgoing message.
I'd set it manually but the property is not accessible.
So what's the use of "CreateReply" instead of "CreateMessage"? ](*,)
In the document by Patrice Dupont ".Net Development with Navision" is stated that "In .NET you can use the correlation ID to match the outgoing message with the incoming message" but how is it possible if Navision COMPLETELY IGNORES the CorrelationID property. :!:
0
Comments
-
Hi all,
I have the same problem oso. The createreply not able to return the correlationid. Why there is no property to set the correlationid in navision.0 -
CorrelationId is set automatically by Navision using CreateReply.
I found the answer in mibuso.com at
http://www.mibuso.com/dlinfo.asp?FileID=353
I hope it helps you.
Marco0 -
I used the CreateReply but I hit the error No permission to write to the queue:
The call member send failed. MSMQBusAdapter.MSMQBusAdapter.1 returned the following message: The queue given cannot could not be used to write messages. Check access rights, validity and settings.
MQBus.OpenReplyQueue('.\private$\fromnavision',0,0);
OutMsg := InMsg.CreateReply;
OutS := OutMsg.GetStream;
XMLNode.text := UPPERCASE (XMLNode.text);
XMLDom.save(OutS);
OutMsg.Send(0);
Is there anything wrong with my code or not.0 -
I remember I had the same problem.
You should copying the sample exactly as is both in Navision and in .NET. Then, when you see it running, start tu customize it.
Maybe the problem is in the way you open the queues:
This is my code:
MSMQBus.OpenReceiveQueue('.\private$\Request',0,0);
MSMQBus.OpenReplyQueue('.\private$\Reply',0,0);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