java - Collision error while generating JAX-WS artifacts from the WSDL -
i trying create web service client in java. following answer in question , facing following errors. , don't know how fix them . tried netbeans same errors
[error] 2 declarations cause collision in objectfactory class. line 1 of http://41.137.246.222/service.svc?xsd=xsd3 [error] (related above error) other declaration. line 1 of http://41.137.246.222/service.svc?xsd=xsd3 exception in thread "main" com.sun.tools.internal.ws.wscompile.abortexception @ com.sun.tools.internal.ws.processor.modeler.wsdl.jaxbmodelbuilder.bind(jaxbmodelbuilder.java:129) @ com.sun.tools.internal.ws.processor.modeler.wsdl.wsdlmodeler.buildjaxbmodel(wsdlmodeler.java:2283) @ com.sun.tools.internal.ws.processor.modeler.wsdl.wsdlmodeler.internalbuildmodel(wsdlmodeler.java:183) @ com.sun.tools.internal.ws.processor.modeler.wsdl.wsdlmodeler.buildmodel(wsdlmodeler.java:126) @ com.sun.tools.internal.ws.wscompile.wsimporttool.buildwsdlmodel(wsimporttool.java:429) @ com.sun.tools.internal.ws.wscompile.wsimporttool.run(wsimporttool.java:190) @ com.sun.tools.internal.ws.wscompile.wsimporttool.run(wsimporttool.java:168) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:497) @ com.sun.tools.internal.ws.invoker.invoke(invoker.java:159) @ com.sun.tools.internal.ws.wsimport.main(wsimport.java:42)
here link of wsdl
and first line in xsd3
<xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema" xmlns:tns="http://schemas.datacontract.org/2004/07/sabil.dataobjects" elementformdefault="qualified" targetnamespace="http://schemas.datacontract.org/2004/07/sabil.dataobjects"> <xs:import schemalocation="http://41.137.246.222/service.svc?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/"/>
any appreciable.
Comments
Post a Comment