I am trying to induce java2wsdl to produce a struct complex type for me,
from the code included herein. It will produce a complex type but then
produces the runtime error.
java.lang.IllegalArgumentException: No mapping found
The WSDL snippet produced for the included code is:
.
.
.
.
<schema targetNamespace="http://my.test.com">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="SystemComponentInfo">
<sequence>
<element name="classname" nillable="true" type="xsd:string"/>
<element name="displayname" nillable="true" type="xsd:string"/>
<element name="params" nillable="true"
type="impl:ArrayOfArrayOf_xsd_string"/>
<element name="version" nillable="true"
type="impl:ArrayOf_xsd_string"/>
</sequence>
</complexType>
</schema>
.
.
.
Any help is greatly appreciated. I'm using Axis 1.2alpha.
My class is:
import java.io.Serializable;
public class SystemComponentInfo implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
*
*/
private String[] version = {"-1234","-5678","-9012","-3456"};
private String classname = "not set";
private String displayname = "not set";
private String[][] params = {{"not set"}};
public String[] getversion() {
return version;
}
public String toString() {
return version[0]+"."+version[1]+"."+version[2]+"_"+version[3];
}
public void setversion(String[] version) {
this.version = version;
}
public String getclassname() {
return classname;
}
public void setclassname(String classname) {
this.classname = classname;
}
public String getdisplayname() {
return displayname;
}
public void setdisplayname(String displayname) {
this.displayname = displayname;
}
public String[][] getparams() {
return params;
}
public void setparams(String[][] params) {
this.params = params;
}
}