Newbie question about HTTPS and WCF

Discussion in 'ASP.NET WebServices' started by vah, Feb 2, 2009.

  1. vah

    vah

    Can anyone help me out setting up https to work for my WCF web service? The web service works great on HTTP, but when I turned on HTTPS I cannot get it to work... I've tried to do some changes in the web.config but nothing works... here's a part of my web.config what do I have to change to make it work....

    <system.serviceModel>


    <netTcpBinding>

    <readerQuotas maxDepth='32' maxStringContentLength='8192' maxArrayLength='5242880'
    maxBytesPerRead='4096' maxNameTableCharCount='16384' />
    <reliableSession ordered='true' inactivityTimeout='00:30:00'
    enabled='false' />

    <security mode='None' >

    </security>
    </binding>

    </netTcpBinding>
    </bindings>
    <client>
    <endpoint address='net.tcp://192.168.0.121:8001/SecureDownloadHost'
    binding='netTcpBinding' bindingConfiguration='NetTcpBinding_ISecureDownload'
    contract='SecureDownloadHost.ISecureDownload' name='NetTcpBinding_ISecureDownload'>
    </endpoint>
    </client>

    <serviceBehaviors>

    <!--<serviceMetadata httpGetEnabled='true' />-->
    <serviceMetadata httpsGetEnabled='true' />
    <serviceDebug includeExceptionDetailInFaults='True'/>
    </behavior>
    </serviceBehaviors>
    </behaviors>
    <services>
    <service behaviorConfiguration='SecureDownloadBehavior' name='SecureDownload'>
    <endpoint address='https://downloadmanager.pixellogo.com/Services/SecureDownload.svc' binding='basicHttpBinding' contract='ISecureDownload'/>
    <endpoint address='https://downloadmanager.pixellogo.com/Services/mex' binding='mexHttpsBinding' contract='IMetadataExchange'/>
    </service>
    </services>
    <serviceHostingEnvironment>

    <add prefix='http://downloadmanager.pixellogo.com/'/>
    </baseAddressPrefixFilters>
    </serviceHostingEnvironment>
    </system.serviceModel>
     
  2. vah

    vah

    Any help would be greatly appreciated....
     
  3. Bruce

    Bruce DiscountASP.NET Staff

Share This Page