views:

76

answers:

0

Hello,

I set up a custom binding with http and https endpoints for my WCF webservice. However, when I attempt to call the https endpoint, I get the following

The provided URI scheme 'https' is invalid; expected 'http

Here are my two bindings

 <customBinding>
        <binding name="jsonpBinding">
          <jsonpEncoding/>
          <httpTransport manualAddressing="true"/>
        </binding>
        <binding name="jsonpSecureBinding">
          <jsonpEncoding/>
          <httpsTransport manualAddressing="true"/>        
        </binding>
</customBinding>

And my endpoints

<endpoint address="jsonp" contract="QBE.BillingSupport.Services.IBillingService" binding="customBinding" bindingConfiguration="jsonpBinding" behaviorConfiguration="json"/>

<endpoint address="jsonp" contract="QBE.BillingSupport.Services.IBillingService" binding="customBinding" bindingConfiguration="jsonpSecureBinding" behaviorConfiguration="json"/>

Any help to what I am doing wrong? Thanks!