简体   繁体   English

AXIS2 web 服务与 maven 和 tomcat,部署为 aar

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

I have a Web Service deployed (as an aar) file to Axis2, I Use this tutorial: https://www.rukspot.com/blog/axis_2_sample_web_service_with_maven_and_eclipse我有一个 Web 服务部署(作为 aar)文件到 Axis2,我使用本教程: https://www.rukspot.com/blog/axis_2_sample_web_service_with_maven_and_eclipse

I can get to the 'Services' page ( http://localhost:7070/axis2/services/listServices ) It correctly shows my web service.我可以进入“服务”页面( http://localhost:7070/axis2/services/listServices )它正确显示了我的 web 服务。 I can click on that link to get the WSDL ( http://localhost:7070/axis2/services/MyService?wsdl ) All good so far but I want to change http to https . I can click on that link to get the WSDL ( http://localhost:7070/axis2/services/MyService?wsdl ) All good so far but I want to change http to https . I know this has been ask over and over but I haven't (yet) found the solution for aar file, when I Copy the MyService.aar and paste to apache-tomcat/webapps/axis2/WEB-INF/services the url is http by default ( http: //localhost:7070/axis2/services/listServices) how can I Change It to https ?我知道这一直在问,但我还没有找到 aar 文件的解决方案,当我复制 MyService.aar 并粘贴到 apache-tomcat/webapps/axis2/WEB-INF/services url 是默认情况下httphttp: //localhost:7070/axis2/services/listServices )如何将其更改为https Any ideas?有任何想法吗?

Relevant info: Intellij Idea, Axis2, JAVA 8, Tomcat 8, maven相关信息:Intellij Idea、Axis2、JAVA 8、Tomcat 8、maven

You can set https in your server.xml file by defining a new connector.您可以通过定义新的连接器在 server.xml 文件中设置 https。 If you do not have a keystore and a certificate (starting from scratch) I recommend you following the docs here https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html如果您没有密钥库和证书(从头开始),我建议您按照此处的文档https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.ZFC35FDC70D5FC69D2E362

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM