Creating a service instance
After you have made a service reference to connect to the native endpoint of Dynamics GP service, you will create an instance of the service so you can access the service methods. The "DynamicsGPClient" class in the generated proxy represents the base service. You will create an instance of this class that provides access to the service methods.
The following example shows the C# code required to create an instance of the Dynamics GP service for the native endpoint.
// Create an instance of the service DynamicsGPClient wsDynamicsGP = new DynamicsGPClient();
Hint: Throughout the code examples for the legacy endpoint in this documentation, the service instance is named "wsDynamicsGP".