Note that there are some explanatory texts on larger screens.

plurals
  1. POSend encrypted data wcf - windows phone
    text
    copied!<p>I'm using WCF service to communicate with DB. My WP7.5 application sends data through WCF to DB. I use basichttpbinding, because WP supports only this one. I would like to send data in encrypted form. I know, that https is used for these purposes. Here is my web.config:</p> <pre><code>&lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="serviceBehavior"&gt; &lt;serviceMetadata httpGetEnabled="true" /&gt; &lt;serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="baseBinding" &gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service behaviorConfiguration="serviceBehavior" name="TestWCF.WcfNotificationService.WcfNotificationService"&gt; &lt;endpoint address="base" binding="basicHttpBinding" bindingConfiguration="baseBinding" contract="TestWCF.WcfNotificationService.IWcfNotificationService" /&gt; &lt;host&gt; &lt;timeouts openTimeout="00:05:00" /&gt; &lt;/host&gt; &lt;/service&gt; &lt;/services&gt; </code></pre> <p></p> <p>I've googled and found that I have to set securityMode to transport, but it gives me an exception, when I try to update service reference in my WP application. Could you help me please, how to achieve this, that data will be encrypted? Thanks a lot!</p> <p><strong>EDIT</strong></p> <p>This is the error:</p> <blockquote> <p>Could not find a base address that matches scheme for https for the endpoint with binding BasicHttpBinding. Registered base address schemes are [http].</p> </blockquote> <p>I get this, when I update service reference in client.</p>
 

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