On Wednesday 29 September 2010 3:19:08 am sebge2 wrote:
> We have found why that problem is occurring. We are using several XSD files
> with the same target namespace i.e., the elements of a the same namespace
> are spread into different files.
> 
> When CXF is generating the schema for a namespace, it can find the first
> element definition, but not the others. For those elements it is simply
> putting a nillable attribute. When it finds other files, it simply appends
> their definitions in a new schema definition.
> 
> 
> Is CXF requiring that each namespace must be declared in a single file?

Well, it's a requirement of schema that a single namespace be imported via a 
single location.  The schema for that namespace can be split accross several 
files, but those files are then <xsd:include> into a "top level" schema for 
that namespace which would then be imported into the other schemas/wsdl.  That 
is a requirement of schema, not so much CXF. 

If you are using xsd:import or wsdl:import things to import multple  schema 
files of the same namespaces, that would be invalid.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to