Using the HTTP Binding Component

Normalized Message Properties

Normalized Message properties are either General, available to all participating JBI components, or protocol/binding specific, used by a particular binding component.

Table 19 General Normalized Message Properties

Property Name 

Type 

Description and Use 

org.glassfish.openesb.messaging.groupid 

java.lang.String 

Uniquely identifies a message with the group to which a message belongs. For example, it applies the RM sequence group number for SOAP messages, or a time stamped file name (where the file record message comes from). 

This property is optional.  

org.glassfish.openesb.messaging.messageid 

java.lang.String 

Uniquely identifies a message. For batch processing this might be a record number (for example, a particular record in a file), or a GUID. 

This property is mandatory.  

org.glassfish.openesb.messaging.lastrecord 

java.lang.String 

The value is a string representation of boolean ("true" or "false"). This property can be used to signal the last record in a group, e.g. the last record in a RM sequence for SOAP messages, or the last record in a file when multiple record processing is turned on for File BC. 

This property is mandatory.  

org.glassfish.openesb.exchange.endpointname 

java.lang.String 

The value a string representation of the endpoint name set on the exchange. This represents the endpoint name of the "owner" of the message, and could be made available by JBI runtime. 

SOAP HTTP Binding Component Specific Normalized Message Properties

The following properties are specific to the HTTP (SOAP) Binding Component.

Table 20 SOAP HTTP Binding Component NM Properties

Property Name 

Type 

Description and Use 

org.glassfish.openesb.headers.soap 

java.util.Map 

The map contains a list of SOAP header elements. The key is the QName of the SOAP header. 

The value is a DocumentFragment object. The DocumentFragment has one node in it, the header element itself. 

org.glassfish.openesb.inbound.http.headers 

java.util.Map 

The map contains a list of HTTP headers. The key is the HTTP header name. 

The value is the string representation of the HTTP header value. 

This property provides all of the HTTP headers that the HTTP BC receives in the incoming message. The map also includes two additional properties that the HTTP Binding Component populates based on the transport context: ClientHostName and ClientPortNumber, which provide the information about the client's host IP address and port number

org.glassfish.openesb.outbound.http.headers 

java.util.Map 

The map contains a list of HTTP headers. The key being the HTTP header name. 

The value is the string representation of the HTTP header value.  

This property is used to allow any custom HTTP headers to be propagated to the outgoing service invocations. 

org.glassfish.openesb.outbound.custom.properties 

java.util.Map 

The map contains a list of custom properties*.  

The map key is a string. 

The map value can be any Object. 

org.glassfish.openesb.inbound.address.url 

java.lang.String 

On the receiving (server) side, this property is populated by the HTTP Binding Component with the server address URL (for example, address URL on soap:address) 

org.glassfish.openesb.outbound.address.url 

java.lang.String 

On the sending (client) side, this property is used to dynamically overwrite the default address defined in the SOAP or HTTP binding WSDL.  

The HTTP Binding Component does a basic URL validation on the address set on the property before using it to invoke an external service. If it is an invalid URL, the HTTP BC proceeds with the service invocation using the statically configured address URL. 

org.glassfish.openesb.outbound.basicauth.username 

java.lang.String 

This is a sender (client) side property only.  

When set, the user name will be set on the HTTP basic authentication header. 

org.glassfish.openesb.outbound.basicauth.password 

java.lang.String 

This is a sender (client) side property only.  

When set, the user name will be set on the HTTP basic authentication header. 


Note –

* The org.glassfish.openesb.custom.properties property is designed to allow custom data to be set on the HTTP/SOAP binding message context. The custom properties on the binding message context can then be made available in the security CallbackHandlers. For example, you can allow custom SAML assertion headers to be set in the SAML CallbackHandler based on the user credentials (application data) set on the binding message context.