2016-06-20 10:34:09,218 [http-192.4.211.232-8080-2] INFO (org.apache.axis2.deployment.repository.util.ArchiveReader) - Trouble processing wsdl file :WSDLException (at /definitions/types/xs:schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'http://ws-i.org/profiles/basic/1.1/swaref.xsd', relative to 'file:/vendor/jboss-eap-5.1/jboss-as/server/test/tmp/53g9qvv7g-oxqwpl-ipo49zi1-1-ipo234s1-ep/MyProject.war/WEB-INF/services/testservice/META-INF/'.: java.net.ConnectException: Connection timed out
在 JBoss AS 5.1 上部署我的 wsdl 文件后,我尝试访问该文件后收到此错误。我不知道为什么我会得到这个。这是 /definitions/types/xs:schema
的样子:
<xs:schema elementFormDefault="qualified" targetNamespace="MyProtcol.xsd"
xmlns="MyProtocol.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://ws-i.org/profiles/basic/1.1/xsd"
schemaLocation="http://ws-i.org/profiles/basic/1.1/swaref.xsd" />
知道可能出了什么问题吗?
最佳答案
问题是您无法访问 XSD http://ws-i.org/profiles/basic/1.1/swaref.xsd
<xs:import namespace="http://ws-i.org/profiles/basic/1.1/xsd"
schemaLocation="http://ws-i.org/profiles/basic/1.1/swaref.xsd" />
无法导入 XSD。
能否请您确认您在计算机上看不到 XSD http://ws-i.org/profiles/basic/1.1/swaref.xsd
?
关于java - 处理 wsdl 文件时出现问题 :WSDLException. 尝试解析架构时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37926884/