cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] Issue Commented: (CXF-1207) Namespace confusion with explicit wrapper elements
Date Tue, 13 Nov 2007 14:49:10 GMT


Daniel Kulp commented on CXF-1207:

My gut feeling says that it's not supposed to work.

Per spec, if the localName and targetNamespace attributes are NOT present on the @RequestWrapper
annotation, we have to use the operation name and namespace of the SEI for the element.  
   When GENERATING the wrapper types, we do generate the XmlRootElement to match the info
in the @RequestWrapper stuff (as well as put that info in the @XmlType so the type is generated

Probably should see what the RI does in this situation.

> Namespace confusion with explicit wrapper elements
> --------------------------------------------------
> common.concepts.key: CXF-1207
> common.concepts.url:
>common.concepts.project: CXF
>common.concepts.issuetype: Bug
>common.concepts.components: JAX-WS Runtime, JAXB Databinding
>    Affects Versions: 2.1
>issue.field.reporter: Benson Margulies
>issue.field.assignee: Daniel Kulp
>     @RequestWrapper(className = "org.apache.cxf.javascript.fortest.BasicTypeFunctionReturnStringWrapper")
> asks for an explicit wrapper.
> @XmlRootElement
> public class BasicTypeFunctionReturnStringWrapper
> declares it. Note the lack of an @XmlType and the lack of a namespace on the root element.
At runtime, this results in ...
> Should this work? Is it really the same problem as CXF-1198?
> Nov 13, 2007 8:24:21 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean fillInSchemaCrossreferences
> SEVERE: Schema element {uri:org.apache.cxf.javascript.fortest}basicTypeFunctionReturnString
references undefined type basicTypeFunctionReturnStringWrapper for service {uri:org.apache.cxf.javascript.fortest}SimpleDocLitWrappedUnqualifiedService.
> Nov 13, 2007 8:24:23 AM org.apache.cxf.wsdl.EndpointReferenceUtils getSchema
> WARNING: SAXException for newSchema()
> org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'basicTypeFunctionReturnStringWrapper'
to a(n) 'type definition' component.
> 	at
> 	at

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message