The present invention extends to methods, systems, and computer program
products for reliably and securely transferring queued application
messages. Application messages are (e.g.,. binary or text) encoded and
then encapsulated in transfer messages, enqueue messages, and dequeue
responses such that composable protocol elements used in application
messages can be reused in the transfer messages, enqueue messages, and
dequeue responses. Transfer message headers are encoded and then
encapsulated along with encoded application messages such that composable
protocol elements used in transfer headers and application messages can
be reused in the store and forward messages. Application messages,
transfer messages, enqueue messages, dequeue responses, and store and
forward messages can all be configured in accordance with the same
messaging protocol, such as, for example, Simple Object Access Protocol.
Since encapsulated elements are encoded, the encapsulated elements do not
interfere with configuration of wrapping messages.