Adding outbound bindings

Define an outbound binding that specifies the message format, the protocol, and the events to be delivered.

About this task

You use the completion menu of the Connectivity Definition editor to specify the required elements in the .cdef file.

define outbound binding 'binding_name' 
   with 
      description "binding_description",
   using 
      message format message_format, 
   protocol protocol, 
   delivering events: 
      - event, transformed using "transform"
      - event, transformed using "transform" .

The binding is part of a solution, and the .cdef file that you create is stored in the connectivity folder in the solution project. If your solution includes multiple bindings, after you complete the first binding definition you must repeat steps 2 - 6 for each additional binding.

There are several ways in which you can create and maintain endpoint and binding definitions in .cdef files, depending on the complexity of your project. You can define all related assets in a single .cdef file, but you must define assets that require partitioning in separate .cdef files:

  • For simple projects, you can create one .cdef file for inbound assets, and one .cdef file for outbound assets. Because inbound and outbound assets never reference each other, the use of two .cdef files provides a simple way of partitioning.
  • For more complex projects that contain several bindings, you can define each binding in its own .cdef file. You can also include the endpoint assets that use that binding, in the same .cdef file.

Procedure

  1. Open the .cdef file.
  2. Specify the binding name.
  3. Optional: Specify the description.
  4. Specify the message format.
    You can specify application/json, application/xml, or text/xml.
  5. Specify the protocol.
    You can specify JMS or HTTP.
  6. Specify the outbound events to be sent over this binding.
  7. Save your work.

Example

define outbound binding 'insuranceClaims' 
   with 
      description "Outbound insurance claims binding",
   using 
      message format application/xml, 
   protocol HTTP, 
   delivering events: 
      - Claim details. 

What to do next

Specify the outbound endpoints.