Cообщество разработчиков на платформе Microsoft > Форумы > Windows Communication Foundation > Cannot provide access to users behind internet proxy server - wshttp endpoint
Задайте вопросЗадайте вопрос
 

ОтвеченоCannot provide access to users behind internet proxy server - wshttp endpoint

  • 2 июля 2009 г. 14:15Rxra Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     С кодом

    IIS (service is configured) & Windows client application uses the service for bi-directional services.

     IIS Config:

    <!-- Server config -->
    <system.serviceModel>
                                    <bindings>
                                                    <wsHttpBinding>
                                                                    <binding name="NoSecurity" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="00:10:00"  sendTimeout="00:05:00" bypassProxyOnLocal="false" transactionFlow="false"
                                                                                      hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288"    maxReceivedMessageSize="50000000" messageEncoding="Text" textEncoding="utf-8"   useDefaultWebProxy="true" allowCookies="false">
                                                                                    <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"  maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
                                                                                    <security mode="None"/>
                                                                    </binding>
                                                    </wsHttpBinding>
                                    </bindings>
                                    <services>
                                                    <service name="CcsClientDataSyncServices.CcsDataCacheSyncService" behaviorConfiguration="CcsClientDataSyncServices.CcsDataCacheSyncServiceBehavior">
                                                                    <endpoint address ="" binding="wsHttpBinding"  contract="CcsClientDataSyncServices.ICcsDataCacheSyncContract" bindingConfiguration="NoSecurity"/>
                                                                    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
                                                    </service>
                                    </services>
                                    <behaviors>
                                                    <serviceBehaviors>
                                                                    <behavior name="CcsClientDataSyncServices.CcsDataCacheSyncServiceBehavior">
                                                                                    <serviceMetadata httpGetEnabled="True" />
                                                                                    <serviceDebug includeExceptionDetailInFaults="True" />
                                                                    </behavior>
                                                    </serviceBehaviors>
                                    </behaviors>
                    </system.serviceModel>
    
    <!-- Client config -->
    <system.serviceModel>
        <bindings>
          <wsHttpBinding>
            <binding name="NoSecurity" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="00:10:00" sendTimeout="00:05:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="50000000" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
              <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
              <security mode="None" />
            </binding>
          </wsHttpBinding>
        </bindings>
        <client>
          <endpoint address="http://testserver:81/CcsClientDataSyncServices/Service.svc"
        binding="wsHttpBinding"
           bindingConfiguration="NoSecurity"
           contract="ServiceReference.ICcsDataCacheSyncContract"
        name="WSHttpBinding_ICcsDataCacheSyncContract">
            <identity>
              <servicePrincipalName value="host\rajeshtest" />
            </identity>
          </endpoint>
        </client>
      </system.serviceModel>
    
    

    Some of the client’s (windows application) pc internet connection is behind a proxy, how do I configure and what are the settings I should provide them to connect to the service?

    Thnks,

    Raj


    Rx

Ответы

Все ответы