I have a web site using asp.net mvc4, and a VSTO automation (client side) that need to update and get some data from my web site.
Actually I’m trying to use HttpWebRequest object to perform the dialog. between VSTO and web.
For now I’m thinking on return some jSon objects from web to VSTO. But how can I do to send from VSTO to web ?
Is better approach send XML ? if yes what is the current way to do this in c#.
You can make a C# object that matches the object sent via JSON, and then use have it deserialize via the .net default serializer or json.NET. Investigate the DataContract attribute for more information.