我正在使用 wsimport 从服务器导入 wsdl 文件。这是我正在使用的命令:
X:>wsimport -keep -verbose http://xxxxxxxxxx
parsing WSDL...
[ERROR] Schema descriptor {http://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX in message part "in" is not defined and could not be bound to Java. Perhaps the schema descriptor is not defined in the schema imported/included in the WSDL. You can either a
dd such imports/includes or run wsimport and provide the schema location using -
b switch.
如何导入 wsdl 文件?
最佳答案
指定了确切的 JDK 版本
%AS_HOME%/bin/wsimport -keep -d ./build -p com.sample.hello http://localhost:8080/HelloSvr/HelloService?wsdl
关于java - wsimport - 未定义模式描述符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10721365/