ASP.NET Remoting problem

  • Thread starter Thread starter Abhishek Srivastava
  • Start date Start date
A

Abhishek Srivastava

Hello All,

I have written a WebService using ASP.Net. This Service is returning an
Object called ModuleVO. I have defined many properties in this class.

I have added a web reference to this service. When I call this service,
the object I get is of type MyWebService.ModuleVO. Where MyWebService is
the name of the web reference.

When I observe the web reference in the object browser, I don't see any
properties. Just member variables.

But now I cannot bind an array of this object to a DataGrid because
DataGrid makes it makes it mandatory for items in an array to have
properties (and not member variables) to be able to bind with data grid.

How can I solve this issue? Has anyone else tried to bind an array of
objects returned by a webservice to a datagrid and faced similar issue.

Thanks for your help in advance.

regards,
Abhishek.
 
Your post went unanswered. Have you resolved this issue? If you still need
help, please post the original question with your request.
 
Well Thanks for your reply. I reposted this question (maybe my wording
of the problem was not correct in this one).

The answer I found was that the visual studio when generating proxies
for the webservice objects does not generate properties (even when the
original objects do have properties) it generates proxy code only with
member variables.

So its not possible to bind an array of objects returned by a webservice
to a datagrid because the objects will not have properties.

I have worked around the problem by making the webservice return a
dataset rather than an object[].

However, I feel this is a bug in the proxy code generator of VS.net.

regards,
Abhishek.
 
Back
Top