OutboundJSONBind

LANSA Integrator

OutboundJSONBind

The OutboundJSONBind handler can post JSON to a remote server using the HTTP protocol.

To create the JSON content, use the BIND, SET and WRITE commands before using the SEND command.

When the SEND command of this content handler is executed the following steps occur:

If content is being posted, then the handler determines if this Unicode data needs to be archived.

The content type is application/json and the content encoding is UTF-8.

Syntax:

Command

Keyword

Value

Developer notes for Command/Keyword/Value

SEND

HANDLER

 

OutboundJSONBind

URI

value

Mandatory. Remote URI.

HOST

value

Mandatory. Remote server.

USER

value

Optional. Basic authentication user.

PASSWORD

value

Optional. Basic authentication password.

PROXY

value

Optional. Proxy server.

PROXYUSER

value

Optional. Basic authentication user.

PROXYPASSWORD

value

Optional. Basic authentication password.

METHOD

 

Optional. See METHOD.

VERSION

 

Optional. See VERSION.

SECURE

*YES

Optional. Use HTTPS protocol.

*NO

Default. Use HTTP protocol.

WAIT

*YES

Optional. Default is 0.
Infinite wait for HTTP response.

*NO

Do not wait for HTTP response.

value

Wait read time in milliseconds.

TIMEOUT

value

Optional. Default is 0 which means disabled.
Host connection timeout in milliseconds.

LOCALE

 

Optional. See LOCALE.

ARCHIVE

 

Optional. See ARCHIVE.

 

Example

 

SEND HANDLER(OutboundJSONBind) URI(/cgi-bin/program) HOST(…)

SEND HANDLER(OutboundJSONBind) METHOD(GET) URI(/cgi-bin/program) HOST(…)