wsimport - 未定义架构描述符

时间:2012-05-23 13:49:40

标签: java xml web-services command-line wsdl

我正在使用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文件?

1 个答案:

答案 0 :(得分:0)

指定确切的JDK版本

  

%AS_HOME%/ bin / wsimport -keep -d ./build -p com.sample.hello http://localhost:8080/HelloSvr/HelloService?wsdl