This article is not up to date and it has been substitute with new up to date content.

Please look the new up to date content.

Using a Web Service Provider

by Laura Cigardi
5,253 views Published on Oct 24, 2011
Applies to: All versions
Table of contents

WebRatio gives you the chance to use a Web Service Provider in a Web project. The Web Service Provider is a reference to a remote system exposing a set of Web service operations through a WSDL. Request-Response and One-Way units can optionally reference a Web Service provider in order to obtain the set of Web service operations described in the WSDL and preselect a sub-set of the properties (Endpoint URL, Method Name and Method Namespace URI).

 

You can use the Acme Sample Project to test this feature. In order to add a new Web Service Provider right click on the "Service/Data Provider" node and choose the "Add Web Service Provider" command. Choose a name for the provider and write the url to the WSDL. (e.g. http://webservices.daehosting.com/services/TemperatureConversions.wso?WSDL). Note that you can directly open the WSDL clicking on the button placed near the WSDL URL property.

 

 

 

To see the advantages of the Web Service Provider usage, let's model the same page shown in the Getting started with Web Services article.

 

 

 

The Request Response Unit has a new property in the Properties View, which name is Web Service Provider.

  1. Click on the Select button in order to choose a Web Service Provider from the available ones and select the one just created.
  2. Click on the Select Operation button in order to choose an operation from the list. The list shows all the operations that belongs to the chosen Web Service Provider. Choose the CelciusToFahrenheit operation. The Properties View of the unit is automatically preloaded with all the informations extracted from the WSDL, as you can see in the following image. This makes quickier the setting of the web service invocation.

 

 

 
 

This article is not up to date and it has been substitute with new up to date content.

Please look the new up to date content.