Compartir a través de


Creating an eConnect XML document

An eConnect XML document is a text-based representation of a Microsoft Dynamics GP document or transaction. As a result, you can use many XML or text tools to produce an eConnect XML document.

However, you must structure the XML in the document to comply with the hierarchy of nodes specified by the eConnect schema for the specified eConnect transaction type. If you do not provide the XML nodes and elements in the expected order, the document will be rejected.

To manually create an XML document, find the eConnect transaction type in the XML Schema Reference and add the XML nodes in the specified order. Next, find each XML node in the XML Node Reference and add the XML elements in the specified order.

You can also use the schema file for the specified transaction type to validate the structure of your XML document.

After you create the XML document, you can use MSMQ or the .NET assembly (Microsoft.Dynamics.GP.eConnect.dll) to submit the XML document to eConnect. Any XML document that you submit keeps the XML nodes and element in the order that you provided. MSMQ and the classes in the eConnect assembly do not change the order of the XML nodes and elements.

To create an eConnect document for a .NET project, you can use the eConnect serialization assembly. The Microsoft.Dynamics.GP.eConnect.Serialization assembly is a .NET assembly that you can use to programmatically produce eConnect XML documents. To learn more about how to use the serialization classes, see Serializing an eConnect document object.

Hint: The serialization assembly does automatically order the XML nodes and elements to comply with the eConnect schema requirements.