Hi,

I'm using XFire for "wsdl to java" code generation.

When I use a simplType with a restriction on a XML schema data type the code generated use the java primitive data types.
---------------------------------------------------------
           <xsd:element name="simpleIntRequest">
               <xsd:simpleType>
                   <xsd:restriction base="xsd:int"/>
               </xsd:simpleType>
           </xsd:element>
           <xsd:element name="simpleIntResponse">
               <xsd:simpleType>
                   <xsd:restriction base="xsd:int"/>
               </xsd:simpleType>
           </xsd:element>

   @WebMethod(operationName = "echoSimpleInt", action = "fooAction")
@WebResult(name = "simpleIntResponse", targetNamespace = "urn:it.imolinfo.Jbi4Corba.test.webservice.generator")
   public int echoSimpleInt(
@WebParam(name = "simpleIntRequest", targetNamespace = "urn:it.imolinfo.Jbi4Corba.test.webservice.generator")
       int simpleIntRequest);
---------------------------------------------------------


But when I use a simpleType with a "list" of a XML schema data type the code generated use an array of "wrapper" java class.


---------------------------------------------------------
<xsd:element name="simpleListIntRequest">
   <xsd:simpleType>
       <xsd:list itemType="xsd:int"/>
   </xsd:simpleType>
</xsd:element>
<xsd:element name="simpleListIntResponse">
   <xsd:simpleType>
       <xsd:list itemType="xsd:int"/>
   </xsd:simpleType>
</xsd:element>

   @WebMethod(operationName = "echoSimpleListInt", action = "fooAction")
@WebResult(name = "simpleListIntResponse", targetNamespace = "urn:it.imolinfo.Jbi4Corba.test.webservice.generator")
   public Integer[] echoSimpleListInt(
@WebParam(name = "simpleListIntRequest", targetNamespace = "urn:it.imolinfo.Jbi4Corba.test.webservice.generator")
       Integer[] simpleListIntRequest);
---------------------------------------------------------


There is a way to configure XFire to generate an array of primitive data types ?

thanks

mirco


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to