I am trying to send data from my RESTful client to my RESTful server. How do I pass an object which contains string, int, byte[], etc. using c# web/desktop client. I need help for client side implementation. Please guide me.
My server code like:
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "")]
void GetObject(Object obj);
You may have to use KnownTypeAttribute to specify what types that obj may be, so that the WCF DataContractSerializer can work.