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 returnservice 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:
- wcf allows return interface contract method. implementations of interface plan use in service need known service (via
serviceknowntypeattribute
or decorating themdatacontract
), otherwise you'll run serialization issues. - 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
Post a Comment