A Maven plugin which can generate Java artifacts from a Web Services Description Language (WSDL) file, using Apache CXF.
Questions tagged [cxf-codegen-plugin]
114 questions
3
votes
0 answers
Specify JAXB/XJC version used by cxf-codegen-plugin
I am generating code with cxf-codegen-plugin. Current version (3.2.4) uses JAXB/XJC version 2.2.11.
How do I upgrade used JAXB/XJC to a later version, for instance 2.3.0?
Here's what I've tried so far:
…

lexicore
- 42,748
- 17
- 132
- 221
3
votes
1 answer
WSDL cxf custom bindings
I am trying to change the class names of cxf generated source from an inline WSDL. The bindings I specify using xpath keeps getting ignored.
Below is my binding file:

Brown
- 61
- 1
- 2
- 8
3
votes
2 answers
How to make jaxb plugin use OffsetDateTime
We have a xsd with xs:dateTime fields. This is our in-house internal API, and we can guarantee that the offset data is always included, so that it's ISO-8601 compatible. For example:
2016-01-01T00:00:00.000+01:00
Currently, the jaxb2 plugin maps…

Lustiger Astronaut
- 33
- 1
- 4
3
votes
1 answer
How to generate WebService client with CXF wsdl2java for online WSDL URL link
I am trying to generate a webservice client with the wsdl2java goal of the Apache CXF Maven Plugin. I have a WSDL URL link, but when using the Maven plugin, it is not generating the sources. Sample WSDL link is…

2787184
- 3,749
- 10
- 47
- 81
3
votes
1 answer
CXF wsdl2java listwrapper in wsdl should be unwrapped
I'm currently updating a old axis wsclient to a cxf(jaxb databinding) client,
now there are differences, how list/array are handled.
Let me explain that on an example:
wsdl
…

jmattheis
- 10,494
- 11
- 46
- 58
3
votes
1 answer
cxf-codegen-plugin and "Two declarations cause a collision in the ObjectFactory class."
We are trying to generate a Java SOAP client from to integrate with an external service. Since this is an external company, changes to the WSDL is not an option.
When trying to generate the client using the cxf-codegen-plugin Maven plugin, we get…

Nico Huysamen
- 10,217
- 9
- 62
- 88
3
votes
0 answers
cxf-xjc-runtime not included in Wildfly
I am using cxf-codegen-plugin version 2.7.13 (same as cxf version of Wildfly). I want to generate toString methods from wsdl so I add the -xjc-Xts argument and the dependency:
org.apache.cxf.xjcplugins
…

alex
- 705
- 9
- 21
3
votes
1 answer
cxf-codegen-plugin to exclude XSD files
I use cxf-codegen-plugin to generate a series of WS clients using Maven, on construction time. These WSDL reference some XSD schema definitions using a relative path like so: ../someService/schema.xsd
Now when I trigger a construction from Eclipse…

MichelReap
- 5,630
- 11
- 37
- 99
2
votes
1 answer
Skip maven plugin in parent project
I need skip plugin execution in parent pom project, but execute it in child projects. How do it this? Child projects use cxf-codegen-plugin with wsdl in path ${basedir}/src/main/resources/${wsdl-name}.wsdl, but parent project dont'n have wsdl.
Build…

Aidyn
- 33
- 2
2
votes
0 answers
Classes from WSDL aren't auto-generated by CXF
I'm trying to port a SOAP consuming application to JAVA. I'm having issues making cxf-codegen-plugin to read the WSDL, which is from a third party and it actually works. I'm guessing that the issue is that the WSDL is not fully compliant with the…

David Añez
- 75
- 9
2
votes
1 answer
cxf.version 3.2.1 giving org.apache.cxf.tools.common.ToolErrorListener error
I am trying to build a mavnen project with cxf-codegen-plugin. I am using cxf version 3.2.1, maven compiler plugin 3.7.0 ,java version 8 and I am building this in Intellij idea on ubuntu platform. Below is my pom.xml plugin details -
…

pythonaddict
- 283
- 3
- 4
- 13
2
votes
1 answer
Generate custom namespace prefix with CXF/JAXB (WSDL-first)
I am migrating a webservice from Weblogic to JBoss. One of the existing clients uses a parser that is sensitive to the namespace prefixes used and I'm not able to influence this. The migration has changed some of the prefixes and I need to be able…

Andy McKibbin
- 784
- 1
- 6
- 21
2
votes
1 answer
Error parsing xmldsig-core/xmldsig-core-schema.xsd
I am generating the client code from a wsdl file. Without any change on code, it stopped working and now I'm getting the following error message:
[ERROR] Failed to execute goal
org.apache.cxf:cxf-codegen-plugin:2.1.2:wsdl2java (generate-sources)
…

Andres
- 10,561
- 4
- 45
- 63
2
votes
0 answers
Force cxf to generate DataHandler instead of byte[] for MTOM attachment
I have to implement SOAP-Calls using MTOM-Attachments. The WSDL is provided by an external Partner so I can't / don't want to modify it.
I used to generate the Client using axis2 and adb but I would much rather use CXF and JAXB because the generated…

fr1zle
- 327
- 1
- 3
- 8
2
votes
0 answers
CXF-CodeGen-Plugin - Disable documentation generation
I currently am cxf-codegen-plugin to convert a WSDL to Java code (wdsl2java).
I cannot change the WSDL definition, since it is provided by an external source, but this file contains documentation that causes the Javadoc generation to fail with the…

Samuel
- 21
- 5