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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -