DOMDocument30Class doc1 = new DOMDocument30Class(); DOMDocument30Class key1 = new DOMDocument30Class(); DOMDocument30Class key2 = new DOMDocument30Class(); doc1.load(@"c:\docin.xml"); key1.load(@"c:\key1.xml"); Microsoft.Navision.EmployeePortal.Communication.MessageQueueWriter myq = new MessageQueueWriter(); myq.WriteToMessageQueue(@".\private $\nep_request_queue",doc1,true,false,false,key1,key2,false);The Navision receive message in cu 6810 and the event handler "QueueListener::ComMessageRec" is working correctly. But the Answer that sends from navision ( QueueSender.WriteToMessageQueue) does not reach web-part (It remains in queue ".\private$\nep_reply_queue"). I use following code:
Microsoft.Navision.EmployeePortal.Communication.MessageQueueListener myqlist = new MessageQueueListener(); myqlist.ComMessageReceived += new MessageReceived(myqlist_ComMessageReceived); DOMDocument30Class doc2 = new DOMDocument30Class(); doc2.load(@"c:\config.xml"); myqlist.StartListen(doc2); private void myqlist_ComMessageReceived(DOMDocument30Class incomingMessage) { incomingMessage.save("c:\incomingMessage.xml"); }