Object Oriented Communication with WCF -


i know wcf message passing system, specified service contract interface declaring methods can return or take argument instances of data contract classes.

my question : possible use wcf implement kind of object oriented communication? instance :

  • could service contract interface method return service contract ? enable me create tree of instances, first step of object oriented communication.
  • even better, service contract implement not methods properties?

if have other idea create kind of object oriented communication, please let me know. i'm bit stuck here.

well, in order:

  1. wcf allows return interface contract method. implementations of interface plan use in service need known service (via serviceknowntypeattribute or decorating them datacontract), otherwise you'll run serialization issues.
  2. no, methods allowed. how works. imagine how proxies' implementations (generated or not) if support properties. lot of complications solved methods.

on how it... i'm assuming client's perspective. so, on client can create wrapper on service proxy , make expose properties , other contracts, you've called them. contracts can wrappers on other service proxies (or same, depends need).

so, bottom line have emulate ask for, directly on client.

you should not consider stretching/extending wcf on can default, write own framework on it, if needed. wcf can handle lot of scenarios , maybe need adjust requirements or technical design bit.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -