Running the Import GL Transactions sample
To run the application, perform the following steps.
Verify the Dynamics GP service.
To ensure the Dynamics GP service is installed and ready, enter the service URL into the address bar of the web browser. The default URL for the legacy endpoint is:
http://machine_name:< port number>/DynamicsGPWebServices
Typically, the port number is 48620. If the browser displays a message that states you have created a service, the service is ready to use with the sample application.
Start Visual Studio and open the solution file for the sample application.
The solution file for this sample is named BatchApplication.sln. The solution file is in the ImportGLTransactions folder inside the Samples folder.
Verify the .NET framework (Visual Studio 2008 and later).
The BatchApplication project requires the .NET Framework 2.0. To verify the target framework, open the Visual Studio Solution Explorer and right-click the BatchApplication project name. From the menu, click Properties. In the Application tab of the Properties window, verify that the Target Framework shows .NET Framework 2.0.
If Target Framework shows another .NET framework, use the drop down list to specify .NET Framework 2.0.
Update the web reference.
Open Visual Studio's Solution Explorer and select the Web References folder. Select the DynamicsGPService web reference to view its properties. Change the Web Reference URL property to use the URL for the legacy endpoint of the Dynamics GP service.
If the URL for the legacy endpoint does not work, it may be due to incompatability with the static WSDL document. Refer to WSDL generation for more information about the WSDL document. Try the following URL, which is the direct URL for the static WSDL:
http://machine_name:< port number>/Metadata/Legacy/Full/DynamicsGP.wsdl
Choose Start Debugging from the Debug menu.
To build the solution, choose "Start Debugging" in the Debug menu.
Click the Open file button.
An open file dialog box appears. Navigate to the file named TransactionBatchFile.xml located in the BatchApplication folder found inside the ImportGLTransactions folder.
Select the XML source file.
Select the TransactionBatchFile.xml file. The textbox on the user interface displays the contents of the XML file.
Click the Begin button.
This button starts the batch processing of the GL transaction from the XML file.