Sample Tcl procedures

Note:  ibmime is included for backwards compatibility only.

An ib.tcl file under the tclprocs directory of the system installation contains the procedures used in the sample sites. These procedures provide an example of how to create and process the ibmime messages. These messages are exchanged at run time between the engine and the Intelligent Broker server.

These procedures are:

  • IbIn: When receiving an inbound ibmime message, IbIn extracts the second part of the message (SOAP or email attachment). Then it continues with the extracted part as the new message.
  • IbOut: This creates an ibmime message, marks the current message as the SOAP attachment of this new ibmime message, and continues with the new ibmime message.
  • IbInXML: When receiving an inbound ibmime message, IbInXML extracts the first part of the message and continues with the extracted part as the new message.
  • IbOutXML: This creates an ibmime message, makes the current message as the SOAP first part of the ibmime message, and continues with the new ibmime message.
  • IbEnvelopIn, IbClientEnvelopeOut, IbServerEnvelopeOut: These are templates for taking in and sending out requests as client. They are also for sending out responses as server messages that are properly formed SOAP envelopes.

Tcl templates

Two Tcl procedure types are templates that help with the ibmime objects:

  • The ibin Tcl template helps developers to parse ibmime and retrieve the message data.
  • The ibout Tcl template helps developers to wrap the message data into ibmime format.

These Tcl templates are available on the Script Editor, located on the Proc Type list of the New Proc dialog box.