Two notes:

1) The wsdl works fine with the latest versions of CXF to generate compilable 
code.  

2) HOWEVER, the wsdl is kind of a  RPC/Encoded WSDL which is not really 
supported by CXF (or any modern soap stack).    I would try removing the 
encoded stuff and seeing if  you can that to work.

Dan



On Tuesday, October 11, 2011 12:18:54 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.
> 
> 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
>  *
>  */
> 
> @WebFault(name = "dummy", targetNamespace = "http://MyFault";)
> public class FaultFaultMsg extends Exception {
>     public static final long serialVersionUID = 20111011083020L;
> 
>     private java.lang.String dummy;
> 
>     public FaultFaultMsg() {
>         super();
>     }
> 
>     public FaultFaultMsg(String message) {
>         super(message);
>     }
> 
>     public FaultFaultMsg(String message, Throwable cause) {
>         super(message, cause);
>     }
> 
>     public FaultFaultMsg(String message, java.lang.String dummy) {
>         super(message);
>         this.dummy = dummy;
>     }
> 
>     public FaultFaultMsg(String message, java.lang.String dummy, Throwable
> cause) {
>         super(message, cause);
>         this.dummy = dummy;
>     }
> 
>     public java.lang.String getFaultInfo() {
>         return this.dummy;
>     }
> }/
> 
> 
> The Super-Class (Exception) takes a java.lang.String as the first parameter.
> The Message-Parameter of FaultFaultMsg is of the type "MyPackage.String".
> 
> Can someone give me a hint what is wrong with the WSDL?
> http://cxf.547215.n5.nabble.com/file/n4890939/MySvc.wsdl MySvc.wsdl
> (simplified WSDL)
> 
> Thanks,
> Aaron
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/WSDL2Java-generated-Code-won-t-compike-tp48
> 90939p4890939.html Sent from the cxf-user mailing list archive at
> Nabble.com.
-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to