Re: Alternative to Remoting?

From: William Ryan eMVP (dotnetguru_at_comcast.nospam.net)
Date: 05/03/04


Date: Mon, 3 May 2004 11:34:06 -0400


"Diego F." <diegofr@NOterra.es> wrote in message
news:uCVRyHSMEHA.3348@TK2MSFTNGP09.phx.gbl...
> Hello. I hope someone can help me.
>
> I'm developing an application with Pocket PC that must send objects to a
> server and retreive them later. The server has to mantain the objects in a
> table, ready for serve them back to the clients.
>
> I thought about using web services, but they doesn't mantain the table to
> various clients, as an object is created in each call to a web method.
They certainly can if you want them to. You could for instance permanently
persist the info in a SqlServer/Oracle table and recreate the object from
that.
Also,
> the proxy created by the web service changes the type of my objects and I
> can't convert the original ones into them.

Can you show me the code that's doing this? all that the ws is doing is
taking and dishing out XML. From that XML you can make an object of
whatever type you want. For instance, you could get all of the properties
of a datareader, send it to the ws, and have the ws store it in a table. On
a future request, it coudl grab that record. You could create a new reader,
and set the properties so its state matched the old ones and use it
accordingly. THis is probably the lamest example I can think of b/c a
reader doesn't have a lot of properties, but you could do the same with
your custom objects.
>
> In Windows Applications the solution is using .NET Remoting but I found
now
> that CF does not support it :-(
FYI, I've heard quite a bit of scuttle*** that Remoting is pretty much
dead, well, about to die is probably a better way of phrasing it. Having
played with both, WS provide a much more pleasant framework to work with by
and large.

>
> It has to be a solution to that. Can you please help me???
>
> Regards,
>
> Diego F.
>
>


Loading