decide consulting
 

conclusion©


Generating Web Service Proxies

Introduction

Often Web Services are used as a data or business layer within an N-tiered application. Decide's Conclusion has the ability to analyze a web service and generate a proxy class (and DLL) that other components can talk to. Generated code can be in any language that Microsoft's WSDL.EXE utility supports, currently C# and Visual Basic. There are two steps for accomplishing this:

  1. Register the web service with Conclusion.
  2. Generate, review, and save the code files.

Generation Screens

The proxy generation screen can be accessed from the Main Menu's Generate menu by selecting "Web Service Proxy Classes". A window will pop up with two tabs. The first tab allows users to choose from a list box on the left to select the source of code generation. Under the Source checkboxes there will be these buttons:

  • ALL: Automatically selects all items
  • None: Automatically unchecks all items
The generation window's data source list contains web services that were previously registered with Conclusion. The "Add a Web Service" panel allows users to register new web services. The "WSDL Url" field should be the URL of the web service.

The Code Window

The code window shows all the generated proxy class code for all the selected web services. After generation they still only exist in memory but users can click the Create Files button to write the code to individual files in the Conclusion Results folders. The proxy generation window also has the special capability of building a DLL file once the user clicks the Create Files button. This allows it to be easily added as a data layer later as described in the help for UI Components. The results folders are configured in Project Setup screen from the Main Menu's File menu.


Conclusion Ver 1.4 - WGU 3/10/2005