Creating a proxy server

The easiest way to create a proxy server in the .NET environment is to add a web reference to the system.

Before you begin

Restriction: Microsoft Visual Studio .NET 2008 SP1 or 2010 is required.

About this task

To add a web reference:

Procedure

  1. Depending on your version of Microsoft Visual Studio, do one of the following actions:
    Version Procedure
    Microsoft Visual Studio .NET 2008 SP1 On the Project menu in the Solution Explorer, click Add Web Reference.
    Microsoft Visual Studio .NET 2010
    1. On the Project menu in the Solution Explorer, click Add Service Reference.
    2. In the Add Service Reference window, click Advanced.
    3. In the Service Reference Settings window, click Add Web Reference.
  2. In the Add Web Reference window, type the URL or the file location of the web service description file (ClassificationModule.wsdl). This file is in the Classification_Home\Clients\DotNet directory.
  3. Click the arrow icon or press Enter.
  4. Click Add Reference.

Results

Adding the web reference creates a new namespace with the same name as the web reference (you can rename the web reference at any stage). The namespace contains all of the data structures that are described in the WSDL file and a class that represents the proxy server. The name of the proxy class is the name of the service as it appears in the WSDL file. The created classes can be treated as a regular Visual C# or Visual Basic classes.