Navision Answer does not reach web-part

grishaagrishaa Member Posts: 8
edited 2007-10-22 in Navision e-Commerce
Hello,
i try to develop communication Navision with Employee Portal. I use "Microsoft.Navision.EmployeePortal.NavisionUtility.dll" in VS2003.
This code sample sends message to Navision :
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");
		
		}		 


i saved files c:\docIn.xml , c:\key1.xml, c:\config.xml in c/al before web part development .

Is someone was faced with it?
I want to know where is my mistake
Sign In or Register to comment.