WSDL JAVA w3.org 文件过早结束

问题描述 投票:0回答:1

[错误] 文件过早结束。 第 1 行 di http://www.w3.org/2005/05/xmlmime

[错误] org.xml.sax.SAXParseException;系统ID:http://www.w3.org/2005/05/xmlmime;行号:1;列数:1;文件提前结束。 第 1 行 di https://************************************-soap/soap02?wsdl

当我调用 SOAP WSDL 时,我的应用程序已经报告此错误一段时间了。该服务可以访问,但似乎在 https 中未读取 w3c 架构。

有人遇到同样的问题吗?

我尝试通过soapUI生成客户端,但仍然是同样的问题。

java soap service soapui soap-client
1个回答
0
投票

我在使用 jaxws-maven-plugin v2.3 的旧 Java 8 项目中遇到了这个问题。我将插件升级到 v2.6(在 org.codehaus.mojo 组中),并在 wsdl/www.w3.org/2005/05 的 src 下添加了 xmlmime.xsd 的副本。xsd 是从 WSDL 中获取的文件夹而不是尝试从主机位置下载。 xmlmime.xsd 可以从 https://w3.org/2005/05/xmlmime.xsd

下载

Folder location for xsd file

© www.soinside.com 2019 - 2024. All rights reserved.