Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Store Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems.

Go Back   Vista Forums > Vista technology newsgroups > Indigo

Calling methods on DataContracts

Reply
 
Thread Tools Display Modes
Old 03-10-2008   #1 (permalink)
rajigopal
Guest
 
Posts: n/a

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!
  Reply With Quote

Old 03-11-2008   #2 (permalink)
Tiago Halm
Guest
 
Posts: n/a

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!

  Reply With Quote
Old 04-03-2008   #3 (permalink)
JIGNESH
Guest
 
Posts: n/a

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!
>
>
>
  Reply With Quote
Old 04-04-2008   #4 (permalink)
tiago.halm
Guest
 
Posts: n/a

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 -
  Reply With Quote
 
Reply

Thread Tools
Display Modes









Vistax64.com 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 2005-2008

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