【发布时间】:2017-09-26 18:44:30
【问题描述】:
从 WSDL 生成 pojo 时出现以下异常。
外部 DTD:无法读取外部 DTD 'XMLSchema.dtd',因为 由于设置的限制,不允许“http”访问 访问ExternalDTD 属性。
我在 [WebService Client Generation Error with JDK8
中找到了解决方案[1]: WebService Client Generation Error with JDK8 有人提到要在 jvm 参数下面添加。
-Djavax.xml.accessExternalSchema=all
如何在 jvm 1.8 中添加此参数(仅供参考,我使用的是 macos)或使用上述 jvm 参数运行 wsimport?
【问题讨论】:
标签: web-services soap jvm soap-client wsimport