English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a class

public ref class idnamepair{
int iId;
String^ strName;
};

I am using objects of this class in ArrayList which is being returned from the web service.

In my core class, I am querying the database to fetch the values. So, I think that It won't be a good idea to first query for the no. of rows, allocate array and again query for values.

So, I want to stick to dynamic array here. Any solution?

2007-03-04 21:20:55 · 1 answers · asked by hope_of_d_world 3 in Computers & Internet Programming & Design

1 answers

a web service uses xml to transfer watever u return from it..
returing an arraylist has always been a problem....

try just returning a string of XML, where each XML node represents one of your ArrayList items
or try creating a new class with
arraylist attributes and use the new class to return the xml page

2007-03-04 21:47:01 · answer #1 · answered by rahul_Codes 2 · 0 0

fedest.com, questions and answers