【发布时间】:2011-07-29 13:39:43
【问题描述】:
我正在使用 CXF wsdl2java 命令行工具在 https 连接下从 WSDL 生成 Java 类。 生成过程中一切正常,但是当我调用 WSDL 提供的服务之一时,我得到了这个异常:
java.io.IOException: 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.
这个 disableCNCheck 是我可以在 java 类生成期间设置的吗?似乎不是,或者至少它不是 wsdl2java 的有效选项。
我必须在 wsdl 或我的 (grails) 应用程序中指定什么,它使用生成的 java 类吗?
【问题讨论】:
标签: grails command-line wsdl cxf