Invoking Web Services Example Workflow

Invoking Web Services Example Workflow

Download example here: WebServiceActionExample.ffc

This example illustrates how to invoke a Web service on a remote system using Flux. The Web Service Action has only one required property: WSDL, which specifies the location and description of the Web service to invoke. Arguments can be passed to the Web service and the Web service can also return values that can be used in the flow chart.

Screen_Shot_2022-03-09_at_3.43.52_PM.png

The above screenshot illustrates a Web Service Action which invokes the Add Web service at http://www.dneonline.com/. Two Integer arguments, "1" and "2" are passed to the Web service.

Screen_Shot_2022-03-09_at_3.45.34_PM.png

The result returned from the Web service is mapped into a flow context variable called “sum”. This variable will hold the actual sum returned from the Add() Web service.

Screen_Shot_2022-03-09_at_3.48.05_PM.png      

Variable substitution is used in the Console Action to display the value of the sum flow context variable.

Running this Example

Log in to the Operations Console, go to the Repository tab. 

Next, click on the 'Import' button at the top of the repository page, navigate to your Flux installation folder, locate the example workflow (/examples/end_users/web_services/WebServiceActionExample.ffc) and import it. This example can also be downloaded here: WebServiceActionExample.ffc

Screen_Shot_2022-03-07_at_3.56.14_PM.png

Once the workflow shows up in your workflow repository, you can select the workflow and click on the 'Submit' button to export the job to the Flux engine. 

Screen_Shot_2022-03-09_at_4.26.31_PM.png

 

If you click on the workflow's name, you will automatically be redirected to the Designer tab, to review and make changes. To run this example, there's no need to edit the workflow, although you can use the designer to review the actions' configuration. 

Once the workflow finishes, it will display output on the Flux engine console, similar to the screen shown below.

Screen_Shot_2022-03-09_at_4.27.39_PM.png

Summary

The Web Service Action is especially useful when integrating Flux with systems that are not Java based. You can use Flux to communicate with these systems easily using the Web Service Action.

 
 
 
 
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.