web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

GP eConnect Message Queue incoming and outgoing services functionality

(0) ShareShare
ReportReport
Posted on by

Hi,

I am trying with GP Message Queue incoming and Outgoing services and new to GP Message Queue. Can anyone help me on that. When i am trying to send messages to incoming services, those will visible in Message queue after some time that message will disappears (note that econnect incoming service is running) but no record is creating in dynamics GP. Sometimes, the messages will not going to message queue . Below is my C#.net code base:

               eConnectType eConnect = new eConnectType();
               XmlSerializer serializer = new XmlSerializer(eConnect.GetType());
               RMCustomerMasterType mySmCustomerMaster = new RMCustomerMasterType();
               RMCustomerMasterType customertype = mySmCustomerMaster;
               taUpdateCreateCustomerRcd mycust = new taUpdateCreateCustomerRcd();
               XmlSerializer serialize = new XmlSerializer(typeof(eConnectType));
               string sCustXmlDoc = string.Empty;
               mycust.CUSTNMBR = "JOEH0001";
               mycust.CUSTNAME = "Joe Healy";
               mycust.ADRSCODE = "PRIMARY";
               mycust.ADDRESS1 = "789 First Ave N";
               mycust.CITY = "Rollag";
               mycust.STATE = "MN";
               mycust.ZIPCODE = "23589";
               mySmCustomerMaster.taUpdateCreateCustomerRcd = mycust;
               mySmCustomerMaster = customertype;
               RMCustomerMasterType[] mySMCustomerMaster = { mySmCustomerMaster };
               eConnect.RMCustomerMasterType = mySMCustomerMaster;// Populate the eConnectType object with the RMCustomerMasterType schema object
               MemoryStream memoryStream = new MemoryStream();// Serialize the object to produce an XML document
               serializer.Serialize(memoryStream, eConnect);
               memoryStream.Position = 0;
               XmlDocument createCustomerDocument = new XmlDocument();
               createCustomerDocument.Load(memoryStream);
 
               MessageQueue queue = new MessageQueue(@".\private$\econnect_incoming");
               if (!MessageQueue.Exists(@".\private$\econnect_incoming"))
               {
                   MessageQueue.Create(@".\private$\econnect_incoming");
               }
 
               // Create a new message.
               Message msg = new Message();
               msg.Body = createCustomerDocument.OuterXml;
 
               // Create a message queuing transaction.
               MessageQueueTransaction transaction = new MessageQueueTransaction();
               queue.Send(msg, "XML Incoming Message");

or
              eConnectType eConnect = new eConnectType();
              XmlSerializer serializer = new XmlSerializer(eConnect.GetType());
              RMCustomerMasterType mySmCustomerMaster = new RMCustomerMasterType();
              RMCustomerMasterType customertype = mySmCustomerMaster;
              taUpdateCreateCustomerRcd mycust = new taUpdateCreateCustomerRcd();
              XmlSerializer serialize = new XmlSerializer(typeof(eConnectType));
              string sCustXmlDoc = string.Empty;
              mycust.CUSTNMBR = "JOEH0001";
              mycust.CUSTNAME = "Joe Healy";
              mycust.ADRSCODE = "PRIMARY";
              mycust.ADDRESS1 = "789 First Ave N";
              mycust.CITY = "Rollag";
              mycust.STATE = "MN";
              mycust.ZIPCODE = "23589";
              mySmCustomerMaster.taUpdateCreateCustomerRcd = mycust;
              mySmCustomerMaster = customertype;
              RMCustomerMasterType[] mySMCustomerMaster = { mySmCustomerMaster };
              eConnect.RMCustomerMasterType = mySMCustomerMaster;// Populate the eConnectType object with the RMCustomerMasterType schema object
              MemoryStream memoryStream = new MemoryStream();// Serialize the object to produce an XML document
              serializer.Serialize(memoryStream, eConnect);
              memoryStream.Position = 0;
              XmlDocument createCustomerDocument = new XmlDocument();
              createCustomerDocument.Load(memoryStream);
 
              MessageQueue queue = new MessageQueue(@".\private$\econnect_incoming");
              if (!MessageQueue.Exists(@".\private$\econnect_incoming"))
              {
                  MessageQueue.Create(@".\private$\econnect_incoming");
              }
 
              // Create a new message.
              Message msg = new Message();
              msg.Body = createCustomerDocument.OuterXml;
              MessageQueueTransaction transaction = new MessageQueueTransaction();
              ActiveXMessageFormatter MyFormatter = new ActiveXMessageFormatter();
              msg.Label = "eConnect Test with ActiveXMessageFormatter";
              msg.Body = createCustomerDocument.OuterXml;
              msg.Formatter = MyFormatter;
              queue.Send(msg, "XML MSMQ", transaction);
              MyFormatter.Write(msg, createCustomerDocument.OuterXml);                
              MessageQueueTransaction MyQueTrans = new MessageQueueTransaction();
              MyQueTrans.Begin();
              MyQueTrans.Commit();
              queue.Close();


Can anyone guide me if i missed anything and tell me that process of Incoming and outgoing services.


Thanks in advance
Mounika.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Same problem here.can you anyone explain the process ?.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans