The Web service component allows you to update your client data
with data from a Web service. For example, you may want to update the current
prices of stocks in a portfolio. To use the Faces Client Web service, the
Web service must be running locally, thus imported into your workspace.
Note: Some Faces Client Components and Client
Data have been deprecated and are not recommended for use.
The following
have been deprecated and are not recommended for use:
- Client Data and its associated tooling (such as the Client Data view)
- Faces Client Components
- <odc:dataGrid> (Data Grid)
- <odc:webService> (Web Service)
- <odc:clientData>
- <odc:clientBinder>
Follow these steps
to configure a Web service:
- After creating the client data for the Faces Client page, drag
the Web Service icon from the Faces Client Components drawer onto the page.
- Select the Web Service component on the JSP page to display the
attributes in the Properties view.
- On the odc:WebService tab, specify an alias or meaningful name
for the Web Service and an ID.
- Enter the URL for the location of the WSDL document for the Web
Service definition and the name of the Web Service operation that you want
to call.
- On the Input Parameters tab, add the parameters required for the
call to the specified Web Service operation. The input parameters
to the Web Service can be attributes or references from the client data or
a literal string.
- Use the Attribute Name list to create a list of some attributes
in a list reference and supply that as input to the Web Service. For example,
you may have a list of Stock objects, and each Stock object in the list has
a string attribute called symbol. In order to supply a list of symbols as
input to the Web Service from the Bind to dialog, select the list of Stock
objects, and select the symbol from the Attribute Name list. The Attribute
Name field should only be used when the input parameter is a list type.
- Create an in-domain Web Service for use with the Faces Client components.
You need to know the WSDL URL and the format (schema) of the input/output
soap messages for the Web Service.