Am trying to generate stubs using wsimport but am getting errors unable to parse "xml.xsd" full error is below
Ant wsimport target
<target name="wsimport">
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
<classpath refid="jaxws.classpath"/>
</taskdef>
<wsimport debug="true"
keep="true"
destdir="${generated.client}
wsdl = "http://localhost:8080/emc-cmis-ea/services/RepositoryService?wsdl"/>
</target>
and the error I get is
[wsimport] Consider using <depends>/<produces> so that wsimport won't do unnecessary compilation
[wsimport] parsing WSDL...
[wsimport] [ERROR] Unable to parse "xml.xsd" : http://localhost:8080/emc-cmis-ea/services/xml.xsd
[wsimport] line 8 of http://localhost:8080/emc-cmis-ea/services/RepositoryService?xsd=1
[wsimport] [ERROR] Unable to parse "xml.xsd" : http://localhost:8080/emc-cmis-ea/services/xml.xsd
[wsimport] Failed to read the WSDL document: http://localhost:8080/emc-cmis-ea/services/RepositoryService?wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.
[wsimport] [ERROR] Could not find wsdl:service in the provide WSDL(s):
[wsimport] http://localhost:8080/emc-cmis-ea/services/RepositoryService?wsdl
[wsimport] You need to provide atleast one WSDL with at least one service definition.
[wsimport] Failed to parse the WSDL.
[wsimport] Command invoked: wsimport "C:\Program Files\Java\jre1.5.0_12\bin\java.exe" -d C:\workspace\jaxwstutorial\src\main\generated\client -g -keep http://localhost:8080/emc-cmis-ea/services/RepositoryService?wsdl
Has anyone had the same problem the weird thing is that I can access the wsdl using the url http://localhost:8080/emc-cmis-ea/services/RepositoryService?wsdl