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
1
vote
1 answer
CXF-SOAP gradle-plugin that works in java-11?
We have a CXF-SOAP service built with gradle,
and trying to migrate it from java-8 to java-11.
Is there any cxf-plugin for gradle available, that works under java-11?
Or any demo/example of a cxf/soap-application that works under java-11 would also…

Rop
- 3,359
- 3
- 38
- 59
1
vote
1 answer
IllegalAnnotationExceptions: Two classes have the same XML type name. Code generated by CXF plugin
I have two WSDLs from which I generate Java code using maven cxf-codegen-plugin (org.apache.cxf). Both of them use the same namespace and contains complex types of the same name which was reason why I experienced issues with conflicting java class…

Vojtech
- 2,533
- 9
- 34
- 65
1
vote
0 answers
Maven cxf-codegen-plugin with NTLM Authentication - fails with java.io.IOException: Server returned HTTP response code: 401 for URL
I'm trying to generate java code using cxf-codegen-plugin for a SOAP webservice that is secured over NTLM. I'm not sure how do pass on the username/pwd/domain information to maven to connect to the remote server while generating the java code. I…

Manikdn84
- 357
- 4
- 21
1
vote
0 answers
WSDL2JAVA - cxf-codegen-plugin - produces no class with @XmlRootElement
I'm facing an issue and after few days searching for an answer I decided it's better to ask for online help.
So I have WSDL from a client I can't modify. I put here an equivalent version :

karno boun
- 11
- 2
1
vote
0 answers
How to generate case sensitive fields in java from wsdl using cxf-codegen-plugin?
I'm using cxf-codegen-plugin and try to generate java from wsdl.
In my xsd schema I have following element
…

dabdullin
- 46
- 1
- 8
1
vote
0 answers
How to use cxf-codegen-plugin and Apache Camel
i want to create a camel route to a Soap Endpoint. I use Eclipse.
First step is to insert this code to pom.xml:
org.apache.cxf
cxf-codegen-plugin
${cxf.version}
…

Burner
- 981
- 19
- 41
1
vote
1 answer
WSDL field name differs when sending request
I'm sending requests to SOAP WS from Java project.
By wsdl I have generated required sources using:
org.apache.cxf
cxf-codegen-plugin
3.1.6
WSDL that I use has following…

Alexander Yakovlev
- 305
- 1
- 2
- 5
1
vote
0 answers
CXF Client error with xs:dateTime converting to XMLGregorianCalendar
We recently upgraded an old Java 7 application to Spring Boot and the latest versions of Spring boot (along with moving it to Java 8). After re-consuming web services that utilize xs:dateTime in the contract parameters, it now generates an error on…

LetsBeFrank
- 774
- 11
- 31
1
vote
1 answer
CXF : org.apache.cxf.interceptor.Fault: wrong number of arguments while invoking
I'm implementing a simple client using apache cxf and the codegen maven plugin (both release 3.1.11).
Here is my sample wsdl:

Raffaele
- 461
- 1
- 7
- 20
1
vote
0 answers
cxf codegen-plugin generating List of JAXBElement even if generateElementProperty=false
i'm using cxf-codegen-plugin wsdl2java with the following binding file:

Raffaele
- 461
- 1
- 7
- 20
1
vote
1 answer
cxf-codegen-plugin generates bad code if mixing global build and profile build
Java SOAP web app. I have several services to query and I must differentiate one of them based on environment (test, prod). I thought to be logic to keep common WSDL together and create two profiles for the service that need differentiation.…

vault
- 3,930
- 1
- 35
- 46
1
vote
1 answer
Configuring the maven plugin cxf-codegen-plugin to ignore security concerns
I am currently trying to set up a maven project that generates some Java code based on some WSDL files.
Unfortunately I am having some problems because my test environment doesn't have a valid SSL certificate (I have confirmed this by using chrome).…

Thomas Noerbo Jensen
- 31
- 1
- 5
1
vote
1 answer
cxf-codegen-plugin failed while parsing wsdl (JSXB: undefined attribute 'xml:lang')
I try to generate java code from wsdl for Exchange Web Service.
I use apache cxf-codegen-plugin configured as:

user2621486
- 99
- 1
- 6
1
vote
1 answer
JAXWS: How to change CXF-generated classes names defined in external XSD?
I'm trying to change name of a class generated from wsdl (I don't want to modify any wsdl or xsd file directly). The problem is that its definition is in a separate xsd file.
The structrure of wsdl looks like this:
main.wsdl:

Arsen
- 664
- 1
- 11
- 29
1
vote
0 answers
cxf client from WSDL with empty targetNamespace
I am using cxf client to consume a web-service that has a targetNamespace="" in the WSDL's XSD definition.
The CXF client seems to append a namespace of ns2 to the each request as shown below.

Vladimir
- 1,120
- 2
- 11
- 18