I am writing a client that access a webservise whose WSDL file is provided in
the attachments.
The binding stubs has been generated using WSDL2Java of AXIS 1.4.
The webservice provides a method 'get_file_list' that returns a list of file
names as string array. This method returns a get_file_listReturn object of
type ArrayOf_xsd_string containing a list of strings.

An example of a responce to the call of 'get_file_list' is as follows:

<?xml version="1.0" encoding="UTF-8"?> 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> 
  <soapenv:Body> 
    <ns1:get_file_listResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns1="http://schemas.cisco.com/ast/soap/";> 
      <get_file_listReturn soapenc:arrayType="ns1:ArrayOf_xsd_string[22]"
xsi:type="soapenc:Array"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";> 
        <item
xsi:type="xsd:string">cdr_StandAloneCluster_01_200608221000_3577</item> 
        <item
xsi:type="xsd:string">cmr_StandAloneCluster_01_200608221000_3577</item> 
        <item
xsi:type="xsd:string">cdr_StandAloneCluster_01_200608221010_3578</item> 
        <item
xsi:type="xsd:string">cmr_StandAloneCluster_01_200608221010_3578</item> 
        <item
xsi:type="xsd:string">cdr_StandAloneCluster_01_200608221015_3579</item> 
        <item
xsi:type="xsd:string">cmr_StandAloneCluster_01_200608221015_3579</item> 
        <item
xsi:type="xsd:string">cdr_StandAloneCluster_01_200608221020_3580</item> 
        <item
xsi:type="xsd:string">cmr_StandAloneCluster_01_200608221020_3580</item> 
        <item
xsi:type="xsd:string">cdr_StandAloneCluster_01_200608221025_3581</item> 
        <item
xsi:type="xsd:string">cmr_StandAloneCluster_01_200608221025_3581</item> 
        <item
xsi:type="xsd:string">cdr_StandAloneCluster_01_200608221030_3582</item> 
        <item
xsi:type="xsd:string">cmr_StandAloneCluster_01_200608221030_3582</item> 
        <item
xsi:type="xsd:string">cdr_StandAloneCluster_01_200608221040_3583</item> 
        <item
xsi:type="xsd:string">cmr_StandAloneCluster_01_200608221040_3583</item> 
        <item
xsi:type="xsd:string">cdr_StandAloneCluster_01_200608221045_3584</item> 
        <item
xsi:type="xsd:string">cmr_StandAloneCluster_01_200608221045_3584</item> 
        <item
xsi:type="xsd:string">cdr_StandAloneCluster_01_200608221050_3585</item> 
        <item
xsi:type="xsd:string">cmr_StandAloneCluster_01_200608221050_3585</item> 
        <item
xsi:type="xsd:string">cdr_StandAloneCluster_01_200608221055_3586</item> 
        <item
xsi:type="xsd:string">cmr_StandAloneCluster_01_200608221055_3586</item> 
        <item
xsi:type="xsd:string">cdr_StandAloneCluster_01_200608221100_3587</item> 
        <item
xsi:type="xsd:string">cmr_StandAloneCluster_01_200608221100_3587</item> 
      </get_file_listReturn> 
    </ns1:get_file_listResponse> 
  </soapenv:Body> 
</soapenv:Envelope> 


The problem here is that AXIS does not seem to deserialize correctly the
result received in the SOAP answer. The AXIS stub returns an array of null
strings instead of the correct answer. Note that even if the returned array
conatins only NULL elements, its size is correct. For example if the
expected answer is an array of 22 file names, the returned string array
contains 22 NULLs.

The problem seems to happen during the call of the
ArrayUtil.convertArrayToObject(arg, destClass) java method.
For example, in the cotext of the example described above, the arg parameter
value of the ArrayUtil.convertArrayToObject java method is :
  [[cdr_StandAloneCluster_01_200608221000_3577],
[cmr_StandAloneCluster_01_200608221000_3577], ..] 
where the returned value is :
   [null, null, ...].
The correct return value if this java method should be :
   [cdr_StandAloneCluster_01_200608221000_3577,
cmr_StandAloneCluster_01_200608221000_3577, ..] 


I hope the description of my problem is clear enough and thank you for
helping me solving this problem. 
Yours, 

Adnene BEN ABDALLAH


Anne Thomas Manes wrote:
> 
> Please repost the description of your problem with the WSDL file.
> 
> Anne
> 
> On 9/4/06, Adnene <[EMAIL PROTECTED]> wrote:
>>
>> Hi all,
>>
>>   Did any body have time to have a look at this problem?
>>   I posted my WSDL file a week ago.
>>
>>   I can't find a solution to this problem.
>>   Please let me know if you find something consernig this deserialization
>> problem.
>>
>> Thanks,
>> Adnene
>>
>>
>> HHDirecto.Net wrote:
>> >
>> > Hi, Adnene can you post your wsdl and wsdd files to compare with mine?
>> >
>> >
>> > 2006/8/24, Adnene <[EMAIL PROTECTED]>:
>> >>
>> >>
>> >> 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" <[EMAIL PROTECTED]>
>> >> > To: <[email protected]>
>> >> > 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: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >
>> >> >
>> >> >
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >
>> >> >
>> >> >
>> >>
>> >> --
>> >> 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: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Re%3A-Axis-array-serialization-problem-%28Adnene-problem%29-tf2157136.html#a6137973
>> Sent from the Axis - User forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
http://www.nabble.com/user-files/235744/CDRonDemand.wsdl CDRonDemand.wsdl 
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Axis-array-serialization-problem-%28Adnene-problem%29-tf2157136.html#a6152234
Sent from the Axis - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to