WebProxy ignored calling WebMethod

M

Mike Bridge

Hi-

I'm trying to move my .Net 1.1 WebServices to .Net 2.0, and for some reason I can't set a WebProxy any more. I've been
using this to tunnel through a proxy to debug SOAP calls:

MyWebServices.TestService testservice = new MyWebServices.TestService();

WebProxy webproxy = new System.Net.WebProxy("http://localhost:8080/");

webproxy.BypassProxyOnLocal = false;

testservice.Proxy = webproxy;

String result = testservice.MyTestWebMethod("Howdy");

This bypasses my proxy entirely without any error messages. It works fine in .Net 1.1---any idea why this doesn't work?

Thanks,

-Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top