[ https://issues.apache.org/jira/browse/CXF-8880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukas Lowinger updated CXF-8880: -------------------------------- Summary: Catch wrong XML binding file during parsing (was: Catch wrong namespace during parsing XML binding) > Catch wrong XML binding file during parsing > ------------------------------------------- > > Key: CXF-8880 > URL: https://issues.apache.org/jira/browse/CXF-8880 > Project: CXF > Issue Type: Bug > Reporter: Lukas Lowinger > Priority: Major > > Taking this example > https://github.com/apache/camel-spring-boot-examples/tree/bd9f51ed67d74fa5f4e8c4b40935ef88e7089274/soap-cxf > > (which uses _cxf-codegen-plugin:3.10.1:wsdl2java_) and running `mvn clean > package` will generate class *Customer.java* with > {noformat}protected LocalDate birthDate;{noformat} > but when changing version to _cxf-codegen-plugin:4.0.0:wsdl2java_ it will > generate > {noformat}protected XMLGregorianCalendar birthDate;{noformat} > Which means the binding XML was not used, the problem is that we must use > {code} > xmlns:jaxws="https://jakarta.ee/xml/ns/jaxws" > xmlns:jxb="https://jakarta.ee/xml/ns/jaxb" > {code} > instead of > {code} > xmlns:jaxws="https://java.sun.com/xml/ns/jaxws" > xmlns:jxb="https://java.sun.com/xml/ns/jaxb" > {code} > The problem is, that the cxf-codegen plugin doesn't throw any error while > loading such wrong XML binding file. Which could lead to problems during > upgrading to newer CXF codegen plugin. It should also be documented. -- This message was sent by Atlassian Jira (v8.20.10#820010)