带有 maven 和 tomcat 的 AXIS2 Web 服务,部署为 aar

AXIS2 web service with maven and tomcat,deployed as an aar

我有一个 Web 服务部署(作为 aar)文件到 Axis2,我使用这个教程:https://www.rukspot.com/blog/axis_2_sample_web_service_with_maven_and_eclipse

我可以进入 'Services' 页面 (http://localhost:7070/axis2/services/listServices) 它正确显示了我的网络服务。我可以单击 link 来获取 WSDL (http://localhost:7070/axis2/services/MyService?wsdl) 到目前为止一切都很好,但我想将 http 更改为 https。 我知道这已经被问了一遍又一遍,但我还没有(还)找到 aar 文件的解决方案,当我复制 MyService.aar 并粘贴到 apache-tomcat/webapps/axis2/WEB-INF/services 时 url 是 [=默认为 20=]http (http://localhost:7070/axis2/services/listServices) 如何将其更改为 https ?有任何想法吗?

相关信息: 智能理念, 轴 2, JAVA 8, Tomcat8个, 行家

您可以通过定义新连接器在 server.xml 文件中设置 https。如果您没有密钥库和证书(从头开始),我建议您按照此处的文档 https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html