This section describes how to start the web services features and to define specific web services and their component operations for monitoring. The configuration process varies somewhat depending on whether you are setting up a known web service based on its WSDL, whether you are using a common UDDI registry to identify web services, or a web service URL and request data (XML-RPC)
Monitored web services can be either SOAP 1.1 or 1.2 web services, or they may be XML-RPC style services. You can query a UDDI 1.0 or 2.0 server to configure specific web services for monitoring.
- Access the Web Services menu command.
Select KM Commands > Configure Web Services. The wizard launches a browser and display a window showing options for adding and modifying services.
- Click one of the three links for adding services:
- Enter WSDL URL: Select this option if you want to monitor a SOAP/HTTP web service defined in a WSDL. Continue configuration following the steps described in WSDL.
- Query UDDI Server: Select this option if you will select a service from those available on a common UDDI server for which you know the URI. Continue configuration following the steps described in UDDI registry.
- Specify Web Service and Request Data: Select this option if you want to monitor an XML-RPC Web service. Continue configuration following the steps described in XML-RPC.
WSDL is a standard way of describing a web service using XML.
- Type a WSDL URL into the text box,
Enter WSDL username and password, and then click Continue.
A list of services and operations available through the entered WSDL will be displayed.
- Click the button next to one or more operations that you want to monitor, then click Continue.
A window is displayed on which you enter arguments for the operation. The arguments are the data needed by the operation to do its work and to generate meaningful results. For example, a stock ticker web service operation may require a stock exchange symbol that it uses to look up current stock prices for a company. - For each defined argument, enter data of the appropriate type. If an argument can only accept arguments within a limited, well-defined range, then you are shown a list of acceptable arguments from which to choose.
- Click Test.
A request to the web service provider is generated and sent, and the returned results displayed for you to verify. Status lines at the top of the window show whether any faults occurred. Look at the results area and verify that the data returned from the remote server is appropriate and does not reflect incorrect or poorly formed input data. If the results are incorrect, go back to the previous window and refine the argument data that you entered. - Click Save.
The web service is configured for monitoring and will be discovered on the next discovery cycle.
If you selected more than one operation to be configured, the screen is re-displayed and you can enter data for the next operation ( step 4 ). Otherwise, click Back to Service List to configure more Web services for this WSDL, or click Configuration Home to modify or add other Web services.
UDDI servers may be used as a common registry of web services that are used enterprise-wide, or that are offered for use by conceivably any other web site.
- Enter the URL of the UDDI server.
A list of services available through the UDDI will be displayed. If the list is too long, you can filter it to show only those matching a specified string pattern. - Select a web service to configure from the list, then click Continue.
A list of operations that the service can perform will be displayed. - Click the button next to one or more operations that you want to monitor, then click Continue.
A screen is displayed on which you enter arguments for the operation. The arguments are the data needed by the operation to do its work and to generate meaningful results. For example, a stock ticker Web service operation may require a stock exchange symbol that it uses to look up current stock prices for a company. - For each defined argument, enter data of the appropriate type. If an argument can only accept arguments within a limited, well-defined range, then you will be shown a list of acceptable arguments from which to choose.
- Click Test.
A request to the web service provider is generated and sent, and the returned results displayed for you to verify. Status lines at the top of the screen show whether any faults occurred. Look at the results area and verify that the data returned from the remote server is appropriate and does not reflect incorrect or poorly formed input data. If the results are incorrect, go back to the previous screen and refine the argument data that you entered. - Click Save.
The web service operation is configured for monitoring and will be discovered on the next discovery cycle.
If you selected more than one operation to be configured, the screen is re-displayed and you can enter data for the next operation ( step 4 ). Otherwise, click Back to Service List to configure more Web services from the UDDI server, or click Configuration Home to modify or add other Web services.
XML-RPC web services are not defined using WSDL, so all configuration details must be entered directly.
- Enter information about the service and its operation.
- Click Test.
A request to the web service provider is generated and sent, and the returned results displayed for you to verify. Status lines at the top of the screen show whether any faults occurred. Look at the results area and verify that the data returned from the remote server is appropriate and does not reflect incorrect or poorly formed input data. If the results are incorrect, go back to the previous screen and refine the argument data that you entered. - Click Save.
The service is configured for monitoring. Click Configuration Home to modify or add other web services.