Options

Navision Communication Component version 2.0 - Error

marco.morrealemarco.morreale Member Posts: 58
edited 2005-09-30 in Navision e-Commerce
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. :!:

Comments

  • Options
    hawwahawwa Member Posts: 106
    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.
  • Options
    marco.morrealemarco.morreale Member Posts: 58
    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.

    Marco
  • Options
    hawwahawwa Member Posts: 106
    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.
  • Options
    marco.morrealemarco.morreale Member Posts: 58
    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);
  • Options
    hawwahawwa Member Posts: 106
    Thanks. It works.
Sign In or Register to comment.