![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Calling Methods on ? pipes | PowerShell | |||
| static methods | PowerShell | |||
| Calling base methods BeginProcessing, EndProcessing, ProcessRecord | PowerShell | |||