我想知道是否可以得到一些幫助解決以下問題。使用Jax生成代理Web服務客戶端時出錯
我試圖運行下面使用JAX生成Web服務客戶端代理的命令:
wsimport http://www.holidaywebservice.com/Holidays/HolidayService.asmx?WSDL
但我發現了以下錯誤:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Asher>wsimport http://www.holidaywebservice.com/Holidays/HolidayService.asmx?WSDL
parsing WSDL...
[WARNING] src-resolve.4.2: Error resolving component 's:schema'. It was detected that 's:schema' is in namespace 'http:/
/www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document 'http://www.h
olidaywebservice.com/Holidays/HolidayService.asmx?WSDL#types?schema1'. If this is the incorrect namespace, perhaps the p
refix of 's:schema' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be ad
ded to 'http://www.holidaywebservice.com/Holidays/HolidayService.asmx?WSDL#types?schema1'.
line 15 of http://www.holidaywebservice.com/Holidays/HolidayService.asmx?WSDL#types?schema1
[ERROR] undefined element declaration 's:schema'
line 15 of http://www.holidaywebservice.com/Holidays/HolidayService.asmx?WSDL
[ERROR] undefined element declaration 's:schema'
line 36 of http://www.holidaywebservice.com/Holidays/HolidayService.asmx?WSDL
[ERROR] undefined element declaration 's:schema'
line 74 of http://www.holidaywebservice.com/Holidays/HolidayService.asmx?WSDL
[ERROR] undefined element declaration 's:schema'
line 97 of http://www.holidaywebservice.com/Holidays/HolidayService.asmx?WSDL
[ERROR] undefined element declaration 's:schema'
line 120 of http://www.holidaywebservice.com/Holidays/HolidayService.asmx?WSDL
[ERROR] undefined element declaration 's:schema'
line 131 of http://www.holidaywebservice.com/Holidays/HolidayService.asmx?WSDL
C:\Users\Asher>
首先我做錯東西不正確?最後,如果沒有辦法生成代理客戶端,那麼有沒有其他的方式來訪問這個webservice &它是java中的方法。 我是仙女新的Java所以任何幫助將不勝感激。
謝謝
我沒有創建WSDL那麼傷心,我有沒有對其進行控制。 – zSynopsis 2011-06-02 13:44:00
編輯帖子,根據你的評論回答。 – 2011-06-02 17:04:30