BIND

The optional keyword BIND can be used by HTTP service's SERVICE_LOAD command to automatically bind the optional query string parameters to the function fields or to fill a working list.

The command must contain a SERVICE_EXCHANGE(*FIELD) keyword or a working list to allow data binding to occur.

The query string parameters need to be supplied in a standard format:

 

/cgi-bin/jsmdirect?orderxml+fieldname(fieldvalue)+fieldname(fieldvalue)+...

 

/cgi-bin/jsmdirect?orderxml+period(12)+id(acme)

 

If the BIND keyword contains the special value of *FIELD, this will cause the function fields to be set with the field value.

If the BIND keyword contains the special value of *LIST, this will cause the column 1 of the working list argument to receive the field name and column 2 to receive the field value. The working list columns can have any name and size.

Example

 

SERVICE_LOAD SERVICE(HTTPInboundXMLService) BIND(*FIELD) SERVICE_EXCHANGE(*FIELD)

 

SERVICE_LOAD SERVICE(HTTPInboundXMLService) BIND(*LIST) SERVICE_LIST(...)