Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Need to set username and password in web.config for ISA Proxy for WCF client

Reply
Thread Tools

Need to set username and password in web.config for ISA Proxy for WCF client

 
 
Andrew Jocelyn
Guest
Posts: n/a
 
      11-29-2008
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Ajax Enabled WCF service and regular WCF? Cindy Lee ASP .Net 1 03-19-2010 05:59 PM
WCF service call - problem when behind ISA Server proxy SESDev ASP .Net Web Services 6 10-29-2009 08:41 AM
how to set username and password for each isa client seekndestroy88@gmail.com ASP .Net Web Services 0 12-16-2008 03:46 AM
Need to set username and password in web.config for ISA Proxy for WCF client Andrew Jocelyn ASP .Net Web Services 1 12-03-2008 04:03 AM
Help: Connecting to a password-protected webservice through a proxy server (ISA 2000) Hanz Gruuber ASP .Net Web Services 0 04-29-2005 04:58 AM



Advertisments