Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 54
Registered: ‎10-07-2008
My Device: Not Specified

Does KSOAP2 support .net Arrays?



I have been using ksoap2 library and works fine for simple data types, but now I have more complex data to handle.


I want to use an array or dictionary, or any other structure to pass a collection of data in any data type (string, int)


Does someone know how to?


I´m implementing simple .NET webservices.





/// <summary> /// Summary description for BlackBerryWS. /// </summary> [WebService(Namespace = "http://tempuri.org/")] [ToolboxItem(false)] public class BlackBerryWS : WebService {.... /// <summary> /// GetTravels /// </summary> /// <param name="userId">userId</param> /// <returns>ArrayList</returns> [WebMethod] public ArrayList GetTravels(int userId) { ArrayList travels = new ArrayList(); EGR_ExpenseApproverManager manager = new EGR_ExpenseApproverManager(); requestManager objManager = new requestManager(); manager.getExpenseByApprover(userId); //manager.getExpenseListByApprover() //objManager.getRequestByTraveler() travels.Add("value 1"); return travels; }


How do you handle collections or arrays?


Thanks in advance for your support! Smiley Happy



Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***