C
circuit_breaker
Hi,
I'm trying to call a WebMethod that returns an ArrayList from an
ASP.Net Web Page. The signature of the WebMethod is as follows:
--------
<WebMethod()> _
Public Function RetrieveCategories() As ArrayList
-------
The WebMethod() is just retrieving 5 records from a table in a
database.
On the client side, I have the following:
--------
Dim xws As New Hello.Service1
Dim aList As New ArrayList
aList = xws.RetrieveCategories()
---------
but the xws.RetrieveCategories() part is being underlined, giving me
this message:
"value of type '1-dimensional array of System.Object' cannot be
converted to 'System.Collections.ArrayList'"
As I understand, I might have to modify the stub but I'm not quite sure
what to put in it...
Thanks for your help.
Regards, Steve.
I'm trying to call a WebMethod that returns an ArrayList from an
ASP.Net Web Page. The signature of the WebMethod is as follows:
--------
<WebMethod()> _
Public Function RetrieveCategories() As ArrayList
-------
The WebMethod() is just retrieving 5 records from a table in a
database.
On the client side, I have the following:
--------
Dim xws As New Hello.Service1
Dim aList As New ArrayList
aList = xws.RetrieveCategories()
---------
but the xws.RetrieveCategories() part is being underlined, giving me
this message:
"value of type '1-dimensional array of System.Object' cannot be
converted to 'System.Collections.ArrayList'"
As I understand, I might have to modify the stub but I'm not quite sure
what to put in it...
Thanks for your help.
Regards, Steve.