[Twisted-web] Listening to SOAP messages in a web service

Pavel Pergamenshchik ppergame at gmail.com
Fri Dec 8 10:32:22 CST 2006

On 12/8/06, PAPPU Sai Venkatakrishnan <saidesertrose2004 at gmail.com> wrote:
> Hi,
> I am working on twisted framework to create a test harness for testing and
> monitoring web services. The idea is to non intrusively monitor SOAP
> requests sent to or from a webservice and log them. I approached the problem
> by creating a miniature proxy server to log the HTTP requests through the
> machine at the port in which the webservice is listening. But since the
> webservice is already using the port the proxy is not able to run.
> Is there a way in which I can listen to the SOAP messages traffic in a
> webservice using twisted? Please let me know your ideas.

If you are running Linux on the server, you can use the iptables transparent
proxy (iptables target REDIRECT) to intercept SOAP requests to your proxy.
REDIRECT can only forward requests to the local host. You can get the
original destination address with getsockopt option SO_ORIGINAL_DST.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20061208/1097227b/attachment.htm

More information about the Twisted-web mailing list