You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Aaron <aa...@gmail.com> on 2011/10/11 09:09:11 UTC
WSDL2JAVA generated code won't compile
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/n4890919/MySvc.wsdl MySvc.wsdl
(simplified WSDL)
Thanks,
Aaron
--
View this message in context: http://cxf.547215.n5.nabble.com/WSDL2JAVA-generated-code-won-t-compile-tp4890919p4890919.html
Sent from the cxf-user mailing list archive at Nabble.com.