BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-05-2008, 04:33 PM   #1 (permalink)
New Member
 
Join Date: Oct 2008
Model: 8100
PIN: N/A
Carrier: TELCEL
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Does KSOAP2 support .net Arrays?

Please Login to Remove!

Hi,



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?



Im implementing simple .NET webservices.



Example:

Code:
/// <summary>
	/// Summary description for BlackBerryWS.
	/// </summary>
	[WebService(Namespace = "h t t p : / / t e m p u r i. o  r g /")]
	[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!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Allen-Bradley 1756-L61/B ControlLogix 5561 Processor 2MB 2009
$389.0
Allen-Bradley 1756-L61/B ControlLogix 5561 Processor 2MB 2009 pictureAllen Bradley 1785-LT2 A Processor
$99.0
Allen Bradley 1785-LT2 A Processor  pictureAllen Bradley 1747-L541 Processor
$99.0
Allen Bradley 1747-L541 Processor picture(1PCS) NCP5393MNR2G IC CTLR 2/3/4PHASE CPU 48-QFN 5393 NCP5393
$2.05
(1PCS) NCP5393MNR2G IC CTLR 2/3/4PHASE CPU 48-QFN 5393 NCP5393 pictureIBM 4610-2CR Receipt Printer, Check & Card Processor for Point of Sale - White
$119.99
IBM 4610-2CR Receipt Printer, Check & Card Processor for Point of Sale - White picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.