Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Calling methods on DataContracts

 
 
Old 03-10-2008   #1 (permalink)
rajigopal


 
 

Calling methods on DataContracts

Hi,

I have this requirement that a web service be used to return an object
that the client can call methods on. For e.g:

WebServiceClient c = new WebServiceClient();
SomeObject o = c.GetObject();
o.DoSomething();
o.Save();

Is this possible with current state of WCF? If so, how?

Thanks!

My System SpecsSystem Spec
Old 03-11-2008   #2 (permalink)
Tiago Halm


 
 

Re: Calling methods on DataContracts

DataContracts are just data, they are not "objects", so there is no behavior
involved. Only the service exibits functionality served by operations with
receive and return data.

What is the original funcional or technical requirement in this project?

Tiago Halm

<rajigopal@xxxxxx> wrote in message
news:1ae65090-b6f9-4518-855c-ac1483f19464@xxxxxx
Quote:

> Hi,
>
> I have this requirement that a web service be used to return an object
> that the client can call methods on. For e.g:
>
> WebServiceClient c = new WebServiceClient();
> SomeObject o = c.GetObject();
> o.DoSomething();
> o.Save();
>
> Is this possible with current state of WCF? If so, how?
>
> Thanks!

My System SpecsSystem Spec
Old 04-03-2008   #3 (permalink)
JIGNESH


 
 

Re: Calling methods on DataContracts

We had a concept in Remoting MarshalByRef or MarshalByObject
It sounds to me like MarshalByObject kind of need. ?

Toago, am i thinking correct ?


"Tiago Halm" wrote:
Quote:

> DataContracts are just data, they are not "objects", so there is no behavior
> involved. Only the service exibits functionality served by operations with
> receive and return data.
>
> What is the original funcional or technical requirement in this project?
>
> Tiago Halm
>
> <rajigopal@xxxxxx> wrote in message
> news:1ae65090-b6f9-4518-855c-ac1483f19464@xxxxxx
Quote:

> > Hi,
> >
> > I have this requirement that a web service be used to return an object
> > that the client can call methods on. For e.g:
> >
> > WebServiceClient c = new WebServiceClient();
> > SomeObject o = c.GetObject();
> > o.DoSomething();
> > o.Save();
> >
> > Is this possible with current state of WCF? If so, how?
> >
> > Thanks!
>
>
>
My System SpecsSystem Spec
Old 04-04-2008   #4 (permalink)
tiago.halm


 
 

Re: Calling methods on DataContracts

You're probably coming from some of the Remoting concepts, like CAO
and SAO which differ from the Service Oriented Architecture concepts.

Look into the funcionality you need, what (the services) provides that
funcionality, the separation of responsabilitites and independence
along with autonomy of all those services. Each one of those services
with their operations provide funcionalities that implement the
requirements you have on your project.

You need to re-think the architecture of your solution.

Tiago Halm

On Apr 3, 8:35*pm, JIGNESH <JIGN...@xxxxxx> wrote:
Quote:

> We had a concept in Remoting MarshalByRef or MarshalByObject
> It sounds to me *like MarshalByObject kind of need. ?
>
> Toago, am i thinking correct ?
>
>
>
> "Tiago Halm" wrote:
Quote:

> > DataContracts are just data, they are not "objects", so there is no behavior
> > involved. Only the service exibits functionality served by operations with
> > receive and return data.
>
Quote:

> > What is the original funcional or technical requirement in this project?
>
Quote:

> >Tiago Halm
>
Quote:

> > <rajigo...@xxxxxx> wrote in message
> >news:1ae65090-b6f9-4518-855c-ac1483f19464@xxxxxx
Quote:

> > > Hi,
>
Quote:
Quote:

> > > I have this requirement that a web service be used to return an object
> > > that the client can call methods on. For e.g:
>
Quote:
Quote:

> > > WebServiceClient c = new WebServiceClient();
> > > SomeObject o = c.GetObject();
> > > o.DoSomething();
> > > o.Save();
>
Quote:
Quote:

> > > Is this possible with current state of WCF? *If so, how?
>
Quote:
Quote:

> > > Thanks!- Hide quoted text -
>
> - Show quoted text -
My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Calling Methods on ? pipes PowerShell
static methods PowerShell
Calling base methods BeginProcessing, EndProcessing, ProcessRecord PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46