This problem starts in ReflectionServiceFactoryBean.java, in
createWrappedMessageSchema, at the first call to setRefName.

mpi.getElementQName is returning {}testBean1. There is no schema in the
collection for {}, of course, so that element can't be looked up. So we
are ending up with a XmlSchemaElement that has no type, no type name,
and a ref to a supposed root element that can't be found.

This doesn't seem right to me.

 

> -----Original Message-----
> From: Benson Margulies [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 01, 2007 9:49 AM
> To: [email protected]
> Subject: refName in XmlSchema unqualified in surprising way.
> 
> Before I go to JIRA ...
> 
> I think I have a JAXWS issue here, but I wanted to check on the
> semantics.
> 
> JAXWS + JAXB.
> 
> package-info.java specifies elementFormDefault qualified and a prefix
> for one namespace, but no namespace URI for the package.
> 
> TNS for service is uri:org.apache.cxf.javascript.fortest.
> 
> Wrapper bean for function has complex type with element.
> 
> Element has @XmlType with namespace of:
> uri:org.apache.cxf.javascript.testns.
> 
> The constructed XmlSchema for the complex type for one of the method
> wrappers has an XmlSchemaElement with a refName for
> 
> {}testBean1
> 
> Instead of {uri:org.apache.cxf.javascript.testns}testBean1
> 
> I provoked this issue by adding the package-info.java.
> 
> This can't be right, can it?
> 
> 

Reply via email to