Skip to main content
Version: 4.4.1

Execute Web API definition

Description

Executes a Web API that runs until the Workflow is requested to stop.

Assembly: iCore.Workflow.Activites
Category: iCPS

Arguments

NameTypeDescription
ArgumentsObjectThe startup arguments to pass as argument to the Web APIs controller constructor. Must be of same type as the startup argument of the controller constructor. Add a reference to the Web APIs type assembly using the Modify references tool to get access to the type to use. Set to Nothing or leave empty if the controller does not have a startup argument.

For more information about startup arguments, see Web API startup arguments.
EndpointStringThe endpoint address for the hosted Web API.
Web APIGuidThe ID of the Web API to execute.
Startup timeoutTimeSpanThe startup timeout for the Web API.
Shutdown timeoutTimeSpanThe shutdown timeout for the Web API, i.e. the amount of time that the Web API is allotted for shutdown. During this time, the shutdown will wait for ongoing requests to complete. Any request that does not complete within this time window will be terminated. The timeout is only taken into consideration if the activity performs graceful shutdown of the Web API host.
Certificate fileStringThe certificate file used for secure connections.
Certificate file passwordStringThe password for the certificate file.
Certificate store nameStoreNameThe store name of the certificate.
Certificate store locationStoreLocationThe store location of the certificate.
Certificate subjectStringThe subject of the certificate to load from the store.
Allow invalid certificateBooleanIf true, an invalid certificates will be considered, such as self-signed certificates.

Remarks

Setting up HTTPS hosting

HTTPS is automatically used by the host when the endpoint address starts with 'https://'. When using HTTPS a certificate should be defined by configuring either a certificate from a file or a certificate from the system store, but not both.

A certificate from a file can be specified using the Certificate file and Certificate file password arguments. A certificate from the system store can be specified by using the Certificate store name, Certificate store location, Certificate subject and Allow invalid certificate arguments.

note

HTTPS is not supported when using legacy WebAPI definitions.

See Also

Entities

Web API

Web APIs

Creating a Web API
Creating a Workflow for hosting a Web API