Partilhar via


Proxies

While it is possible to directly interact with a service by exchanging messages in SOAP format, most interaction happens through a proxy. A proxy is a special set of classes that will act as a wrapper for the operations, objects, and enumerations defined by the service. Your code will interact with the proxy classes, rather than the service directly. This greatly simplifies the code to access the service.

In most development tools, you create the proxy for a service by adding a web reference or a service reference to your project. This creates the proxy and the code to connect to the service.

How you create a reference to the Dynamics GP service will depend on whether you are using the legacy endpoint or the native endpoint. Refer to Connecting to the Legacy Endpoint and Connecting to the Native Endpoint for details.

Most development tools will have a browsing tool that allows you to view the details of the proxy created for the service. In Visual Studio you can view the proxy with the Object Browser. The Object Browser shows the details of the classes in the proxy. It's a good way to see the details of the proxy generated for the endpoint you are using to interact with the Dynamics GP service.