Skip to content

Flow documentation · legacy product

Web Definitions ​

Web Definitions allow you to "describe" the structure of web services to the Flow application. This allows Flow to understand your particular web service structure and read and write data to it. This gives you the flexibility to interact with any web service as you are in complete control over the definition.

A Web Definition can be used to describe web services that are based on Web Service Definition Language (WSDL).

A Web Definition is an in-memory representation of the data you are going to read or write from the web service. A web service is a special case in comparison to DB and File Definitions - a Web Definition has both a request and response definition. When reading data you define the request which is sent to the web service, and the resulting response is loaded from the web service into memory. In this case the request is generally a set of parameters that determine the data to be responded. Both the request and response data is retained in memory until the definition is closed.

When writing data you again define the request which is sent to the web service, and the resulting response is loaded from the web service into memory. In this case the request is generally the data to be written to the web service and the response is the result of writing that data. You write data into the request definition using a map, and this is subsequently output in the appropriate format to the web service. Even after writing the data to the web service, both the request and response data is retained in memory until the definition is closed.

You can create a single Web Definition and use it against multiple similar web services simply by assigning a different Web Connection. When assigning a Web Connection to a Web Definition it is considered a design time assignment, when coming to use the Web Definition in an Action you have the chance to reassign the Web Connection (run time assignment). This allows you to use the same Web Definition in multiple Actions each with their own Web Connection.

Create a Web Definition
  1. Open the Flow Designer

  2. Navigate to Configuration > Components > Data Definitions > Web Definitions

  3. Right click Web Definitions and select New

  4. Fill in the details and click Save. See Web Definition

Edit a Web Definition

TIP

A single left click on the Web Definition will also open the edit window

  1. Open the Flow Designer
  2. Navigate to Configuration > Components > Data Definitions > Web Definitions
  3. Right click the desired Web Definition and select Edit
  4. Change the details as required and click Save. See Web Definition
Delete a Web Definition
  1. Open the Flow Designer

  2. Navigate to Configuration > Components > Data Definitions > Web Definitions

  3. Right click the desired Web Definition and select Delete

  4. Click Yes to confirm your choice

Copy a Web Definition
  1. Open the Flow Designer
  2. Navigate to Configuration > Components > Data Definitions > Web Definitions
  3. Right click the desired Web Definition and select Copy
  4. The copy of the Web Definition will display in the edit window. Change the details as required and click Save. See Web Definition
Export a Web Definition
  1. Open the Flow Designer

  2. Navigate to Configuration > Components > Data Definitions > Web Definitions

  3. Right click the desired Web Definition and select Export

  4. The template Web will be assigned a default File name consisting of the name and type of the module. Change the name if desired and click Save. See Exporting and Importing

Import a Web Definition
  1. Open the Flow Designer

  2. Navigate to Configuration > Components > Data Definitions > Web Definitions

  3. Right click Web Definitions and select Import

  4. Select the Template Web you wish to import and click Open

  5. Choose the import method and click OK. See Exporting and Importing A confirmation screen will show what has been imported.

TIP

Note how dependant modules like the Web Connection and DB Connection have been imported. When exporting a module that is dependant on other modules, these dependant modules are also included in the Template so that it can be recreated exactly when imported

Change Security on Web Definition
  1. Open the Flow Designer
  2. Navigate to Configuration > Components > Data Definitions > Web Definitions
  3. Right click the desired Web Definition and select Security
  4. Change the details as required and click Save. See Managing Security
Refresh list of Web Definitions
  1. Open the Flow Designer
  2. Navigate to Configuration > Components > Data Definitions > Web Definitions
  3. Right click Web Definitions and select Refresh