0
獲取例外:獲取XmlSchemaException:無法訪問我的web服務時找到導入文檔
org.apache.ws.commons.schema.XmlSchemaException:無法在「test.xsd」來定位 導入文檔,相對到 'jndi:/ localhost/proj/WEB-INF/wsdl/testwsdl#types1'。
獲取例外:獲取XmlSchemaException:無法訪問我的web服務時找到導入文檔
org.apache.ws.commons.schema.XmlSchemaException:無法在「test.xsd」來定位 導入文檔,相對到 'jndi:/ localhost/proj/WEB-INF/wsdl/testwsdl#types1'。
我是從我的戰爭中訪問互聯網服務和忘了,包括在WEB-INF xsd文件
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<webXml>src/main/webapp/WEB-INF/web.xml</webXml>
<webResources>
<resource>
<directory>../service/src/main/resources</directory>
<targetPath>WEB-INF/wsdl</targetPath>
<includes>
<include>*.wsdl</include>
<include>*.xsd</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
感謝您發表帖子! –