You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "HHDirecto.Net" <hh...@gmail.com> on 2006/08/21 13:11:24 UTC

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/axis-user@xml.apache.org/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

Re: Axis array serialization problem

Posted by Adnene <ab...@infovista.com>.
I don't get a solution yet. But I am trying to anderstand the problem.
Why don't you think it is the same problem? Do you know people having the
same problem? I am new with Axis. Do you think it is a bug or a missuse of
Axis?

Thanks,
Adnene


HHDirecto.Net wrote:
> 
> I think it isnot the same problem, but You found the solution?
> 
> ----- Original Message ----- 
> From: "Adnene" <ab...@infovista.com>
> To: <ax...@ws.apache.org>
> Sent: Wednesday, August 23, 2006 2:20 PM
> Subject: Re: Axis array serialization problem
> 
> 
>>
>> This seems to be like the problem I got with the deserialization of
>> ArrayOf_xsd_string type.
>> See the message I posted in :
>> http://www.nabble.com/deserialization-problem-in-axis-1.4-for-an-array-of-string-tf2146972.html
>> http://www.nabble.com/deserialization-problem-in-axis-1.4-for-an-array-of-string-tf2146972.html
>>
>>
>> HHDirecto.Net wrote:
>>>
>>> Axis web service response is ok (I think) but, .net client don't get
>>> "plantas" array it get null (Now It get int array successfull).
>>>
>>>
>>>
>>
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Axis-array-serialization-problem-tf2139637.html#a5943306
>> Sent from the Axis - User forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis-array-serialization-problem-tf2139637.html#a5958931
Sent from the Axis - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis array serialization problem

Posted by "HHDirecto.Net" <hh...@gmail.com>.
I think it isnot the same problem, but You found the solution?

----- Original Message ----- 
From: "Adnene" <ab...@infovista.com>
To: <ax...@ws.apache.org>
Sent: Wednesday, August 23, 2006 2:20 PM
Subject: Re: Axis array serialization problem


>
> This seems to be like the problem I got with the deserialization of
> ArrayOf_xsd_string type.
> See the message I posted in :
> http://www.nabble.com/deserialization-problem-in-axis-1.4-for-an-array-of-string-tf2146972.html
> http://www.nabble.com/deserialization-problem-in-axis-1.4-for-an-array-of-string-tf2146972.html
>
>
> HHDirecto.Net wrote:
>>
>> Axis web service response is ok (I think) but, .net client don't get
>> "plantas" array it get null (Now It get int array successfull).
>>
>>
>>
>
> -- 
> View this message in context: 
> http://www.nabble.com/Axis-array-serialization-problem-tf2139637.html#a5943306
> Sent from the Axis - User forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis array serialization problem

Posted by Adnene <ab...@infovista.com>.
This seems to be like the problem I got with the deserialization of
ArrayOf_xsd_string type.
See the message I posted in :
http://www.nabble.com/deserialization-problem-in-axis-1.4-for-an-array-of-string-tf2146972.html
http://www.nabble.com/deserialization-problem-in-axis-1.4-for-an-array-of-string-tf2146972.html 


HHDirecto.Net wrote:
> 
> Axis web service response is ok (I think) but, .net client don't get
> "plantas" array it get null (Now It get int array successfull).
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis-array-serialization-problem-tf2139637.html#a5943306
Sent from the Axis - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis array serialization problem

Posted by Anne Thomas Manes <at...@gmail.com>.
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 <mg...@hotmail.com> 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: axis-user@ws.apache.org
> 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/axis-user@xml.apache.org/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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis array serialization problem

Posted by Martin Gainty <mg...@hotmail.com>.
<!-- 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: axis-user@ws.apache.org 
  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/axis-user@xml.apache.org/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