2012-05-23 55 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

回答