c# - exposing datacontract defined in a different namespace via WCF -


i have developed webservice, accepts object input

namespace someservice {     public bool createbehavior(classinput classinput)              {                    // code here              } } 

now have defined classinput datacontract in business entities different namespace

namespace someservice.businessentities {     [datacontract]         public class classinput         {             [datamember]             public int intvariable{ get; set; }             [datamember]             public string stringvariable { get; set; }         } } 

to use classinput in webservice have added project reference business entities project. how can expose datacontract consumer of webservice? instance in client side, need classinput, not exported via service!!

someserviceclient someserviceclient = new someserviceclient(); someserviceclient.createbehavior(classinput)

i read datacontractsurrogate not able map scenario


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -