To run this sample application, perform the following steps:
The solution file for the C# version of the sample is named DirectDocSenderDotNet.sln. The solution file is in the CSHARPDirectDocSender folder inside the Samples folder.
The solution file for the Visual Basic .NET version is named XmlDocumentSender.sln. The solution file is in the XmlDocumentSender folder inside the Samples folder.
To build the solution, choose “Start Debugging” in the Debug menu. The application starts.
Click the ellipsis (...) button next to the Connection String box. A dialog box opens. Enter your Microsoft Dynamics GP SQL Server name, log in name, password, and database name. Click OK.
Click the ellipsis (...) button next to the Select XML File button. A dialog box opens. Use the dialog box to find a file that contains an eConnect XML document. Select the file and click Open.
The XML Document box displays the contents of the file you selected. You may edit the XML in the box. If you edit the XML, click the Save XML button to write your changes to a file.
Click the Send XML button. The application uses classes from the eConnect .NET assemblies to perform the operations specified by the XML document.
The Return Information box displays the result.