Inbound binding syntax
Inbound binding purpose, syntax, description and example.
Purpose
You define an inbound binding for inbound messages received from an HTTP or JMS endpoint. When you define the binding, you specify the message format and (optionally) message classification and transformation.
Syntax
Inbound binding with message classification and transformation:
define inbound binding '<binding name>'
with
description "<description>",
using
message format <message format>,
protocol <protocol>,
classifying messages:
if matches "<xPath expression>"
where prefix "<prefix>" represents the namespace "<namespace>"
transform using "<xsl file>"
else if matches "<xPath expression>"
where prefix "<prefix>" represents the namespace "<namespace>"
transform using "<xsl file>"
else discard message | do not transform message,
accepting events: | accepting any event | accepting no events
- <event>
[setting <attribute> to <value>]
- <event>.
Syntax diagram
Use the following syntax diagram to better understand the relationships between the different options and the different values of an option.

Description
| Parameter | Description |
|---|---|
| binding name | The name of the binding. For outbound events, the name of the binding for which this endpoint sends events. |
| message format | The format of the message. The options are:
|
| protocol | The communications protocol used for receiving
events. The options are:
|
| accepting events: | accepting any event | accepting no events | The name of all the events that are accepted. |
| xPath expression | An classifier that evaluates to true or false. Specify this for inbound messages that do not conform to the schema that defines the event in Decision Server Insights. The classifier consists of a message identifier, and a transformation that converts the message into an event matching the schema. If the message matches the expression, the message is transformed into an event. If the message does not match the expression, the message is matched against subsequent classifiers. If the message does not match any classifiers, the message is either discarded or submitted to the runtime without being transformed, depending on which alternate action is specified. For more information, see <alternate action>. |
| xsl file | The name of the XSL stylesheet used to transform messages into events. Mandatory for an inbound binding with message transformation. |
| Parameter | Description |
|---|---|
| alternate action | Specifies what happens to a message if none
of the classifiers evaluate to true. The options are:
|
| description | The description of the binding. |
| namespace | The namespace associated with a prefix. If you specify a namespace, you must also specify a prefix. You can specify multiple prefixes and namespaces as a comma separated list. If prefixes and namespaces are not required, you must specify the where clause. |
| prefix | The string to use as a prefix for a namespace. Specify a prefix if you specify a namespace. |
| setting <attribute> to <value> | Sets the attributes of the event based on properties of the message. |
Example
An inbound binding with message
classification and transformation:
define inbound binding 'HTTPTransactionEventBinding'
with description "HTTP Incoming Transaction" ,
using
message format application/xml ,
protocol HTTP ,
classifying messages :
if matches "/event:Transaction"
where prefix "event" represents the namespace "http://www.ibm.com/ia/xmlns/default/ConnectivitySolutionBOM/model"
transform using "transformation.xsl"
else discard message ,
accepting events :
- transaction ,
setting the country code of this transaction to "FR".