![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | WCF proxy problems Hi everybody: I develop an application that uses .NET Remoting in order to communicate the client with our server applications. Now, we are moving to Windows Communication Framework and we have several problem on our migration. This is my current data model: IDataManager: - Data GetDataByID(int id); - Data GetDataByParentID(int id); - string GetDataName(); - MyCustomEnum GetDataInformation(); Data: - int ID; - string Name; - int ParentID; - MyCustomEnum DataInfo. I defined my data structure on a DLL called: MyApplication.Common.dll MyServer and MyClient implement the IDataManager (ServerDataManager and ClientDataManager respectively). The ServerDataManager implements the server functionality and the ClientDataManager uses a remote object that access to the ServerDataManager implementation: ClientDataManager: string GetDataName(); { return remoteObject.GetDataName(); } I wanted to implement a similar model using Windows Communication Foundation but I have a lot of problems about it: 1. My data providers will include more and more methods anytime, because my communication model upgrade will be done module by module, so, generating the proxies anytime is a very bothering task 2. I have several proxies in order to provide different information, but all my proxies implement the same enumerations and classes that I already implement in my Common.dll; so, when I compile my project, a lot of "Already defined" errors are thrown. There is a way to remove the need of generating the proxies anytime my IDataManager interfaces are modified? There is a way to avoid the need of define my enumerations and classes on the proxies? Best regards, Ernesto |
My System Specs![]() |
| | #2 (permalink) |
| Guest | RE: WCF proxy problems Hi If you use the Service Model Metadata Utility Tool (Svcutil.exe) , to create the Proxy, make this adding the {/excludeType:<type list>} option. In another case, i recommends create a own Proxy to call the service. Regards, -- Ronald Ricardo Ramirez Moran Solutions Architect DlanorOk Solutions Blog: http://blogs.wdevs.com/DlanorOk http://spaces.msn.com/DlanorOk {spanish} "Ernesto BascĂ³n Pantoja" wrote: > Hi everybody: > > I develop an application that uses .NET Remoting in order to communicate the > client with our server applications. > > Now, we are moving to Windows Communication Framework and we have several > problem on our migration. > > This is my current data model: > > IDataManager: > - Data GetDataByID(int id); > - Data GetDataByParentID(int id); > - string GetDataName(); > - MyCustomEnum GetDataInformation(); > > Data: > - int ID; > - string Name; > - int ParentID; > - MyCustomEnum DataInfo. > > I defined my data structure on a DLL called: MyApplication.Common.dll > > MyServer and MyClient implement the IDataManager (ServerDataManager and > ClientDataManager respectively). The ServerDataManager implements the server > functionality and the ClientDataManager uses a remote object that access to > the ServerDataManager implementation: > > ClientDataManager: > > string GetDataName(); > { > return remoteObject.GetDataName(); > } > > I wanted to implement a similar model using Windows Communication Foundation > but I have a lot of problems about it: > > 1. My data providers will include more and more methods anytime, because my > communication model upgrade will be done module by module, so, generating > the proxies anytime is a very bothering task > > 2. I have several proxies in order to provide different information, but all > my proxies implement the same enumerations and classes that I already > implement in my Common.dll; so, when I compile my project, a lot of "Already > defined" errors are thrown. > > There is a way to remove the need of generating the proxies anytime my > IDataManager interfaces are modified? > > There is a way to avoid the need of define my enumerations and classes on > the proxies? > > Best regards, > > > > Ernesto > > > > |
My System Specs![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Proxy Server | joshua siew | Vista General | 1 | 06-11-2008 05:00 AM |
| Proxy settings | Mike Merrell | Live Folder Share | 0 | 05-21-2008 05:48 PM |
| IE Proxy keeps changing | Simon Says | Vista security | 1 | 03-01-2007 11:48 PM |
| proxy | Simla | Vista account administration | 0 | 02-06-2007 06:29 AM |