在配置中指定代理与WSE / SOAP Web服务的代码

时间:2009-11-18 16:01:04

标签: .net proxy wse3.0

有没有办法在配置文件中指定WSE3代理而不是代码。 我想出了如何使它在代码中工作如下:

valservice.Proxy = new System.Net.WebProxy("http://10.192.xx.xx:8080", true); 

详细信息:我有一个调用WSE3外部供应商Web服务的WCF包装器Web服务。从表单调用时,WSE3代码工作正常,但在IIS下作为另一个Web服务运行时则不行。

1 个答案:

答案 0 :(得分:1)

为什么你不能使用正常的appSettings?

查看example here