Axis and complex types
Hi
I'm trying to develop a webservice using apache axis. I started by writting the java interface and then used the Java2WSDL tool to generate the WSDL file.
However my service uses a complex type (basically an array of simple objects) which is not correctly represented in the generated WSDL. This is the generated wsdl snippet:
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://somenamespace">
<import namespace="http://somenamespace"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="MySimpleObject">
<sequence/>
</complexType>
</schema>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://somenamespace">
<import namespace="http://somenamespace"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOf_tns2_MySimpleObject">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns2:MySimpleObject[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
</wsdl:types>
Shouldn't the first ComplexType tag contain the definition of my object? Am I supposed to edit the file manually and add the information? Shouldn't Axis generate the correct definition?
Thanks in advance!
Pedro

