Please - anyone that can help.
I am getting confusing results while trying to expose a collection from a
web service.
I have a webservice in which a web method accepts a collection as a
parameter and returns an array of datasets. The collection consists of
database connection objects.
Based on the simple hierarchy below, you can see that starting with the
ConnectionsCollection, all other collections and objects are "chained"
together. Each collection implements the 'CollectionBase' and each class
contains a property which associates it to the next collection in the
hierarchy.
Everything works fine. The problem is with intellisense. In my test
application that references the webservice the ParameterObject gets exposed
with all of the properties and methods visible using intellisense but none of
the classes "higher up in the chain" have any of their properties or methods
exposed. I need to get all of the properties and methods in all of the
classes exposed from inside of my test application.
If I take this design and create a standard project reference I get all the
intellisense I need from all the classes but from a webservice it's a
different result. Why or how can I get all of the classes in a webservice to
be serialized?
I would have thought that since the ParameterObject is the lowest class in
the chain that all of the other consuming classes would be exposed as well. I
am confused as to why that last class in the hierarchy is exposed while the
other two classes remain hidden
MyDataManagerService
WebMethod:GetMyDataset(MyConnectionCollection as ConnectionCollection) as
DataSet
--->>ConnectionsCollection (Contains connection objects)
------->>ConnectionObject (has a property of Commands as CommandsCollection)
----------->>CommandsCollection (Contains command objects)
--------------->>CommandObject (property of parameters collection)
------------------->>ParametersCollection (Contains parameters objects)
----------------------->>ParameterObject