将soap:address位置从http更改为https
是的,我的应用程序服务器在https上运行。客户端要求将肥皂地址从http更改为https。
客户要求每当他想要2通过浏览器看到wsdl时,soap地址应为https
我已经在axis2.xml中添加了它…
<transportReceiver name="https" class="org.apache.axis2.transport.http.SimpleHTTPServer"> <parameter name="port">8443</parameter> </transportReceiver>
我在service.xml中添加了以下内容
<transports> <transport>HTTPS</transport> </transports>
在关闭标签之后,但它给了我下面的错误。
它给了我例外
org.apache.axis2.deployment.DeploymentException: Service [ RTAPDevService] is trying to expose in a transport : <transports> <transport>HTTPS</transport> </transports> and which is not available in Axis2 –
回答:
有一个错字。它应该是 :
<transports><transport>https</transport></transports>
不是HTTPS。
您的 将如下所示:
<wsdl:service name="SampleService"><wsdl:port name="SampleServiceHttpsSoap11Endpoint" binding="ns:SampleServiceSoap11Binding">
<soap:address location="https://localhost:8443/Axis2HttpsProject/services/SampleService.SampleServiceHttpsSoap11Endpoint/"/>
</wsdl:port>
<wsdl:port name="SampleServiceHttpsSoap12Endpoint" binding="ns:SampleServiceSoap12Binding">
<soap12:address location="https://localhost:8443/Axis2HttpsProject/services/SampleService.SampleServiceHttpsSoap12Endpoint/"/>
</wsdl:port>
<wsdl:port name="SampleServiceHttpsEndpoint" binding="ns:SampleServiceHttpBinding">
<http:address location="https://localhost:8443/Axis2HttpsProject/services/SampleService.SampleServiceHttpsEndpoint/"/>
</wsdl:port>
</wsdl:service>
还有一点,请确保已添加了 jar。
以上是 将soap:address位置从http更改为https 的全部内容, 来源链接: utcz.com/qa/431791.html