Associate Web Service with User Initiated Workflow
You can create user-initiated workflows that call web services when events occur in various applications.
To create a user-initiated workflow that calls a web service:
- On the Navigation menu, click in the desktop application.
- On the User Initiated Workflows form, select the application for which you want to create a workflow.
- In the Workflows grid, select an existing event or click to create a new event for the workflow.
- If necessary, click Move Up or Move Down to move the event to where you want it in the event sequence. Events are executed based on the order in the grid.
-
In the Actions grid, click
and select
Invoke Web Service from the list of action types.
DPS displays a workflow warning message.
- Click OK to dismiss the warning message. DPS displays the Web Service Configuration dialog.
-
Enter the
Web Service Location. This can be any of the following:
- A location or a file path for the WSDL file generated for the Web service.
- A URL to the WSDL file located on a Web server
- For Web services written in ASP.NET, it can also be a URL to the Web service ‘asmx’ page with “?WSDL” added at the end. This parameter generates WSDL information automatically.
For example:
- WSDL File Location: \\Serv1\Share1\Proj1\DPSWorkflowWS.wsdl
- WSDL File URL: http://Serv1/DPSWorkflowWS/ DPSWorkflowWS.wsdl
- ASMX page URL: http://Serv1/ DPSWorkflowWS / DPSWfWS.asmx?wsdl
Based on the information contained in the WSDL file, DPS populates the Web Method drop-down list with a list of available Web methods in the Web service.
- If necessary, click Refresh Methods to force DPS to read from the latest WSDL file generated for the web service and refreshes the Web Method drop-down list with the latest values
- Select an appropriate method for the workflow. DPS populates the Arguments grid with a list of arguments defined for the Web method you selected.
- To provide values for the arguments, click in the value field. DPS displays the SQL Expression Builder. The SQL expression you create determines the value of the argument at run time.
- Build an appropriate SQL expression. For more information on building SQL expressions, refer to Contents of the SQL Expression Builder Dialog Box.
- Click Save.