我正在使用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/

10-11 05:12