Is WCF Supports object as returntpe ?
Can any one say whether WCF Service support object as return type of function
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sudheer KumarRank #3,979 · 374 reputationPosted Sep 3, 2013, 2:04 AM EDT
For WCF REST services support object serialization. If you return a Detail object, it will automatically be serialized to JSON/XML. But you can't return a general object. You must specify the type.
Ref: http://social.msdn.microsoft.com/Forums/vstudio/en-US/1f43e9b4-39a4-481b-88f0-18c7d4416745/how-do-i-return-a-object-at-runtime-in-my-c-web-servicerest-or-can-i-have-a-return-type-of