Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF over SSL from non-secure page
    primarykey
    data
    text
    <p>I have a WCF service that I need to run over SSL, I am calling it from a webpage (using jQuery) which may or may not be a secure page. The problem is, if I make the call from a secure webpage on my site, the call runs exactly how I would expect...however, if I make the call from a non-secure page on my site, to the secure web service (using "https://" ;) ) it returns null data (via Firebug). Anything I'm missing? Is this even possible?</p> <p>Here is the configuration of the service I'm calling (I'm more than happy to provide more stuff if needed):</p> <pre><code>&lt;behaviors&gt; &lt;endpointBehaviors&gt; &lt;behavior name="AspNetAjaxBehavior"&gt; &lt;webHttp/&gt; &lt;/behavior&gt; &lt;/endpointBehaviors&gt; &lt;/behaviors&gt; &lt;services&gt; &lt;service name="ClientServices.Membership" behaviorConfiguration="ServiceGatewayBehavior"&gt; &lt;endpoint address="" behaviorConfiguration="AspNetAjaxBehavior" bindingConfiguration="SecureBinding" binding="webHttpBinding" contract="ClientServices.Membership" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;webHttpBinding&gt; &lt;binding name="SecureBinding"&gt; &lt;security mode="Transport"/&gt; &lt;/binding&gt; &lt;/webHttpBinding&gt; &lt;/bindings&gt; </code></pre> <p>Here is the code that calls the service:</p> <pre><code>$.ajax({ url: serviceUrl, type: "POST", contentType: "application/json; charset=utf-8", dataType: "json", data: '{"review":{"Username":"' + username + '"}}', success: function (data) { $.log(data); }, error: function (a, b, c) { $.log(b); }, cache: false }); </code></pre> <p><strong>UPDATE</strong></p> <p>If I change the service call method to "GET" and call it directly over SSL it works fine and outputs the jSon that I would expect. It's only inside the non-secure page where the problem persists.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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