Web services are software components that can be used within the IBM
® Forms Designer to provide network interaction between servers and client computers. For example, adding a specific web service call to a form results in the form retrieving information based on user input. This section describes how to add web service calls to your forms.
Web services definition language (WSDL) provides a way for a web service to explain what it does and how to use it. A WSDL file explains where the service can be accessed, the methods that are available, the required parameters and their types, and the form and type of any expected response.
For detailed information about WSDL, see http://www.w3.org/TR/wsdl
Adding web services to the Designer
The Designer allows you to embed any number of web services in your form.
Mapping web service data items to form UI items
You can map web service data items to form UI items by:
- Click and dragging web service data items onto the form canvas
- Click and dragging web service data items to existing form UI items
- Having the Designer create form UI items for each web service data item, and map the form UI items to web services data items.
Typically, you would choose the last option if you wanted to create form UI items for all web service data items.
Adding web servicesParent topic: Adding interactive features
Add web services to a form with the Web Service
icon on the Palette. When you add a web service to a form, you can choose to have the IBM
Forms Designer create form User Interface (UI) items for each web service data item.
Manually adding web service data items to a form
Once a web service call is added to your form, you can manually add web service data items to the form. Doing so creates form User Interface (UI) items and maps web service items to form UI items.
Mapping web services data to existing form UI items
Once a web service call is added to your form, you can map specific web service data to existing form User Interface (UI ) items.
Triggering a web service call
Once a web service is added to a form, you must set a trigger to call the web service.
Adding actions after a web service is called
After you add a web service to a form, you can optionally add an action that will fire when the web service is called successfully. You can also add a custom message when the web service call fails.
Editing the default web service failure message
After you add a web service to a form, you can edit the default message that the IBM
Forms Designer displays if the web service call fails.
Deleting web services
Deleting a web service from the form removes all web service data items, as well as the instances that were created when the web service was added to the form.