Defining a web service collection
To consume an external web service, the associated WSDL and schema files for the web service must be loaded into the local namespace. This operation is performed by defining a web service collection in Guidewire Studio. In the base configuration, Guidewire provides a number of default web service collections in the following hierarchy.
.
Guidewire recommends that new web service collections be created within this directory structure.
Create a web service collection
Procedure
- In Studio, navigate in the hierarchy to a package in which to store the collection file.
- Right-click and choose . Studio prompts for a name for the web service collection. Enter a name for the web service collection and click OK to show the Web Service editor.
- On the editor toolbar, click the Add New Resource icon.
- In the Add Resource window, enter the URL of the WSDL for the external web service. This is also called the web service endpoint URL. After a valid URL is entered, click OK.
- Studio recognizes that the list of resource URLs has been modified and offers to fetch updated resources. Click Yes. Studio retrieves the WSDL and XSD files for the web service. The file contents can be viewed in the Fetched Resources tab. Updated resources can be fetched at any time by clicking the toolbar's Fetch icon.
- The created collection URL is shown in the editor’s Resources pane.
