On 12/8/06, <b class="gmail_sendername">PAPPU Sai Venkatakrishnan</b> &lt;<a href="mailto:saidesertrose2004@gmail.com">saidesertrose2004@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi,</div>
<div>I am working on twisted framework to create a test harness for testing and monitoring web services.&nbsp;The idea is to&nbsp;non intrusively monitor&nbsp;SOAP requests&nbsp;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. 
</div>
<div>&nbsp;</div>
<div>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.</div></blockquote><div><br>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.
<br></div><br></div>