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. :!:
0
Comments
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.
I found the answer in mibuso.com at
http://www.mibuso.com/dlinfo.asp?FileID=353
I hope it helps you.
Marco
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.
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);