RESTful Service - POST (format XML) passing Object
Posted on 2014-03-10
I am trying to consume a Web Service I have written in VS2012 C#. The operation takes a Transaction object and returns a Transaction object.
I need to consume the web service and am having trouble writing the code for the HttpWebRequest and HttpWebResponse.
I do not know who to pass the Transaction Object to the service method and get the results back and deserialize it back into the Transaction object. It is a POST (adding a record).
All the examples I find, do not show me enough detail on how to do this.
Can someone please give me a straight forward example of how to write the client HttpWebRequest/Response and how to pass the object and then how to get the returned data back into the object.