The sample application uses a class from the Microsoft.Dynamics.GP.eConnect assemblies.
When you click the Send Xml button, the application instantiates an eConnectMethods object. How the object is used depends upon the eConnect XML document.
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.
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.
This sample application does not validate the eConnect XML document before sending its XML element values to the business objects.