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 query string parameters need to be supplied in a standard format:

/cgi-bin/jsmdirect?service=orderxml&name=value&name=value...

 

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(*LIST) #WRKLST(NAME,VALUE)

 

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