ImAmMe

I've just done an exam job on remoting on a PDA but I realized that this is not possible..
So therefor I need to know how I can make the same effect in another way..
I mean I can't make a remote connection on a PDA so what can I do to control my object on the server


Re: Visual C# Language C# Remoting on PDA alternative

Brendan Grant

Would using a web service be an option for you




Re: Visual C# Language C# Remoting on PDA alternative

ImAmMe

Brendan Grant wrote:
Would using a web service be an option for you


I don't know if a webservice can interact with an object..
Those webservices I've worked with have only been doing calculations and stuff like that..


The structure is I have an IdeaBank
that holds and contains 0 - * (many) Subject (object)
and Subject can contains 0 - * Ideas (object)
And I need to make a remote connection to IdeaBank..
But how can I replace the remote connection So I can work on A subject with many ideas..




Re: Visual C# Language C# Remoting on PDA alternative

Evan Hoff

i've been in a similar situation, my best advice would be to use a webservice..

there are a few ways to accomplish this..

if IdeaBank, Subject, and Idea are all coming from a database somewhere, you can have your webservice call return a DataSet with with a DataTable for each.. This is the most painless way to do it, but isn't necessarily the best.

A better way would be to ensure that IdeaBank, Subject, and Idea all support Xml Serialization. This can be as simple as adding some attributes to their classes. After you've made them serializable, you can simple have a webservice return the IdeaBank object and manipulate it on the client. Any updates to IdeaBank that need to be persisted can be done through another webservice call..

So..you could have a GetIdeaBank() call (passing in an ID or something) along with an UpdateIdeaBank(IdeaBank UpdatedObject).. something similar to that..

Here's an article with a brief introduction to xml serialization with c#:
http://www.devhood.com/tutorials/tutorial_details.aspx tutorial_id=236