Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ArrayList result from a Web Service

0 views
Skip to first unread message

Ed Courtenay

unread,
Jun 8, 2001, 9:24:15 AM6/8/01
to

I'm currently banging my head against a brick wall with this one - so if
anyone can help I'd be grateful.

I'm trying to return an ArrayList from a Web Service, but it's baulking
every time I try to access it. I expect it's because the system cannot tell
what object types are being held within the ArrayList, and I also excpect
that there's an Attribute I can use to tell it. However, I have no idea how
to approach this. Any ideas?

--
Ed Courtenay
http://www.edcourtenay.co.uk


Chu Xu

unread,
Jun 9, 2001, 3:43:11 AM6/9/01
to
Got this from one of my friends..

[return: XmlArrayItemAttribute(typeof(YourType))]
public ArrayList WebMethodA ([XmlArrayItemAttribute(typeof(YourType))]
ArrayList arrayListOfYourType)
{
// ....
}

- Chu

"Ed Courtenay" <e...@edcourtenay.co.uk> wrote in message
news:#PUvR5B8AHA.1276@tkmsftngp04...

0 new messages