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

标签 ssl xaf

当我打开我的 Xaf 移动解决方案的属性页面时,我可以看到项目 url 是

http://localhost:2065/

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

我需要做什么?

project url

最佳答案

有两种项目属性。 项目右键访问的和按F4访问的

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

复制 URL 并将其粘贴到属性的 Web 选项卡上的项目 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>

关于ssl - 如何设置 XAF Mobile 解决方案以在本地主机上使用 SSL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52885052/

相关文章:

security - 如何让客户端先进行身份验证?

java - IOException 错误 : javax.net.ssl.SSLHandshakeException : java. security.cert.CertPathValidatorException:找不到证书路径的信任 anchor

Devexpress XAF 类属性数据源过滤

visual-studio - 指定的 LocalDB 实例名称无效 : Able to create migrations but not run them

asp.net-mvc-3 - 在没有主机头的 IIS 7 上设置通配符 SSL 证书

asp.net - 我应该为我的 Web 服务购买哪种 SSL 证书?

ruby-on-rails - 如何让 Nginx 和 Phusion Passenger 维护两个 Rails 实例之间的 session ?

nuget - 解决方案中没有NuGet支持的项目

c# - DevExpress eXpressApp 框架 (XAF) - Web 应用程序定制