wcf - Interfaces in contract on client -
wcf - Interfaces in contract on client -
i have such contract:
[datacontract] [knowntype(typeof(person))] public class gadget { [datamember] public int id { get; set; } [datamember] public string name { get; set; } [datamember] public iperson person { get; set; } }
it represents gadget belongs person. came simple example, it's not of import whether makes sense or not.
so, instead of returning person class, homecoming iperson interface. client can no longer generate strong typed object, generate this:
public object person { get; set; }
now question is: possible allow client generate iperson interface? should have plenty information, because can instantiate person (only known type).
interfaces not transfered adding service reference. these interfaces exist in .net, service suppossed interoperable.
as far wsdl concerned there no way tell person , iperson apart.
if want utilize interface need move across manually. means editing generated client code hand.
wcf
Comments
Post a Comment