将soap:address位置从http更改为https [英] change soap:address location from http to https

查看:783
本文介绍了将soap:address位置从http更改为https的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是,我的应用程序服务器在https上运行.客户端要求将肥皂地址从http更改为https.

客户端询问,只要他想2通过浏览器看到wsdl,soap地址应为https

yes my application server runs on https. Client is asking to change the soap address from http to https.

client is asking that whenever he want 2 see the wsdl through broswer the soap address should come as https

我已经在axis2.xml中添加了它...

i already added this in axis2.xml...

<transportReceiver name="https"      class="org.apache.axis2.transport.http.SimpleHTTPServer"> <parameter     name="port">8443</parameter> 
</transportReceiver>

我在service.xml中添加了以下内容

I added the below in service.xml

<transports> <transport>HTTPS</transport> </transports> 

在结束标记之后,但它给了我下面的错误.

after the closed tag, but it give me below error.

它给了我例外

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 中有一个错字.应该是:

There is a typo in service.xml. It should be :

<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.

And one thing more,make sure you have added http-core jar.

这篇关于将soap:address位置从http更改为https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆