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: [email protected] | Mobile : +94776411636
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev