How eConnect was used
The sample application uses a class from the Microsoft.Dynamics.GP.eConnect assemblies.
Microsoft.Dynamics.GP.eConnect
When you click the Send Xml button, the application instantiates an eConnectMethods object. How the object is used depends upon the eConnect XML document.
If the document's eConnectProcessInfo node contains the element Outgoing and the element value is TRUE, the document's XML is requesting Microsoft Dynamics GP data.
When the eConnect XML document requests data, the application uses the eConnectMethods object's GetEntity method. The GetEntity method returns an eConnect XML document string that contains the requested data.
If the eConnectProcessInfo node does not contain the Outgoing element or it is set to FALSE, the document's XML creates, updates, or deletes Microsoft Dynamics GP data.
When the eConnect XML document creates, updates, or deletes Microsoft Dynamics GP data, the application uses the eConnectMethods object's CreateEntity method. The CreateEntity method uses the eConnect XML to perform the specified operation and returns a boolean value that specifies whether the operation was successful.
Warning: This sample application does not validate the eConnect XML document before sending its XML element values to the business objects.