c# - Service reference complex types -


i have client app consuming wcf service accepting , returning complex type parameters. these complex types held in separate assembly both client app , wcf service referencing.. problem when add service reference in client app, generated reference class builds own versions of complex parameter types , hence cant pass in types assembly original types defined. not sure if @ understandable..

question is.. going have write sort of reflective deep copy routine build service reference generated classes original types? or there better option

any ever happily received

nat

when adding service reference code, select advanced , you'll see option reuse types in referenced assemblies. if ensure checked, , reference added project, wcf won't generate proxy types , use referenced types instead.

if you've added service reference, reference shared types first, , right-click service reference, , select configure service reference regenerate client code using referenced types.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -