I want a loosely typed parameter in my web method.
I have a scenario where the client can send any of 25 DataContract objects into the WCF operation e.g.
proxy1.myFunction(PersonObject)
proxy1.myFunction(ComputerObject)
My restriction is there should be only one Operation Contract exposed to the client.
How can I design a web method which can take any of the 25 DataContract classes as a parameter? I tried with object
as type of parameter and gave KnownType
attribute to the DataContract classes but I had no luck during the serialization process.