是的,我的应用服务器在https上运行.客户端要求将soap地址从http更改为https.
客户要求每当他想要2通过broswer看到wsdl时,肥皂地址应该是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 –
解决方法:
service.xml中有一个拼写错误.它应该是 :
<transports><transport>https</transport></transports>
不是HTTPS.
你的wsdl看起来像这样:
<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>
还有一件事,确保你已经添加了http-core jar.