wcf - Can I specify a contract's Name and Namespace in app.config? -
i'm pretty new wcf , soa, apologize if question poor.
the way see it, if specify contract's name , namespace in app.config, change service client contracts use @ runtime rather compile time. without ability specify name , namespace in app.config, client contracts limited connecting services contracts same name , in same namespace. right?
so there way choose name , namespace given contract in app.config? if not, why not?
what ask doesn't make sense. name , namespace identify contract. contract cannot change without changing client. why service versioning performed adding new contract (with new name/namespace combination), not changing existing contract.
you should think of contract being unbreakable agreement between client , service - provide set of operations.
you can, on other hand, change endpoint client references if decide you'd client use different implementation of contract. can change binding implementation reached. must maintain same contract, unless you'd begin lying clients.
Comments
Post a Comment