首页 新闻 会员 周边

winfrom 通过代理服务器调用webservice,没有proxy属性该如何设置?

0
悬赏园豆:20 [已关闭问题] 关闭于 2014-07-12 09:29

  先实例化一个webservice:

 weatherform.Trans.TraditionalSimplifiedWebServiceSoapClient ts = new weatherform.Trans.TraditionalSimplifiedWebServiceSoapClient("TraditionalSimplifiedWebServiceSoap");

            WebProxy myproxy = new WebProxy("172.17.xxx.x", true);
            myproxy.Credentials =new NetworkCredential("xname","mima","Domian");// 如果是web中:

  ts.proxy=myproxy 就可以实现代理服务器的访问。

但是在winform中 没有proxy这个属性  只有 ts.ClientCredentials

 请大侠们赐教,小弟该如何办了这厮?

stoneniqiu的主页 stoneniqiu | 初学一级 | 园豆:80
提问于:2012-08-31 11:31
< >
分享
所有回答(1)
0

同上,想知道如何处理。。。

あ类 | 园豆:202 (菜鸟二级) | 2014-01-03 12:44
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册