Compartilhar via


Web service namespace

In Visual Studio, the generated proxy classes will be added to a separate namespace in the project. The name of this namespace is the same as the name you assigned to the web reference. For example, if the web reference is named DynamicsGPService, the namespace will also have this name.

To make it easier to reference the classes, methods, and enumerations from the web service, you will want to add this namespace to your application code. For instance, the following C# statement will add this namespace to the current application (named WebServiceApplication).

using WebServiceApplication.DynamicsGPService;

Adding the using statement will keep you from having to fully-qualify the classes, methods, and enumerations you refer to in the web service proxy.