Details
Description
xfire-1.1 generates stubs for the attached WSDL ok
But 1.2-RC fails with following errors:
[wsgen] Aug 18, 2006 5:45:24 PM org.codehaus.xfire.gen.Wsdl11Generator generate
[wsgen] INFO: Generating code for WSDL at
http://localhost:8083/AdminWebUI/services/CategoryService?wsdl with a
base URI of http://localhost:8083/AdminWebUI/services/CategoryService?wsdl
[wsgen] Aug 18, 2006 5:45:25 PM
org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl warning
[wsgen] SEVERE: Error generating JAXB classes: src-resolve.4.2: Error
resolving component 'ns2:PodcastSecurityException'. It was detected
that 'ns2:PodcastSecurityException' is in namespace
'http://security.podcasts.simple.com', but components from this
namespace are not referenceable from schema document
'http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1'.
If this is the incorrect namespace, perhaps the prefix of
'ns2:PodcastSecurityException' needs to be changed. If this is the
correct namespace, then an appropriate 'import' tag should be added to
'http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1'.
at -1,-1 in http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1
[wsgen] Aug 18, 2006 5:45:25 PM
org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl warning
[wsgen] SEVERE: Error generating JAXB classes: src-resolve.4.2: Error
resolving component 'ns1:Category'. It was detected that
'ns1:Category' is in namespace
'http://entities.bom.podcasts.simple.com', but components from this
namespace are not referenceable from schema document
'http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1'.
If this is the incorrect namespace, perhaps the prefix of
'ns1:Category' needs to be changed. If this is the correct namespace,
then an appropriate 'import' tag should be added to
'http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1'.
at -1,-1 in http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1
[wsgen] com\simple\podcasts\security\AuthException.java
[wsgen] com\simple\podcasts\security\ObjectFactory.java
[wsgen] com\simple\podcasts\security\PodcastSecurityException.java
[wsgen] com\simple\podcasts\security\package-info.java
[wsgen] com\simple\podcasts\bom\entities\ArrayOfCategory.java
[wsgen] com\simple\podcasts\bom\entities\Category.java
[wsgen] com\simple\podcasts\bom\entities\ObjectFactory.java
I think this is an issue with JAXB actually. Would you mind trying the latest nightly JAXB build?
https://jaxb.dev.java.net/servlets/ProjectDocumentList?folderID=460&expandFolder=460&folderID=0