A
Andrew Jocelyn
Hi
I need to explicity set a username and password in the web.config file of a
SharePoint server to use a ISA proxy server. Aparantly the ISA server won't
accept credentials if they are not the currently logged on user. Real code
examples needed please.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="ServiceSoap"
closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:10:00"
sendTimeout="00:01:00"
allowCookies="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536"
maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Text"
textEncoding="utf-8"
transferMode="Buffered"
useDefaultWebProxy="false"
bypassProxyOnLocal="false"
proxyAddress="http://localhost:8888/">
<readerQuotas maxDepth="32" maxStringContentLength="8192"
maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"
/>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://endpoint/service.asmx"
binding="basicHttpBinding" bindingConfiguration="ServiceSoap"
contract="Service.ScsServiceSoap" name="ServiceSoap"/>
</client>
</system.serviceModel>
This doesn't work if useDefaultWebProxy is true in the basicHttpBinding.
<system.net>
<defaultProxy>
<proxy usesystemdefault="True" proxyaddress=http://localhost:8888 />
</defaultProxy>
</system.net>
Many thanks
Andrew
I need to explicity set a username and password in the web.config file of a
SharePoint server to use a ISA proxy server. Aparantly the ISA server won't
accept credentials if they are not the currently logged on user. Real code
examples needed please.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="ServiceSoap"
closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:10:00"
sendTimeout="00:01:00"
allowCookies="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536"
maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Text"
textEncoding="utf-8"
transferMode="Buffered"
useDefaultWebProxy="false"
bypassProxyOnLocal="false"
proxyAddress="http://localhost:8888/">
<readerQuotas maxDepth="32" maxStringContentLength="8192"
maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"
/>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://endpoint/service.asmx"
binding="basicHttpBinding" bindingConfiguration="ServiceSoap"
contract="Service.ScsServiceSoap" name="ServiceSoap"/>
</client>
</system.serviceModel>
This doesn't work if useDefaultWebProxy is true in the basicHttpBinding.
<system.net>
<defaultProxy>
<proxy usesystemdefault="True" proxyaddress=http://localhost:8888 />
</defaultProxy>
</system.net>
Many thanks
Andrew