更改soap:地址位置从http到https
是的,我的应用服务器在https上运行。 客户端要求将soap地址从http更改为https。
客户要求每当他想要2通过broswer看到wsdl时,肥皂地址应该是https
我已经在axis2.xml中添加了这个…
8443
我在service.xml中添加了以下内容
HTTPS
关闭标签后,它给我下面的错误。
它给了我例外
org.apache.axis2.deployment.DeploymentException: Service [ RTAPDevService] is trying to expose in a transport : HTTPS and which is not available in Axis2 –
service.xml中有一个拼写错误。 它应该是 :
https
不是HTTPS。
你的wsdl看起来像这样:
还有一件事,确保你已经添加了http-core jar。
这就是我做的:
创建证书
keytool -genkey -alias localhost -keypass password -keystore /choose/a/path/localhost.bin -storepass password -keyalg RSA
在tomcat中为AXIS2在服务器端启用SSL
在tomcat的Server.xml
中添加以下内容:
更改axis2.xml
(您可以同时使用:http和https)
8080 8443
希望能帮助到你。