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
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!!]
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
sunreflex4
Member
35 Points
7 Posts
Proxy, response
Aug 26, 2003 10:27 AM|LINK
SreedharK
All-Star
18571 Points
3119 Posts
MVP
Re: Proxy, response
Aug 26, 2003 11:39 AM|LINK
http://www.w3coder.org
weblog http://weblogs.asp.net/skoganti
sunreflex4
Member
35 Points
7 Posts
Re: Proxy, response
Aug 26, 2003 01:03 PM|LINK
SreedharK
All-Star
18571 Points
3119 Posts
MVP
Re: Proxy, response
Aug 26, 2003 01:29 PM|LINK
http://www.w3coder.org
weblog http://weblogs.asp.net/skoganti
sunreflex4
Member
35 Points
7 Posts
Re: Proxy, response
Aug 26, 2003 02:10 PM|LINK