axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chinmoy Chakraborty" <cch...@gmail.com>
Subject Re: Returning Multiple values
Date Mon, 01 Dec 2008 11:43:14 GMT
You can do that using object array...e,g.

Object[] obj = new Object[3];
obj[0] = name;
obj[1] = location;
obj[2] = address.....and so on..

>From the client end you can get the corresponding values from the respective
location of the object array....

HTH
Chinmoy

On Mon, Dec 1, 2008 at 4:23 PM, Harikrishna Vemula
<hari.k.vemula@gmail.com>wrote:

>
> Sorry, may be my question was not clear, the method has to return multiple
> variables (ex. name, location, etc...)
> Thanks in advance
>
> -hari
>
> On Mon, Dec 1, 2008 at 3:54 PM, Chinmoy Chakraborty <cchinu@gmail.com>wrote:
>
>> You can use object array for different values if you are using axis 1.x
>> ...
>>
>> Chinmoy
>>
>>   On Mon, Dec 1, 2008 at 3:42 PM, Harikrishna Vemula <
>> hari.k.vemula@gmail.com> wrote:
>>
>>> Hi
>>>   I have a requirement, in that some methods will return multiple values.
>>> So, which one is good whether to use Holders or to use a java bean as return
>>> type?
>>> I'm using axis 1.1 as my current product is still running on that...
>>>
>>> --
>>> Hari Krishna Vemula
>>>
>>>
>>
>
>

Mime
View raw message