The HTTP interface type defines the connections to an HTTP/HTTPS host and it can be used by Broadway Actors.
To create a new HTTP interface, take the following steps:
Go to Project Tree > Shared Objects, right-click Interfaces, select New Interface and then select HTTP from the Interface Type drop-down list to open the New Interface window.
Populate the connection's settings and click Save.
Go to Project Tree > Shared Objects, right-click Interfaces, select New Interface and then select HTTP from the Others section to open the New Interface window.
Enter a suitable name for your new HTTP Interface and then click Create:
Populate the connection's settings and click Save.
The Fabric HTTP Interface supports various standard authentication and authorization types (aka schemas) that can be used to access external protected resources.
Each Authentication Type (except for the None type) requires specific security credentials (provided by the resource provider) that are populated by the implementor into the HTTP Interface Properties and used by Fabric to authenticate remote vendor servers.
Fabric supports the following:
Basic HTTP Authentication - built into the HTTP protocol. Fabric (the client) sends HTTP requests with the Authorization
header that contains the word Basic
followed by <user:password> in base64-encoded form. This interface requires the following properties:
Note: This mechanism does not provide confidentiality, hence it is usually used over HTTPS and not over HTTP.
Bearer Authentication (aka token authentication) - an HTTP Authentication Type/schema that uses cryptic string security tokens called Bearer Tokens. Fabric (the client) sends this token in the Authorization
header when sending requests to a resource. This interface requires the following properties:
OAuth Authentication methods - the Fabric HTTP Interface supports various OAuth authentication methods. Following are their common properties:
Below are the supported OAuth Authentication methods and their additional properties, other than the common that are mentioned above:
OAuth 2.0 Password Credentials - an OAuth grant type flow. Fabric (the client) first interacts with an authorization server, provides a user name and password and gets an access token, which is then used for the resource server's calls. This interface requires the following properties:
OAuth 2.0 Password Credentials - Basic Auth Headers - an OAuth grant type flow. It is similar to "OAuth 2.0 Password Credentials" but in this type, Fabric provides the User name and Password to the authorization server in the request header, rather than in the request body. This type is more recommended and is considered as best practice.
OAuth 2.0 Client Credentials - an OAuth grant type flow. Fabric provides the client-ID and Client-Secret to the authorization server, which returns the access token used by Fabric for the resource's server calls. This interface requires only the above base properties.
OAuth 2.0 Client Credentials - Basic Auth Headers - an OAuth grant type flow. It is similar to "OAuth 2.0 Client Credentials", however, in this type, Fabric provides the client-ID and Client-Secret to the authorization server in the request header, rather than in the request body. This type is more recommended.
If the service provider does not require authentication, select None in the Authentication Type.
The above Broadway flow uses an Http Actor to connect to the HTTP server that populates the predefined HTTP interface into the interface input argument. The path input argument must be populated by the relative path to the interface. The params input argument must be populated when relevant. The format input argument must be populated with the required output format, e.g. JSON.
For example, in order to invoke a Fabric Web Service, take the following steps:
Define the HTTP interface with the relevant authentication type, e.g. Bearer, and set the Token value.
In a Broadway flow, use either an Http or an HttpJson Actor to invoke a WS. Populate the input arguments as follows:
Set the interface to the predefined HTTP interface.
Set the path to the WS, relative to the interface. For example:
/api/isAlive
/api/wsCustomerSSN?
Use a JsonParser Actor to parse the WS output.
The HTTP interface type defines the connections to an HTTP/HTTPS host and it can be used by Broadway Actors.
To create a new HTTP interface, take the following steps:
Go to Project Tree > Shared Objects, right-click Interfaces, select New Interface and then select HTTP from the Interface Type drop-down list to open the New Interface window.
Populate the connection's settings and click Save.
Go to Project Tree > Shared Objects, right-click Interfaces, select New Interface and then select HTTP from the Others section to open the New Interface window.
Enter a suitable name for your new HTTP Interface and then click Create:
Populate the connection's settings and click Save.
The Fabric HTTP Interface supports various standard authentication and authorization types (aka schemas) that can be used to access external protected resources.
Each Authentication Type (except for the None type) requires specific security credentials (provided by the resource provider) that are populated by the implementor into the HTTP Interface Properties and used by Fabric to authenticate remote vendor servers.
Fabric supports the following:
Basic HTTP Authentication - built into the HTTP protocol. Fabric (the client) sends HTTP requests with the Authorization
header that contains the word Basic
followed by <user:password> in base64-encoded form. This interface requires the following properties:
Note: This mechanism does not provide confidentiality, hence it is usually used over HTTPS and not over HTTP.
Bearer Authentication (aka token authentication) - an HTTP Authentication Type/schema that uses cryptic string security tokens called Bearer Tokens. Fabric (the client) sends this token in the Authorization
header when sending requests to a resource. This interface requires the following properties:
OAuth Authentication methods - the Fabric HTTP Interface supports various OAuth authentication methods. Following are their common properties:
Below are the supported OAuth Authentication methods and their additional properties, other than the common that are mentioned above:
OAuth 2.0 Password Credentials - an OAuth grant type flow. Fabric (the client) first interacts with an authorization server, provides a user name and password and gets an access token, which is then used for the resource server's calls. This interface requires the following properties:
OAuth 2.0 Password Credentials - Basic Auth Headers - an OAuth grant type flow. It is similar to "OAuth 2.0 Password Credentials" but in this type, Fabric provides the User name and Password to the authorization server in the request header, rather than in the request body. This type is more recommended and is considered as best practice.
OAuth 2.0 Client Credentials - an OAuth grant type flow. Fabric provides the client-ID and Client-Secret to the authorization server, which returns the access token used by Fabric for the resource's server calls. This interface requires only the above base properties.
OAuth 2.0 Client Credentials - Basic Auth Headers - an OAuth grant type flow. It is similar to "OAuth 2.0 Client Credentials", however, in this type, Fabric provides the client-ID and Client-Secret to the authorization server in the request header, rather than in the request body. This type is more recommended.
If the service provider does not require authentication, select None in the Authentication Type.
The above Broadway flow uses an Http Actor to connect to the HTTP server that populates the predefined HTTP interface into the interface input argument. The path input argument must be populated by the relative path to the interface. The params input argument must be populated when relevant. The format input argument must be populated with the required output format, e.g. JSON.
For example, in order to invoke a Fabric Web Service, take the following steps:
Define the HTTP interface with the relevant authentication type, e.g. Bearer, and set the Token value.
In a Broadway flow, use either an Http or an HttpJson Actor to invoke a WS. Populate the input arguments as follows:
Set the interface to the predefined HTTP interface.
Set the path to the WS, relative to the interface. For example:
/api/isAlive
/api/wsCustomerSSN?
Use a JsonParser Actor to parse the WS output.