2012-05-23 52 views
1

我正在使用wsimport从服务器导入wsdl文件。以下是我正在使用的命令:wsimport - 模式描述符未定义

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文件?

+0

的消息告诉你的wsimport不能访问与'in'消息部分有关的元素的类型定义......推测是请求。虽然你不能(除非一个非常宽松的Web服务)构造没有类型定义的请求,你可以模拟一个请求定义来获取处理方法存根。如果您提供缺少的实际完全限定名称(根据错误),响应方可以提供所需的模式类型以充当模拟请求。你能否解释一下 – dcbyers

回答