Cisco Cisco Workload Automation 6.3 User Guide
42
Working with Web Service Jobs
Defining a Web Service Action
Defining a Web Service Action
The Web Service adapter allows you to trigger events as an CWA Action type. This action can then be associated with
any CWA event, including job events such as "Job Completed Normally" or file, email, variable events, etc (refer to CWA
documentation on how to associate actions with scheduling events). When the action triggers a custom event in Web
Services, any pending scheduled task waiting on the event will kick off.
any CWA event, including job events such as "Job Completed Normally" or file, email, variable events, etc (refer to CWA
documentation on how to associate actions with scheduling events). When the action triggers a custom event in Web
Services, any pending scheduled task waiting on the event will kick off.
To define an action:
1.
In the
Navigator
pane, select
Definitions>Actions>Web Service Actions
to display the
Web Service Actions
pane.
2.
Right-click
Web Service
and select
Add WebService Action
from the context menus.
3.
On the CWA toolbar, click the
Add
button to display the
Action Definition
dialog.
4.
In the
Action Name
field, enter the name of the new action.
5.
Select the owner of the action from the
Owner
list.
6.
From the
REST Web Service
drop-down list, select the previously defined REST connection you want to associate
the action with.
The
Base URL
field contains the URL for the selected REST Web Service and is read-only.
7.
From the
HTTP Method
list, select the request method. In the example above,
POST
is selected.
8.
Click
HTTP Headers
to specify HTTP headers to be sent along with the request. The
HTTP Headers
dialog
displays.
9.
Click
Add
to display the
Add HTTP Header
dialog, enter the parameters, then click
OK
.
CWA parameters are supported in the value field of each HTTP header entry.