M
Manni
Hi!
I have a component (MyComp) with a class TheElement.
I write a Webservice (MyService) with tow methods - one returning a DataSet,
the other returning TheElement.
Next I write a client (WinApp) and add a web reference to MyService.
The two methodes are there, one return (as expected) a class
System.Data.DataSet.
BUT the other returns MyService.TheElement instead of MyComp.TheElement.
The public elements are there and so on, but it is a different class!!!
I tried a lot of things
1.) DataSet is derivied from MarshalByRefObject
When I add this to my class, it does not work --
Marsh....implements an interface -- as error from the service.
2.) DataSet implement ISerializeable
I can't implement this since the class should also work with
Windows.CE - no ISerializeable there!!!
3.) I write a method in my class (TheElement) wich takes
MyService.TheElement...
This does not work since this class is generated by the Proxy
and therefore not available on the server.
Even if there could be a way with conditionals or so - my intention is to
get a proxy from the WebService - automaticly!!
Of course I can change the Proxy - but the WebService is complex and under
development - it will grow.
So I would always (at a change of the WebService) have to "recode" the
proxy, instead of simply say "refresh".
It is possible (since it works with DataSet), but how can it be done???
Thanks a lot
Manfred
I have a component (MyComp) with a class TheElement.
I write a Webservice (MyService) with tow methods - one returning a DataSet,
the other returning TheElement.
Next I write a client (WinApp) and add a web reference to MyService.
The two methodes are there, one return (as expected) a class
System.Data.DataSet.
BUT the other returns MyService.TheElement instead of MyComp.TheElement.
The public elements are there and so on, but it is a different class!!!
I tried a lot of things
1.) DataSet is derivied from MarshalByRefObject
When I add this to my class, it does not work --
Marsh....implements an interface -- as error from the service.
2.) DataSet implement ISerializeable
I can't implement this since the class should also work with
Windows.CE - no ISerializeable there!!!
3.) I write a method in my class (TheElement) wich takes
MyService.TheElement...
This does not work since this class is generated by the Proxy
and therefore not available on the server.
Even if there could be a way with conditionals or so - my intention is to
get a proxy from the WebService - automaticly!!
Of course I can change the Proxy - but the WebService is complex and under
development - it will grow.
So I would always (at a change of the WebService) have to "recode" the
proxy, instead of simply say "refresh".
It is possible (since it works with DataSet), but how can it be done???
Thanks a lot
Manfred