Hi,
I'm using XFire 1.2.4 for "wsdl to java" code generation.
I'm using a wsdl that contains the following element:
--------------------------------------------------------
<xsd:element name="req">
<xsd:simpleType>
<xsd:list itemType="xsd:int"/>
</xsd:simpleType>
</xsd:element>
--------------------------------------------------------
This element is mapped in an array of Integer:
--------------------------------------------------------
@WebMethod(operationName = "echo", action = "fooAction")
@WebResult(name = "res", targetNamespace = "simpleList")
public Integer[] echo(
@WebParam(name = "req", targetNamespace = "simpleList")
Integer[] req);
--------------------------------------------------------
But, for my project, I must use only primitive java data types:
--------------------------------------------------------
@WebMethod(operationName = "echo", action = "fooAction")
@WebResult(name = "res", targetNamespace = "simpleList")
public int[] echo(
@WebParam(name = "req", targetNamespace = "simpleList")
int[] req);
--------------------------------------------------------
So I have the following questions for the list:
1) There is a way to configure XFire to generate only primitive data
types when I use a "simpleType" with a "list" ?
2) If this way exists, there is any documentation or examples to study ?
Thanks
mirco
PS: to generate the java code I use the snippet present in the JavaDoc
of XFire:
--------------------------------------------------------
Wsdl11Generator gen = new Wsdl11Generator();
gen.setWsdl(wsdlFileName);
gen.setOutputDirectory(sourceDirName);
gen.generate();
--------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email