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

Discussion in 'ASP .Net Web Services' started by Andrew Jocelyn, Nov 29, 2008.

  1. 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
    Andrew Jocelyn, Nov 29, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. J.S.
    Replies:
    6
    Views:
    8,449
  2. Hanz Gruuber
    Replies:
    0
    Views:
    220
    Hanz Gruuber
    Apr 29, 2005
  3. Andrew Jocelyn
    Replies:
    1
    Views:
    2,867
    Steven Cheng
    Dec 3, 2008
  4. Replies:
    0
    Views:
    628
  5. SESDev
    Replies:
    6
    Views:
    2,741
    manjerekar annaji rao
    Oct 29, 2009
Loading...

Share This Page