Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I found an answer digging around MSDN.</p> <p>In my case, I was using a custom binding:</p> <pre><code>&lt;customBinding&gt; &lt;binding name="jsonpBinding"&gt; &lt;jsonpMessageEncoding/&gt; &lt;httpTransport manualAddressing="true"/&gt; &lt;/binding&gt; &lt;/customBinding&gt; </code></pre> <p>That was referenced in the service</p> <pre><code>&lt;services&gt; &lt;service name="{YourInfoHere}"&gt; &lt;endpoint address="" binding="customBinding" bindingConfiguration="jsonpBinding" behaviorConfiguration="{YourInfoHere}" contract="{YourInfoHere}"/&gt; &lt;/service&gt; &lt;/services&gt; </code></pre> <p>Adding a second binding that used httpsTransport and then a second service that used that binding did the trick. Final output:</p> <pre><code> &lt;services&gt; &lt;service name="{YourInfoHere}"&gt; &lt;endpoint address="" binding="customBinding" bindingConfiguration="jsonpBinding" behaviorConfiguration="{YourInfoHere}" contract="{YourInfoHere}"/&gt; &lt;endpoint address="" binding="customBinding" bindingConfiguration="jsonpBindingHttps" behaviorConfiguration="{YourInfoHere}" contract="{YourInfoHere}"/&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;customBinding&gt; &lt;binding name="jsonpBinding"&gt; &lt;jsonpMessageEncoding/&gt; &lt;httpTransport manualAddressing="true"/&gt; &lt;/binding&gt; &lt;binding name="jsonpBindingHttps"&gt; &lt;jsonpMessageEncoding/&gt; &lt;httpsTransport manualAddressing="true" /&gt; &lt;/binding&gt; &lt;/customBinding&gt; &lt;/bindings&gt; </code></pre> <p>May not be ideal, but it works. These were the only changes I made to make SSL work. Since it is all in the binding &amp; transport, the code remains the same.</p> <p>Relevant MSDN links:</p> <ol> <li>Custom Binding: <a href="http://msdn.microsoft.com/en-us/library/ms731377.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/ms731377.aspx</a></li> <li>HttpTransport: <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.httptransportbindingelement.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.httptransportbindingelement.aspx</a></li> <li>HttpsTransport: <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.httpstransportbindingelement.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.httpstransportbindingelement.aspx</a></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload