Web Request Activity

Description:

An activity that performs a web request to a resource that you identify by using the specified URI.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.AsyncCodeActivity
      Geocortex.Workflow.Activities.WebRequest

Function:

This activity allows you to send and receive data from a resource identified by a URI. Typically this would be an HTTP GET or POST request.

In a Workflow:

You would use this activity to make a web requests to a resource such as performing a REST request or interacting with a web service. This activity is similar to the Download String Activity , but it offers much more control over the request.

Properties:

Name Description

In Arguments

Credentials

The network credentials that are sent to the host and used to authenticate the request.

Headers

A collection of header name/value pairs associated with the request.

Parameters

A dictionary of name/value pairs associated with the request. These parameters are merged with the Values parameters. In the event of a name conflict, the Parameters dictionary takes precedence.

Raw Data

Raw byte data to be sent as the body of the request. If this parameter is provided both the Parameters and Values inputs are ignored.

Values*

In the Workflow Designer, you can add arbitrary name/value parameters that represent the data to send to the resource.

Uri

The absolute URI of the resource to make the request to. Relative URIs are not supported.

Misc

Display Name

WebRequest

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Method

The HTTP method used to send the data to the resource. For example: POST or GET. The default is POST.

Out Arguments

Response Headers

A collection of header name/value pairs associated with the response. This is an advanced concept.

Result

A System.Byte array containing the body of the response from the resource.

Version Information:

Supported from: Geocortex Essentials 3.7.