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
2
votes
0 answers

maven cxf-codegen-plugin för wsdl2java, how to handle nested xsd:import

I have an main wsdl file that xsd:import a lot of xdd from online, for example
user2412555
  • 1,055
  • 1
  • 16
  • 32
2
votes
0 answers

cxf-codegen-plugin not generating all the fields

I'm trying to integrate a SOAP service in my Spring MVC application. I have a WSDL & XSD files. To generate the java classes I'm using the Apache CXF Maven plugin (cxf-codegen-plugin). Maven Config:
Koushik Ravulapelli
  • 1,140
  • 11
  • 30
2
votes
0 answers

Option wsdlArtifact in cxf-codegen-plugin on different modules

there is a strange behavior with the cxf-codegen-plugin on maven. Some informations: One parent pom (called PARENT) with 3 children: SERVICE, CLIENT1, CLIENT2. The service generate two wsdl described by two classifiers starting from two classes. The…
Bolo
  • 31
  • 1
  • 4
2
votes
1 answer

WS Client generation using maven and reusing classes

My application is divided into two layers, where the backend layer exposes a bunch of web services, and the presentation layers consumes those to obtain business data. In order to make my construction as automatic as possible, I package all my…
M Rajoy
  • 4,028
  • 14
  • 54
  • 111
2
votes
1 answer

No signature token Java CXF Client

I'm trying to buil a Java client with Apache-CXF-2.7.11 that communicates with .NET WCF services. My Java client code is following, the client were autogenerating whith the IDE, only the credentials i've copied from the CXF docs. public static…
2
votes
1 answer

JAXB2 Basic Annotate plugin not working with maven cxf-codegen-plugin

I'm using the cxf-codegen-plugin to generate Java classes from wsdl files. I want to add annotations to once of the classes and I specify a Binding File and use the jaxb2-basics-annotate plugin to do so. The generated files don't contain the the…
Vidhuran
  • 212
  • 4
  • 16
2
votes
1 answer

How do I link to XSD files using the Apache CXF Maven plugin?

I'm using the Apache cxf-codegen-plugin Maven plugin to try and generate Java classes from a WSDL file. I get the following error: Part in Message <{http://www.foo.com/bar}PushCommandSoapIn> referenced Type…
Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
1
vote
0 answers

method has @XmlElementMapping on it, but it doesn't return a sub-type of JAXBElement

I am trying to deploy my web service on JBOSS EAP 7.2. But at the deployment stage I get an error. Doesn't my ObjectFactory class return a JAXBElement in the createCertificateTypeSerialNumber method? Caused by: javax.xml.ws.WebServiceException:…
1
vote
0 answers

Apache CXF Generated JAXB class has @XMLElement with Blank/Empty "" Namespace for External Schema/XSD

I am using Apache CXF maven cxf-codegen-plugin (wsdl2java) to generate JAXB classes from wsdl which includes external XSD and uses the complex type in XSD to define element. pom.xml Snippet -
1
vote
0 answers

Failed to execute goal org.apache.cxf on java-9

Why I am facing the org.pache.cxf issue's even if I am using the same version which apache cxf document mentioned that apache cxf with java 9 supports 3.3.X versions but I am getting errors. Any help would be great to resolve the issue. Below is my…
1
vote
0 answers

XStream not loading legacy QName XML

I have legacy XML files that are saved using some ancient XStream. Now I'm using the latest XStream, and trying to load the data. It successfully loads the date and the int, but the String is blank. param = (Param)…
djb
  • 1,635
  • 3
  • 26
  • 49
1
vote
0 answers

Class [ com.sun.xml.ws.assembler.jaxws.HandlerTubeFactory ] does not implement [ com.sun.xml.internal.ws.assembler.dev.TubeFactory ] interface

I have tried to generate the java code from wsdl2java by using cxf-codegen-plugin . Code was generated and can see the response in my eclipse test class(tried to call few methods and getting result properly). But when I created jar of this code and…
manish
  • 23
  • 4
1
vote
0 answers

Apache cxf not generating sources in second plugin

I have a problem to generate sources 2 times from same wsdl but with different argument. In effect, second cxf-codegen-plugin is completely ignored only because its the same url with the first cxf-codegen-plugin. I tried to regroup them in one…
Alexis
  • 11
  • 2
1
vote
2 answers

cxf-codegen-plugin could not find artifact com.sun:tools:jar:1.8.0 from C:\Program Files\Java\jre1.8.0_251/../lib/tools.jar

I am using a springboot application and generating stub using cxf codegen plugin. I have JDK_HOME configured to run my springboot project. After upgrading the cxf-version from 3.2.4 to 3.3.6, I see the below error in my pom.xml. Execution…
srikant_mantha
  • 109
  • 1
  • 13
1
vote
2 answers

Add autoNameResolution in Apache CXF plugin in pom.xml

How to add autoNameResolution in Apache CXF plugin in pom.xml? I have tried to add in defaultOptions tag as well as wsdlOption tag but no luck.
shobhit
  • 57
  • 6