Creating a http listener


i have a software which have a “sender” agent and “receiver” agent that communicates via http.
I would like to use WM6 to sit between the 2 agents. i.e. WM6 will receive the data stream from the “sender” agent via http, package it into a document (probably in byte arrays or something) for sending across the enterprise. The end point of the document will then reconstruct the data stream for sending (via http) to the “receiver” agent.

I’m using the pub.client.http in the end point flow service to transmit the data stream to the “receiver” agent.
But how do i make IS “listen” to the “sender” agent?

Can anyone help?