将soap:address位置从http更改为https

将soap:address位置从http更改为https,第1张

将soap:address位置从http更改为https

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。



欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5561450.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-14
下一篇2022-12-14

发表评论

登录后才能评论

评论列表(0条)

    保存