我收到以下错误
javax.xml.ws.soap.SOAPFaultException: Marshalling Error: The https URL hostname does not match the Common Name (CN) on the server certificate. To disable this check (NOT recommended for production) set the CXF client TLS configuration property "disableCNCheck" to true.
当我尝试连接和使用 Web 服务时。
我在 cxf.xml 中添加了以下几行,但它仍然不起作用。
<http-conf:conduit name="*.http-conduit">
<!-- deactivate HTTPS url hostname verification (localhost, etc)
WARNING ! disableCNcheck=true should NOT be used in production -->
<http-conf:tlsClientParameters disableCNCheck="true" />
cxf.xml 文件放在WEB-INF/classes/CxfService 下。
请让我知道会是什么问题?