Partilhar via


Running the Update Customers sample

To run the application, perform the following steps.

  1. Verify the Dynamics GP service.

    To ensure 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.

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

    The solution file for this sample is named CustomerUpdate.sln. The solution file is in the UpdateCustomers folder inside the Samples folder.

  3. Verify the .NET framework (Visual Studio 2008 and later).

    The CustomerUpdate project requires the .NET Framework 2.0. To verify the target framework, open the Visual Studio Solution Explorer and right-click the CustomerUpdate 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.

  4. 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

  5. Choose Start Debugging from the Debug menu.

    To build the solution, choose "Start Debugging" in the Debug menu.

  6. Click the Connect button.

    The Connect button loads the web service proxy which may take several seconds to complete. The Company drop-down list displays the list of available companies.

  7. Select a company from the Company drop-down list.

    Once a company is selected, the Customer drop-down list contains all the customers for that company.

  8. Select a customer from the Customer drop-down list.

    After a customer is selected, the Comment textbox displays any existing comment information.

  9. Add or edit the comment information.

    Edit the existing comment or add a new comment.

  10. Click the Update button.

    The Update button saves the new comment to Microsoft Dynamics GP.