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 shekher awasthi <sh...@gmail.com> on 2008/08/25 10:47:12 UTC

Error in Return Type

Hi All,

I am new to webService i have develpoed a webservice in which i am trying to
send the response but i am facing a problem in it.

i have created ajavabean and have defined the return type as ArrayList of
this BEan type..
if i will just use this array list and add simple string values in to it the
webserice is returning the arraylist accurately,but when i am filling the
bean and putting it in the arraylist the webservice is unable to return the
response it is returning null values..

i have even serilised the beans can anybody give me any clue where i am
doing wrong


Thanks in advance

Shekher

Re: Error in Return Type

Posted by shekher awasthi <sh...@gmail.com>.
i am trying for it

let's see wat happened i will let you know about the status.


On 8/25/08, Chinmoy Chakraborty <cc...@gmail.com> wrote:
>
>  Hello,
>
> Instead of using ArrayList use your custom object array (e.g. MyObject[]).
>
> Chinmoy
>
>
>  On Mon, Aug 25, 2008 at 2:17 PM, shekher awasthi <
> shekher.awasthi@gmail.com> wrote:
>
>> Hi All,
>>
>> I am new to webService i have develpoed a webservice in which i am trying
>> to send the response but i am facing a problem in it.
>>
>> i have created ajavabean and have defined the return type as ArrayList of
>> this BEan type..
>> if i will just use this array list and add simple string values in to it
>> the webserice is returning the arraylist accurately,but when i am filling
>> the bean and putting it in the arraylist the webservice is unable to return
>> the response it is returning null values..
>>
>> i have even serilised the beans can anybody give me any clue where i am
>> doing wrong
>>
>>
>> Thanks in advance
>>
>> Shekher
>>
>
>

Re: Error in Return Type

Posted by Chinmoy Chakraborty <cc...@gmail.com>.
Hello,

Instead of using ArrayList use your custom object array (e.g. MyObject[]).

Chinmoy

On Mon, Aug 25, 2008 at 2:17 PM, shekher awasthi
<sh...@gmail.com>wrote:

> Hi All,
>
> I am new to webService i have develpoed a webservice in which i am trying
> to send the response but i am facing a problem in it.
>
> i have created ajavabean and have defined the return type as ArrayList of
> this BEan type..
> if i will just use this array list and add simple string values in to it
> the webserice is returning the arraylist accurately,but when i am filling
> the bean and putting it in the arraylist the webservice is unable to return
> the response it is returning null values..
>
> i have even serilised the beans can anybody give me any clue where i am
> doing wrong
>
>
> Thanks in advance
>
> Shekher
>