views:

19

answers:

1

According to this I need to set an attribute in code to get SSL encryption for my RIA service calls. Is there no way to do this with a configuration file?

(I currently use Visual Studio 2008 and Silverlight 3.)

A: 

I'm not sure about VS2008 + Silverlight 3 but with VS2010 and Silverlight 4 you can set it through web.config.

You can use the behavior.serviceMetadata tag to set https enabled.

e.g.

<behavior name="ReportServiceBehavior">
  <serviceMetadata httpsGetEnabled="true" />
</behavior>

You then set the security mode for any bindings, e.g.

<webHttpBinding>
  <binding name="webHttpBindingConf">
    <security mode="Transport">
      <transport clientCredentialType="None"/>
    </security>
  </binding>
</webHttpBinding>
Fermin
I will switch to SL4 but cannot do this right now...
Stefan Egli
Are these settings not available in SL3?
Fermin