Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

how to save an object with wcf rest?

$
0
0

Hello - I'm able to use the following code as an interface to allow my REST service to return a Customer object based on an ID parameter:

[OperationContract]
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Wrapped,
UriTemplate = "Customers/{id}")]
Customer GetCustomer(string id);

Now I need to write an interface to allow my REST service to save a Customer object based on some Customer object XML.  Can you show me how I should put together that interface?


Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>