Click here to Skip to main content
16,022,846 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<wsHttpBinding>
          <binding name="wsHttpBinding_https" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
            <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
            <!--<security mode="Message">-->
            <security mode="Transport">
              <transport clientCredentialType="Windows"/>
            </security>
          </binding>
        </wsHttpBinding>
      </bindings>
    <services>
      <service behaviorConfiguration="RegistrationUserBehavior" name="UserInformationAPI.Service.Library.RegistrationUserLibrary">
        <endpoint address="https://localhost:4588/UserInformationAPI.Service.Host/RegistrationUser.svc" binding="wsHttpBinding" contract="UserInformationAPI.Service.Contract.IRegistrationUser" bindingConfiguration="wsHttpBinding_https">
          <identity>
            <dns value="localhost" />
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="RegistrationUserBehavior">
          <serviceMetadata httpsGetEnabled="true" httpsGetUrl="https://localhost:4588/UserInformationAPI.Service.Host/RegistrationUser.svc/wsdl" />
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
Posted
Comments
sureshsankar 27-Jun-13 7:10am    
help with me friends

have you enabled Https in config file?

<servicemetadata httpsgetenabled="true">
 
Share this answer
 
Comments
sureshsankar 27-Jun-13 7:40am    
Yes I have hosted in Https in config file,So how to solve below error
Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]
ArunRajendra 28-Jun-13 2:18am    
Can you post the full web.config file
You would need to enable SSL on IIS to accept https connections.
You can do that in IIS Control panel ( of the server where you are hosting this service) and enable SSL
 
Share this answer
 
Comments
bimal.relyon 7-Feb-20 0:44am    
Thanks, Adding https binding on 443 in IIS solved the issue

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900