Using standard data transformation tools such as an enterprise service bus or message broker can greatly simplify the task of transforming messages and data streams into a well-defined data format.
Another trusted intermediary might be a message broker that handles trust relationships between requesters and an application service host.
Messaging client libraries typically expose the notion of a connection to the message broker and a number of associated verbs, such as send, receive, connect, and disconnect.
The ActiveMQ RA supports both outbound connections (JMS calls out to the message broker), and inbound connections (ActiveMQ-originated calls call into MDBs).