5.8.8 BIND

The BIND command is only used with the InboundXMLBind, OutboundXMLBind, InboundJSONBind and OutboundJSONBind handlers.

The BIND command binds the specified service code to the loaded inbound document or creates a new empty outbound document.

Syntax:

Command

Keyword

Value

Developer notes

BIND

SERVICE

value

Service name.

TYPE

*INBOUND

Conditional. Inbound binding.

*OUTBOUND

Conditional. Outbound binding.

CONTENT

*JSON

Conditional. Outbound binding type.

*XML

Default.

BINDTRACE

*YES

Optional. Trace the inbound bind result.

*NO

Default.

SUBSET

 

Optional. See SUBSET.
Use with CONTENT(*JSON)

FILTER

 

Optional. See FILTER.

 

The SERVICE keyword value is used in a resource property lookup using the property key service.'value' and service.archive.'value' to locate the binding class and the binding jar file that contains the binding class and supporting classes generated by the XMLBinding or JSONBinding Wizard. If the service binding archive entry does not exist, then the binding jar file must exist in the JSM jar subdirectory instead of a user specified directory.

Example

BIND SERVICE(SALES) TYPE(*OUTBOUND) CONTENT(*JSON)

 

BIND SERVICE(ORDERS) TYPE(*INBOUND) BINDTRACE(*YES)