Anisha Kapoor created CXF-8268:
----------------------------------
Summary: Generate JAVA classes from XSD hierarchy without namespace
Key: CXF-8268
URL: https://issues.apache.org/jira/browse/CXF-8268
Project: CXF
Issue Type: Bug
Components: Configuration
Affects Versions: 3.3.1, 3.3.0
Environment: [^soap-consumer.zip]
Reporter: Anisha Kapoor
Attachments: soap-consumer.zip
I have a set of XSD files from a client. I need to generate java classes from
those. One of the XSDs imports another without namespace. That fails the mvn
generate-sources with an error: _src-resolve: Cannot resolve the name
'faultstring' to a(n) 'element declaration' component.
org.xml.sax.SAXParseException; systemId:
file:/src/main/resources/Common/SOAP_Fault_v4_0_0.xsd_
I am using openjdk 11 with version 3.3.0 of cxf-xjc-plugin to generate classes.
Attached is the project.
I have tried to generate the child XSD (SOAP_Fault_v4_0_0) separately and used
bindings file to refer to the generated class from parent(Envelope). Doesnt
work.
When I give a namespace to the child XSD SOAP_FaultElements_v4_0_0.xsd and
refer in SOAP_Fault_v4_0_0.xsd using the prefix, it generates the classes fine
but then it doesn't match with the client response. I cannot modify the client
XSDs as that is out of my scope. However if a modification doesn't alter the
namespaces and structure, I can give it a try.
Reference project is attached.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)