Proxy, responsehttp://forums.asp.net/t/319796.aspx/1?Proxy+responseTue, 26 Aug 2003 14:13:16 -0400319796319796http://forums.asp.net/p/319796/319796.aspx/1?Proxy+responseProxy, response Hi, Is there a way to redirect the respnse of a web service to a proxy (specifying the address and the port)?? Thanx 2003-08-26T10:27:30-04:00319830http://forums.asp.net/p/319796/319830.aspx/1?Re+Proxy+responseRe: Proxy, response See below post, it has info on how to do it! 296275 2003-08-26T11:39:26-04:00319894http://forums.asp.net/p/319796/319894.aspx/1?Re+Proxy+responseRe: Proxy, response Well, I read the thread u wrote, and in the last post there is a Web Service: ------------------------------------- [WebMethod(CacheDuration=100)] public string Translate(string word, string mode) { WebProxy myProxy = new WebProxy("proxy.mycompany.com:port",true); BabelFish.BabelFishService translator = new BabelFish.BabelFishService(); translator.Proxy = myProxy; string result = translator.BabelFish(mode, word); return result; } ------------------------------------- I don't want to call another Web Service, what I want to do is exactly what has been done with the BabelFishService, i.e. I want to specify a proxy but for my Web Service (in the example Translate), so that this Web Service sends its response to the proxy and not to the client directly. Thanx 2003-08-26T13:03:33-04:00319921http://forums.asp.net/p/319796/319921.aspx/1?Re+Proxy+responseRe: Proxy, response Concept is same (Using Proxy). In your aspx page, I suppose you are consuming the WebService So you can use the similar code as below WebProxy myProxy = new WebProxy("proxy.mycompany.com:port",true); BabelFish.BabelFishService translator = new BabelFish.BabelFishService(); translator.Proxy = myProxy; string result = translator.BabelFish(mode, word); Also in below article also I tried to use Proxy in my aspx while consuming web service http://www.w3coder.com/ws/wsSoapTraceUtil.aspx [This is an year back article, but the code explains you how you can use proxy!!] 2003-08-26T13:29:11-04:00319978http://forums.asp.net/p/319796/319978.aspx/1?Re+Proxy+responseRe: Proxy, response Hi, what u r talking about is on the client side, but I want to do it on the server, u know, that my web service will redirect the answer to a proxy, and the proxy will forward it to the client, the client doesn't know anything about the whole process. It simply sends to Web Service URL on port 80, Web service receives it, processes the request, and then sends the answer to my proxy. C u 2003-08-26T14:10:51-04:00