These are not good samples. You don't want to extend soapenc:Array
unless you are using SOAP encoding, and if you are using SOAP
encoding, then you don't want to specify maxOccurs="unbounded", and
you should specify the wsdl:arrayType attribute. An example of a
proper definition of an array that extends soapenc:Array is:
<complexType name="ArrayOfFloat">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType"
wsdl:arrayType="xsd:float[]"/>
</restriction>
</complexContent>
</complexType>
If you are not using SOAP encoding, then an example of a proper
definition of an array is:
<complexType name="aliasArray">
<sequence>
<element name="Alias" type="string" maxOccurs="unbounded"/>
</sequence>
</complexType>
Anne
On 8/21/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
<!-- excerpts from
/axis-1_4/test/wsdl/arrays/ArrayTest.wsdl -->
<!-- An example of an array of Strings -->
<xsd:complexType name="petArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:sequence>
<xsd:element name="alias" type="xsd:string"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<!---- An example of an Array of ints ---------->\
<xsd:complexType name="intArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:sequence>
<xsd:element name="alias" type="xsd:int"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
HTH,
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: HHDirecto.Net
To: [email protected]
Sent: Monday, August 21, 2006 7:11 AM
Subject: Axis array serialization problem
I have a problem returning a array in axis.
I read about it in
http://marc2.theaimsgroup.com/?l=axis-dev&m=114909771503014&w=2
And I read about this solution
http://marc.theaimsgroup.com/?l=axis-user&m=109631383200039&w=2
http://www.mail-archive.com/[email protected]/msg26566.html
But this patch don't run in axis 1-4.
Anyone knows about it?
Thanks in advance
http://www.hhdirecto.net
http://www.dechiste.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]