cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akitoshi Yoshida (JIRA)" <>
Subject [jira] [Commented] (CXF-6580) wsdl2java - Issue with import to default namespace
Date Tue, 08 Sep 2015 19:11:46 GMT


Akitoshi Yoshida commented on CXF-6580:

there seems to be some issue between cxf and commons.schema.

commons.schema seems to use a null as its namespace URI to indicate no-namespace, instead
of using an empty stiring "", which is defined in constant javax.xml.XMLConstants#NULL_NS_URI.

I think we need to make a small change in cxf's JAXBDataBinding and that will solve this issue,
but i'll need to run more tests.

> wsdl2java - Issue with import to default namespace
> --------------------------------------------------
>                 Key: CXF-6580
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.1.2
>            Reporter: Alex Gfeller
>         Attachments:
> wsdl2java does not find imports, that have been made to the default namespace.
> Error:
> wsdl2java -verbose -d ./target getaccount.wsdl
> wsdl2java - Apache CXF 3.1.2
> Sep 07, 2015 10:19:22 AM org.apache.cxf.wsdl11.WSDLServiceBuilder checkForWrapped
> INFO: Operation {}GetAccount cannot be unwrapped, input
message must reference global element declaration with same localname as operation
> WSDLToJava Error: file:/Volumes/Data/opt/projects/res-cxf/types.xsd [11,8]: undefined
simple type 'Money'
> file:/Volumes/Data/opt/projects/res-cxf/types.xsd
[11,8]: undefined simple type 'Money'
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> Caused by: org.xml.sax.SAXParseException; systemId: file:/Volumes/Data/opt/projects/res-cxf/types.xsd;
lineNumber: 11; columnNumber: 8; undefined simple type 'Money'
> 	at com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(
> 	at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(
> 	at com.sun.xml.xsom.impl.parser.DelayedRef.resolve(
> 	at
> 	at com.sun.xml.xsom.impl.parser.ParserContext.getResult(
> 	at com.sun.xml.xsom.parser.XSOMParser.getResult(
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	... 5 more
> Doing the same thing with the std. wsimport works perfectly well.
> (please see attached example for reproduction).
> Based on the XML Schema Spec, this should work:
> {quote}
> The <import> element information item identifies namespaces used in external references,
i.e. those whose - QName-  identifies them as coming from a different namespace (or none)
than the enclosing schema document's targetNamespace. The - actual value-  of its namespace
[attribute] indicates that the containing schema document may contain qualified references
to schema components in that namespace (via one or more prefixes declared with namespace declarations
in the normal way). If that attribute is absent, then the import allows unqualified reference
to components with no target namespace. Note that components to be imported need not be in
the form of a - schema document- ; the processor is free to access or construct components
using means of its own choosing.
> {quote}
> Any thoughts for you side on this? 
> Thank you very much,
> Alex

This message was sent by Atlassian JIRA

View raw message