I have a web service that includes two XSD schemas which both include the same shared common schema.
When using the XFire eclipse plugin to generate a web service client I get an error because the plugin tries to generate the classes in the shared common schema twice. Is there a work around for this? The exception is: 02-Aug-2007 10:16:01 org.codehaus.xfire.gen.Wsdl11Generator generate INFO: Generating code for WSDL at http://localhost:8080/smartagent/CMSWebSuiteAccessPoint?WSDL with a base URI of http://localhost:8080/smartagent/CMSWebSuiteAccessPoint?WSDL Retrieving schema at 'common.xsd', relative to ' http://localhost:8080/smartagent/CMSWebSuiteAccessPoint?WSDL'. Retrieving schema at 'common.xsd', relative to ' http://localhost:8080/smartagent/CMSWebSuiteAccessPoint?WSDL'. 02-Aug-2007 10:16:08 org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error SEVERE: Two declarations cause a collision in the ObjectFactory class. at 105,72 in http://localhost:8080/smartagent/common.xsd 02-Aug-2007 10:16:08 org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error SEVERE: (Related to above error) This is the other declaration. at 0,0 in http://localhost:8080/smartagent/CMSWebSuiteAccessPoint?WSDL#types?schema5 org.codehaus.xfire.gen.GenerationException: Error generating JAXB model. at org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.initialize( JAXBSchemaSupport.java:108) at org.codehaus.xfire.gen.Wsdl11Generator.generate( Wsdl11Generator.java:154) at org.codehaus.xfire.eclipse.core.XFireCoreUtil.generateSourceFromWSDL( XFireCoreUtil.java:65) at org.codehaus.xfire.eclipse.ui.wizards.WSDL2CodeGeneratorWizard.doFinish( WSDL2CodeGeneratorWizard.java:60) at org.codehaus.xfire.eclipse.ui.wizards.WSDL2CodeGeneratorWizard.access$0( WSDL2CodeGeneratorWizard.java:35) at org.codehaus.xfire.eclipse.ui.wizards.WSDL2CodeGeneratorWizard$1.run( WSDL2CodeGeneratorWizard.java:88) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run( ModalContext.java:113) 02-Aug-2007 10:16:19 org.codehaus.xfire.gen.Wsdl11Generator generate
