Options

Adaptater MessageQueue with Navision

rehnatrehnat Member Posts: 43
Hi,
I'm using webservices to communicate with Navision. I used the code present in html page :http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnav/html/nav_accbizlayerws.asp.
I created two messagequeue: one to send message to navision and the other to receive the response of the message sent.
The code of the webmethod is:

string request = "GetCustomer()";
toNavision.Send (request, "Navision MSMQ-BA");
fromNavision.Formatter = new
System.Messaging.XmlMessageFormatter (new Type[] {typeof (NavDS)});
msg = fromNavision.Receive (new System.TimeSpan (0,0,0,20));
NavDS nds = new NavDS ();
nds.ReadXml (msg.BodyStream, System.Data.XmlReadMode.Auto);
return nds;

When I run the webservice it results the xml schema of NavDS( it is the dataset which will keep the response of message sent to Navision).
I look on the folder of my messageQueue(N.B: my messageQueue are private). The MessageQueue Which sends message to navision contains the message sent but for there is no message in the messageQueue which receives response from navision :?: .
Also I look on the application log and the system log and there is no message from Navision, so i can't know what is the error.
Please somebody can help me to know the problem?
Thank you for your help.
Sign In or Register to comment.