Apama 10.5.3 | Connecting Apama Applications to External Components | Standard IAF Plug-ins | The Web Services Client IAF Adapter | Configuring a Web Services Client adapter | Specify the web service and operation to use
 
Specify the web service and operation to use
 
Web Service Client
After you have added an instance of the Web Services Client adapter to a project, you need to specify the web service that the application will use and which web service operation the application will invoke.
*To specify the web service to use
1. In the Project Explorer, expand the project's Adapters node and then expand the Web Services Client Adapter node.
2. Double-click the entry for the adapter instance you want to configure.
This opens the adapter instance configuration in the Web Services Client Adapter editor, showing CLASSPATH and other standard properties provided by the adapter's resource bundle.
3. In the Web Services Client Adapter editor, select the Event Mappings tab.
4. On the Event Mappings tab, click the Add button ().
5. In the Web Service Configuration dialog, to the right of the Operation field, click the Add button and select Create New.
Note:
If you already configured a web service in your project, when you click the Add button, you can select Choose from existing instead. For more information, see Editing Web Services Client adapter configurations.
6. In the Web Service Client wizard, in the Service definition field, specify a valid URL for the WSDL (Web Service Definition File) that defines the web service. This can be a local file or a file at a remote location. Be sure to use the complete syntax when specifying the location for the WSDL file including file:/// or http://. Note, if you click the Browse button, you can select a WSDL file located in your workspace.
7. In the Client type field, make sure that Apama Adapters Proxy is selected from the drop-down list (this is the default).
8. Click Next. The second page of the Web Service Client wizard opens, showing all the operations that are defined in the WSDL file. The operations are shown with SOAP and SOAP 1.2 bindings depending on how they are defined in the WSDL file.
If you want your application to invoke all operations, click Finish instead of Next and skip the next two steps. You are done with this part of the configuration.
9. In the second page of the Web Service Client wizard, select the service operations you want your application to invoke.
10. Click Finish.
If you selected one operation, the wizard adds it to the Operation field of the Web Service Configuration dialog. If you selected more than one operation, the wizard displays the Select Operation dialog, which lets you specify the Apama events that will be mapped to web service messages.
Whether you selected one operation or multiple operations, the next step is to specify the Apama events that will be mapped to web service messages. For more information, see Specifying Apama events for mapping.