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
0
votes
1 answer

Resolve collision in class names when converting from WSDL to Java

I am converting WSDL to Java with CXF. When -autoNameResolution key is enabled CXF generates many files with the same content. Is there any way to avoid it? To avoid nested static classes I've enabled .…
Obogrew
  • 1
  • 1
0
votes
0 answers

cannot generate sources after switching os

i recently switched from Ubuntu to Windows 10 and i can't generate sources any more. the relevant section of my pom.xml is as follows org.apache.cxf cxf-codegen-plugin
MitchBroadhead
  • 811
  • 14
  • 23
0
votes
1 answer

UnmarshalException : camel soap unmarshaling error unexpected element

[com.sun.istack.SAXParseException2; lineNumber: 1; columnNumber: 1; unexpected element (uri:"http://service.example.com/", local:"custDetails"). Expected elements are…
0
votes
1 answer

cxf-codegen adding superfluous underscore in enum member name

I have the following generated enumeration type. The issue I have is that for some reason (presumably capitalisation) that an underscore is inserted in the NCBonus value. I would like to know how I can prevent that from happening when generating…
sweetfa
  • 5,457
  • 2
  • 48
  • 62
0
votes
1 answer

How to rename an element in a wsdl using CXF WSDL2Java?

I am trying to parse a 3rd party WSDL file (Which i can't change) to Java using CXFs WSDL2Java but I am running into an exception (Shown below). This exact same exception is repeated 7 times. They are completely identical. I am guessing the problem…
Martin Nielsen
  • 1,865
  • 6
  • 30
  • 54
0
votes
1 answer

CXF JAXB basics Equals/Hashcode

I have a problem generating equals and hashcode methods for my imported xsd files which are output to a separate location to my wsdl files. I currently have a .wsdl and .xsd file in the same folder. The .wsdl file imports these xsd files which have…
Byron
  • 1,313
  • 10
  • 22
0
votes
1 answer

Make cxf-codegen-plugin generated class persistence capable

I have a Maven jar project that creates a SOAP client using cxf-codegen-plugin. In an another Maven project using that client it is simply needed to persist instance of a data class (some soap response) - generated by cxf-codegen-plugin - with JPA…
pirho
  • 11,565
  • 12
  • 43
  • 70
0
votes
1 answer

NoClassDefFoundError when using cxf-codegen-plugin with maven

I'm trying to convert wsdl into java using maven and cxf-codegen-plugin but i always get the same error: [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.1.6:wsdl2java (aspsms) on project webapp:…
jobe
  • 325
  • 2
  • 14
  • 25
0
votes
1 answer

using wsdl2java in ant target using CXF 3.0.9 jar

I am trying to build a project with cxf 3.0.9 jar. The current project is using cxf 2.7.11 and I need to upgrade it to cxf.3.0.9.But in cxf 3.0.9 there is no wsdl2java class available. In current build file I have a target with java…
prasenslg
  • 41
  • 3
0
votes
0 answers

Regenerate original xsd:annotations with cxf-codegen-plugin

I have an XSD with some complex types. All the types are annotated with xsd:annotation and documentation. I am using contract first approach. The WSDL is designed by someone else so I can't change it. My problem is that CXF generated WSDL does not…
Alfredo A.
  • 1,697
  • 3
  • 30
  • 43
0
votes
1 answer

JAXB: is typesafeEnumMemberName="generateName" customizable?

I was having some issues to import a WSDL that have a XSD with numeric enums. Adding typesafeEnumMemberName="generateName" to my global bindings solved it, but the generated enum items are meaningless... Example:
FkJ
  • 1,609
  • 1
  • 19
  • 29
0
votes
1 answer

cxf-codegen will not work in Maven, results in 'Nothing to Generate'

I am using cxf-codegen as a Maven plugin and it won't generate my code from the wsld. Maven tells me build success but give me the message 'Nothing to generate' I included my complete pom file. Am I missing a…
Tskrad
  • 1
  • 1
0
votes
0 answers

wsdl2java goal in cxf-codegen-plugin does not notice changes in xsd

How can I make the cxf-codegen-plugin and wsdl2java goal check that the xsd files used by the wsdls have been modified? When I make a change in the xsd and then run mvn verify it doesn't recompile the jar file. Snippet of the plugin…
Captain Man
  • 6,997
  • 6
  • 48
  • 74
0
votes
2 answers

Getting a list of JAXBElement where I want a list of predefined java objects

I use Apache Camel + JAXB for Soap processing. The java glasses are generated by a maven plugin called cxf-codegen-plugin. The Problem I am facing is that when I want to use a property which is a list. In that case I will always get a list of…
KIC
  • 5,887
  • 7
  • 58
  • 98
0
votes
1 answer

Apache CXF client namespace is in element instead of envelope

The problem I'm having is with Apache CXF putting the namespace inside the element instead of soap envelope. I used codegen maven plugin to generate the client code from WSDL. Here are the namespaces in the WSDL: …
Milan
  • 1,780
  • 1
  • 16
  • 29