Chapter 8 Working with Web Services


Generating a .NET Proxy Class for a Web Service

PowerDesigner can also generate a client proxy class to simplify the invocation of the Web Service. To generate the client proxy class, PowerDesigner uses the wsdl.exe program that comes with Visual Studio .NET. You have to define a WSDL variable to indicate where the wsdl.exe program is located.

Define the WSDL variable

Steps To define a WSDL variable:

  1. Select Tools→General Options.
  2. Select the Variables category.
  3. Add a WSDL variable in the Name column.
  4. Browse for the wsdl.exe file in the Value column.
  5. Click OK.

Generate the client proxy classes

Steps To generate the client proxy classes:

  1. Select Language→Generate C# Code or VB .NET Code.
  2. Open the Tasks tab.
  3. Select the command WSDL: Generate Web Service proxy code.
  4. Click OK.

 


Copyright (C) 2007. Sybase Inc. All rights reserved.