Thanks for the prompt response Dinesh..... :)

Thanks & Regards,
S.A.Rajeevan
Software Engineer WSO2 Inc
E-Mail: rajeev...@wso2.com | Mobile : +94776411636

On Thu, Sep 18, 2014 at 9:57 AM, Dinesh J Weerakkody <dine...@wso2.com>
wrote:

> Hi,
>
> Yes. It is a limitation. Web services does not support Java Collections
> (or any other language specific types). we have to use arrays.
>
> On Thu, Sep 18, 2014 at 9:45 AM, Aiyadurai Rajeevan <rajeev...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> i'm trying to implement a Order processing carbon component, Here i have
>> to list down a set of books that are already available in store, to store
>> the books i used List and wrote a method to returns this as *List<Book>
>> getBook() *in service class. But after I generate the stub for this
>> service we could noticed that this method has been stubbed as an Array (the
>> actual code for this stubbed method is : public
>> org.wso2.carbon.library.mgt.data.xsd.Book[] getBook())
>>
>> and also as per the code, we could see the output list has been
>> purposefully converted to array as below,
>>
>>  object.set_return((org.wso2.carbon.library.mgt.data.xsd.Book[])
>>
>>
>> org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
>>
>>
>> org.wso2.carbon.library.mgt.data.xsd.Book.class,
>>                                                                 list1));
>>
>>
>> I would appreciate if someone could please let me know the reason for
>> this strange behavior, is there any limitation in sending List over
>> webservice?
>>
>> Thanks & Regards,
>> S.A.Rajeevan
>> Software Engineer WSO2 Inc
>> E-Mail: rajeev...@wso2.com | Mobile : +94776411636
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Dinesh J. Weerakkody*
> Software Engineer
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to