Question : WCF : Is it possible to pass "anything" as a method argument

I need to have a WCF service with a single method that must accept anything as an argument (type Object).
On the service side I want to use reflection to get the object properties, attributes and type name.
Is there a way of doing this?

Currently I'm using a wrapper object that inspects the object and what goes through the wire is the typed wrapper object...
It works great despite the fact that this wrapper object must be on a common assembly of both service and site.
I would like not to have this dependency, I would prefer just to reference the service and call its method.

Thanks!
Alex

Answer : WCF : Is it possible to pass "anything" as a method argument

To get XML why we need a class at client side ? They can use stringbuilder and LInqtoXML to create a xml.

You should only define the schema that you are expecting as parameter. It is upto the client how he creates the xml and sending to you as parameter.

Anyway you should define schema if you expect as xml or you have a class and let the client use this class to pass. Don't think any other option available.
Random Solutions  
 
programming4us programming4us