Re: Alternative to Remoting?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

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


Date: Mon, 3 May 2004 12:35:23 -0400


"Diego F." <diegofr@NOterra.es> wrote in message
news:eSa2UrSMEHA.892@TK2MSFTNGP09.phx.gbl...
> By your answer I understand that you prefer using WS in all cases, is it?
At first, no, but since I've had a fair amount of exposure with both,
absolutely.
Do
> you use WS with your custom objects without any problem?
Yes, but I can represent the overwhelming majority of my objects with a
datatable so I use datasets for simplicity much of the time.
I've read about
> people that had to modify the Reference.cs file to make it work. I'll
write
> some code and post it to show you my problems with WS.
Cool
>
> Also the issue about keeping a table into memory. I don't want to use data
> bases with that. Just want to have a hash table to store temporary objects
> that are available to different clients (Pocket PC devices)
Haven't done that, I like db's for persistence. Let me think about it.

BTW, you may want to check out Casey Chesnut's sight www.brains-n-brawn.com
, he's the man in many areas, but PPC + WS is his specialty.
>
> Regards,
>
> Diego F.
>
>
> "William Ryan eMVP" <dotnetguru@comcast.nospam.net> escribió en el mensaje
> news:%23MWhyNSMEHA.2284@TK2MSFTNGP11.phx.gbl...
> >
> > "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.
> > >
> > >
> >
> >
>
>


Quantcast