On 10/11/2011 03:18 AM, Aaron wrote:
Hi folks,

I want to generate the client Java-Classes for a WSDL file.

I am using cxf-codegen-plugin (2.2.12, wsdl2java) for that.
Now I have the problem, that the code generated won't compile. WSDL2Java
generates classes which imho should not be created like the following:

* Int
* Integer
* GDay
* Float
* Long
* Short
* Struct
* String

... to name a few. There are much more.


Please send your above comments to JSR #224 (http://jcp.org/en/jsr/detail?id=224), as CXF just
follows the JAX-WS standard here.

Switching to non-wrapper style (http://cxf.apache.org/docs/wsdl-to-java.html#WSDLtoJava-wrapperstyle)
might fix this issue as well.


The class which won't compile is the following:

/package MyPackage;

import javax.xml.ws.WebFault;


/**
  * This class was generated by Apache CXF 2.2.12
  * Tue Oct 11 08:30:20 CEST 2011
  * Generated source version: 2.2.12
  *
  */


I would try with a later, supported version of CXF (2.3 or later) -- IIRC there were some bugs in how faults would be mapped that
could result in naming conflicts, that were fixed in more recent versions.

HTH,
Glen

--
Glen Mazza
Talend - http://www.talend.com/apache
Blog - http://www.jroller.com/gmazza
Twitter - glenmazza

Reply via email to