2011-10-14 37 views
0

我有一个Web应用程序连接一台机器上的Web服务使用代理服务器。如图图像在Http绑定上的代理

Proxy settings 连接是在Internet Explorer确定,我的web.config是:

<system.net> 
     <defaultProxy> 
      <proxy autoDetect="true" usesystemdefault="true"/> 
     </defaultProxy> 
    </system.net> 
    <system.serviceModel> 


     <bindings> 
     <basicHttpBinding> 

      <binding name="ProcessSoap" closeTimeout="00:01:00" openTimeout="00:01:00" 
       receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" 

useDefaultWebProxy="true" hostNameComparisonMode="StrongWildcard" 
       maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 
       messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" 
       > 
       <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
        maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
       <security mode="None"> 

       </security> 
      </binding> 
     </basicHttpBinding> 
     </bindings> 
     <client> 
     <endpoint address="http://www.serveraddressthatiwanttoconnect.com/services/WebService.asmx" 
      binding="basicHttpBinding" bindingConfiguration="ProcessSoap" 
     contract="PINAlmaServis.ProcessSoap" name="ProcessSoap" /> 
    </client> 

我要使用系统代理设置,因为它可以改变不时。 “kurumsalproxy”是本地网络上的机器名称。我尝试了http://msdn.microsoft.com/en-us/library/kd3cf2ex.aspx上web.config的每个潜在变体,但无法建立连接。

有什么,我想念?

回答