Listening to SOAP messages in a web service
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. Thank you. Regards, Sai
On 12/8/06, PAPPU Sai Venkatakrishnan
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.
Hi,
Thank you for the answer. But there is the problem, sice it is an SOA based
solution I have to make it platform non specific as this can be implemented
on any.
Thabts one of the main reasons I chose python as it gives me an abstraction
from platform specific details.
Regards,
Sai
On 12/8/06, Pavel Pergamenshchik
On 12/8/06, PAPPU Sai Venkatakrishnan
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.
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
participants (2)
-
PAPPU Sai Venkatakrishnan
-
Pavel Pergamenshchik