如何设置 XAF Mobile 解决方案以在本地主机上使用 SSL?
How do I set up an XAF Mobile solution to use SSL on localhost?
当我打开我的 Xaf 移动解决方案的属性页面时,我可以看到项目 url 是
http://localhost:2065/
我想在我的开发环境中使用 SSL。
我需要做什么?
有两种项目属性。
右击项目访问的和按F4访问的
突出显示移动项目并按 F4
然后你可以看到 SSL Enabled 属性 和 URL
复制 URL 并将其粘贴到属性 Url 的 Web 选项卡上的项目
那么你可能会关注下一期
下一步将用我的解决方案名称替换 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>
当我打开我的 Xaf 移动解决方案的属性页面时,我可以看到项目 url 是
http://localhost:2065/
我想在我的开发环境中使用 SSL。
我需要做什么?
有两种项目属性。 右击项目访问的和按F4访问的
突出显示移动项目并按 F4
然后你可以看到 SSL Enabled 属性 和 URL
复制 URL 并将其粘贴到属性 Url 的 Web 选项卡上的项目
那么你可能会关注下一期
下一步将用我的解决方案名称替换 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>