wsimport try to resolve by namespace
Is it possible for wsimport to ignore "import" tags in wsdl that are http-linked to som开发者_StackOverflow中文版e XSD files and insted use XSD files provided next to the wsdl file?. I know svcutil is able to do so.
you can use an XML catalog to help tell wsimport how/where to resolve schema elements.
xmlcatalog ant docs
defines the xmlcatalog task for ant. you can reference the catalog via the "catalog" attribute of the wsimport ant task, or via the -catalog command line option of wsimport.
jaxws xml catalog docs
I hope this helps.
精彩评论