Child pages
  • Invoking Web Services Example Workflow
Skip to end of metadata
Go to start of metadata

Invoking Web Services Example Workflow

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 which can be used in the flow chart.

The above screenshot illustrates a Web Service Action which invokes the getQuote Web service at http://services.xmethods.net. A single string argument, “GOOG”, is passed to the Web service.

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

      

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

Running this Example

Log in to the Operations Console, go to the Repository tab and select Workflows repository. 

Next, click on the 'Upload' button at the bottom of the repository page, navigate to your Flux installation folder, locate the example workflow (/examples/end_users/web_services/GetStockQuote.ffc) and import it. Once the workflow shows up in your workflow repository, you can select the workflow and click on the 'Start' button to export the job to the Flux engine. 

 

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.

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.

  • No labels