Running the sample application

To run this sample application, perform the following steps:

  1. Start Visual Studio and open the solution file for the sample application.

    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.

    1. Choose Start Debugging from the Debug menu.

      To build the solution, choose “Start Debugging” in the Debug menu. The application starts.

      1. Update the connection string.

        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.

        1. Select an eConnect XML document file.

          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.

          1. Review the XML document.

            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.

            1. Send the XML document.

              Click the Send XML button. The application uses classes from the eConnect .NET assemblies to perform the operations specified by the XML document.

              1. Review the results.

                The Return Information box displays the result.