Share via


Adding a service reference

To use the eConnect Integration Service with a .NET application, you have to first add a service reference to the Visual Studio project for the application.

Hint: To add the service reference, your Visual Studio project must specify the target framework as .NET Framework 3.5.

To add a service reference to a Visual Studio project, complete the following steps.

  1. Add a Service Reference.

    In Visual Studio, click the the Project menu, and then click Add Service Reference. The Add Service Reference window opens.

  2. Specify the service URL.

    In the Address box of the Add Service Reference window, enter the URL of eConnect Integration Service. Use the following format for the URL:

    net.pipe://<server name>/Microsoft/Dynamics/GP/eConnect/

    The following example shows a URL for the eConnect Integration service. Notice how the URL specifies localhost for the server name.

    net.pipe://localhost/Microsoft/Dynamics/GP/eConnect/
    
Click Go.
  1. Specify the eConnect service.

    In the Services box, click eConnect. In the Namespace box, enter a name for the service. Click OK. The service reference is created and the service configuration information is added to the configuration file of the application.