Questions tagged [cxf-codegen-plugin]

A Maven plugin which can generate Java artifacts from a Web Services Description Language (WSDL) file, using Apache CXF.

114 questions
16
votes
3 answers

Specifying Package Name When Using Maven to Generate Java from WSDL

I am using a maven script to generate the Java code I need to communicate with a WCF service. I have gotten communication working and am ready to integrate my maven script, and the code it generates, with the rest of the java code from the…
crdzoba
  • 651
  • 1
  • 7
  • 20
14
votes
2 answers

CXF codegen maven plugin doesn't work OpenJDK 11

I have been working with JDK 9 & 10 and CXF codegen plugin 3.2.5 and 3.2.6 with no problems but, today I'm trying to update my codebase from Oracle JDK 10 to OpenJDK 11 build 28, but I'm always getting the same error: [INFO] Error occurred during…
Nico
  • 858
  • 2
  • 11
  • 27
8
votes
3 answers

How make cxf-codegen-plugin generate Webservices from jakarta.xml.ws?

Migrating from Java 8 to Java 11. Updated cxf-codegen-plugin from version 3.2.0 to 3.3.6. Plugin still generates Java stubs from wsdl files using packages from javax.jws.* instead of from jakarta.jws.*: import javax.jws.WebMethod; import…
S. Kom
  • 103
  • 1
  • 8
8
votes
1 answer

apache cxf-codegen-plugin wsdl2java relative wsdlLocation

I'm able to use generate classes with a relative wsdlLocation when I specify each file, such as ${basedir}/src/main/resources/sample.wsdl
mav
  • 129
  • 1
  • 9
8
votes
2 answers

cxf-codegen-plugin port to Gradle

I'm trying to replicate what this plug-in does in Gradle. If I execute: ./wsdl2java -encoding UTF-8 -d /src/target/generated-sources/cxf -fe jaxws21 -sn UserSoapServicePorts -faultSerialVersionUID 1 -xjc-Xannotate -p http:... -p urn:... -p urn:...…
user447607
  • 5,149
  • 13
  • 33
  • 55
8
votes
2 answers

I would like to add @XmlRoot annotation on CXF codegen

I have a WSDL file which contains the following entry:
8
votes
1 answer

How to generate sources for multiple services using Apache CXF codegen plugin for Maven under one execution

I'm currently using the Apache CXF codegen plugin (version 3.1.1) for Maven to generate sources from our client-provided WSDL. I have the wsdl2java goal specified, and I want to generate code for multiple services. I know you can specify a…
Evan LaHurd
  • 977
  • 2
  • 14
  • 27
7
votes
4 answers

Getting cxf-codegen-plugin working on Java 9

I've been trying to get cxf-codegen-plugin working on Java 9 with some resistance. So far I've added java.se.ee to the runtime modules and added the necessary dependencies to maven. However, when I try to build my sources I get the following…
6
votes
2 answers

maven wsdl2java configuration not working properly

I am looking to execute wsdl2java via maven and have tried several different methods with no full success. The first way I was doing it: org.codehaus.mojo exec-maven-plugin
eisbaer
  • 328
  • 1
  • 3
  • 10
5
votes
1 answer

wsdl2java - how to ignore specific schema in cxf-codegen-plugin and add dependency

See below, I have 3 projects as mentioned. Common Age.xsd (namespace: http://xmlns.common/age) generated/common/xmlns/age/AgeType.java pom.xml (cxf-xjc-plugin xsdtojava) Person PersonService.wsdl (imports Age.xsd in wsd:types) …
Sridhar
  • 1,832
  • 3
  • 23
  • 44
5
votes
2 answers

Maven cxf Plugin error

Why am I seeing this error in my pom.xml file when I'm adding the apache cxf plugin? Plugin execution not covered by lifecycle configuration: org.apache.cxf:cxf-codegen-plugin:2.5.4:wsdl2java (execution: generate-sources, phase: generate-sources)
iuser
  • 209
  • 1
  • 6
  • 18
4
votes
2 answers

cxf-codegen-plugin 4.0.0 ignores bindingFile

I create code from a wsdl based on the cxf-codegen-plugin. I use additional bindings to change the package use Date instead of XmlGregorianCalender this works fine with version 3.5.5 When I switch to 4.0.0 this does not work anymore (default…
Marius
  • 365
  • 4
  • 18
4
votes
2 answers

Generated sources from WSDL using WSDL2Java generates classes with deprecated API javax xml ws on java 11

On my project I am using java 11. based on a WSDL file, i generate code classes using cxf-codegen-plugin maven plugin. the classes generated, use javax.xml.ws.* and other APIs on java 11. example : one of the generated Classes extends Service …
marcAntoine
  • 668
  • 5
  • 19
  • 35
4
votes
3 answers

How to make CXF generated code to unmarshal into JAX-B and ignore unmapped fields?

I call a web-service which can periodically add some element in their contract. Example: the SOAP response body contains: true 172
рüффп
  • 5,172
  • 34
  • 67
  • 113
3
votes
0 answers

apache cxf is still using the old dependency in the generated code

I'm using java 11 and apache cxf 3.3.5, which supposes to support the java 11. But some generated classes are still importing javax.xml.ws instead of , which has been removed from java 11. My plugin:
LunaticJape
  • 1,446
  • 4
  • 21
  • 39
1
2 3 4 5 6 7 8