如何设置XAF Mobile解决方案以在本地主机上使用SSL?

时间:2018-10-19 02:26:55

标签: ssl xaf

打开Xaf Mobile解决方案的属性页面时,我可以看到项目URL为

http://localhost:2065/

我想在开发环境中使用SSL。

我需要做什么?

project url

1 个答案:

答案 0 :(得分:0)

有2种项目属性。 通过右键单击项目访问的对象和通过按F4键访问的对象

突出显示移动项目并按F4 然后,您可以看到带有URL的SSL Enabled属性 Press F4

复制URL并将其粘贴到属性的Web选项卡上的Project Url中

Right Click Project

那么您可能要解决下一个问题

The resource cannot be found

Dev Express Help复制

下一步是将MainDemo替换为我的解决方案名称

<bindings>
  <webHttpBinding>
    <binding name="msgSize" maxReceivedMessageSize="2147483647">
    </binding>
    <binding name="msgSizeSSL" maxReceivedMessageSize="2147483647">
      <security mode="Transport">
        <transport clientCredentialType="None"></transport>
      </security>
    </binding>
  </webHttpBinding>
</bindings>
<services>
  <service name="MainDemo.Mobile.DataService">
    <endpoint address="" behaviorConfiguration="" binding="webHttpBinding" bindingConfiguration="msgSize" contract="System.Data.Services.IRequestHandler"/>
<endpoint address="" behaviorConfiguration="" binding="webHttpBinding" bindingConfiguration="msgSizeSSL" contract="System.Data.Services.IRequestHandler"/>
  </service>
  <service name="MainDemo.Mobile.MetadataService">
    <endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="msgSize" contract="DevExpress.ExpressApp.Mobile.Services.IMobileMetadataService"/>
<endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="msgSizeSSL" contract="DevExpress.ExpressApp.Mobile.Services.IMobileMetadataService"/>
  </service>
  <service name="MainDemo.Mobile.DownloadReportService">
    <endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="msgSize" contract="DevExpress.ExpressApp.ReportsV2.Mobile.IXafDownloadReportService" />
<endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="msgSizeSSL" contract="DevExpress.ExpressApp.ReportsV2.Mobile.IXafDownloadReportService" />
  </service>
</services>