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
1
vote
0 answers

CXF service proxies cause NullPointerException when passed null array

Via using CXF 2.7.11 via Maven with the cxf-java2ws-plugin and cxf-codegen-plugin, a WSDL gets generated from a web service class and from that WSDL proxy classes are generated which then get used in various clients to connect to the actual, live…
roadSurfer
  • 557
  • 1
  • 5
  • 17
1
vote
2 answers

Using maven cxf plugin cxf-codegen-plugin java artifacts from WSDL

Using maven cxf plugin cxf-codegen-plugin java artifacts from WSDL. But the javacodes are not populating in the eclipse IDE. Do I need to specify the any other tags to get the java source code in the eclipse project. Below is my pom.xml
user630209
  • 1,123
  • 4
  • 42
  • 93
1
vote
1 answer

Where I put auto-generated classes?

I use cxf maven plugin to generate classes for web services. I wonder which directory I specify for . Is it a good practice to put the generated classes in ${basedir}\target\classes ?
Mouna
  • 3,221
  • 3
  • 27
  • 38
1
vote
1 answer

Packaging WSDL clients in JARs with Maven and cxf-codegen-plugin

I've got a maven project that will consume a number of webservices. The application will be packaged as a WAR. So far the clients' code has been generated with cxf-codegen-plugin, in the generate-sources phase. By default, generated sources are…
Xavi López
  • 27,550
  • 11
  • 97
  • 161
1
vote
1 answer

Could cxf maven plugin generate classes for a directory of wsdl files?

I use cxf-codgen-plugin in maven to generate classes for web services. Here is a part of my pom.xml org.apache.cxf cxf-codegen-plugin 2.7.1
Mouna
  • 3,221
  • 3
  • 27
  • 38
1
vote
2 answers

cxf-codegen-plugin generate Prohibited package name: java.util.xsd

using wsdl2java and cxf-codegen-plugin in eclipse i generated the client code for the WSDL file. but i cant run the client due to SecurityException: Prohibited package name: java.util.xsd. any way to solve this? the Exception was like…
1
vote
0 answers

How to generate classes from wsdl and xsd using maven cxc code gen without a connection to the server

I would like to generate java classes using the Apache CXG Maven plugin (WSLD2Java) for generating web service clients. I have a configuration that works, but when I am offline OR the server is not available the generate sources fails. The error…
Ian McShane
  • 340
  • 3
  • 10
1
vote
3 answers

Turn off or configure java.util.Logging during Maven build

I want to clean up/unify the log output of a Maven build. Unfortunately, a dependency of a maven plugin uses java.util.Logging (JUL). Simply adding org.slf4j:jul-to-slf4j as an additional dependency to redirect the log output doesn't help.…
Markus Ratzer
  • 1,292
  • 3
  • 19
  • 29
0
votes
1 answer

Lexis Nexis gives Invalid Credentials error on v12

I use the Lexis-Nexis SOAP service. Currently it works on Java 8 and Lexis-Nexis v11. But then I upgraded the Java to version 17, and generated the Lexis-Nexis SOAP service client under version 12. On Java 17 it does not use the javax name space,…
ucas
  • 417
  • 1
  • 11
  • 30
0
votes
0 answers

org.apache.cxf.wsdl11.WSDLServiceBuilder checkForWrapped

I just changed from cxf-codegen-plugin 3.5.3 to 4.0.0. Now I get this warning: [WARNING] mars 09, 2023 10:17:25 FM org.apache.cxf.wsdl11.WSDLServiceBuilder checkForWrapped [WARNING] INFO: Operation {http://soa.jboss.org/print}sendEmail-2.0Op cannot…
user1766169
  • 1,932
  • 3
  • 22
  • 44
0
votes
0 answers

Use wildcard and extraargs

I generate code and implementation from several wsdl-files. Is there a way to add extraargs -impl when using wildcard as below? org.apache.cxf
user1766169
  • 1,932
  • 3
  • 22
  • 44
0
votes
0 answers

How to upgrade CXF codegen plugin from java8 to java11

i need to upgrade this (working) webapp using cxf-codegen-plugin v2.7.11 & Java 8 to java 11. codegen is using the wsdl2java goal. Now i found that i must upgrade to cxf v 3.3.x+ but then i get into this version hell because what jabx & jaxws…
user3419148
  • 111
  • 1
  • 8
0
votes
0 answers

How to parse cxf generated jaxb anotated enum as value coming as json?

What I was thinking maybe I could add @JsonValue annotation to getter of enum value, but not sure how. Any other ideas are appreciated though.
KijeviGombooc
  • 304
  • 2
  • 13
0
votes
1 answer

cxf-codegen-plugin in Gradle classpath in jax-ws-catalog.xml

Firstly idea was to generate java classes without internet connection, so I decided use jax-ws-catalog.xml file to rewrite uri on resource/local directory. I defined location of xsd files by using jax-ws-catalog.xml with classpath. But every…
NewSheriff
  • 105
  • 4
0
votes
1 answer

CXF-generated SOAP client: no ObjectFactory with an @XmlElementDecl

I generated SOAP client stub with CXF 3.4.2 codegen Maven plugin. However, when trying to create the service stub created, I get a bunch of errors like that: There's no ObjectFactory with an @XmlElementDecl for the element…
Serge Iroshnikov
  • 749
  • 1
  • 6
  • 17