Microsoft
70-513 · Question #32
You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner. You need to add a delete operation You implement the delete method as follows…
The correct answer is A. Add the Weblnvoke(UriTemplate = "/Items/(idy. See the full explanation below for the reasoning.
Question
You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner. You need to add a delete operation You implement the delete method as follows. string oid Deleteltems(string id); You need to configi.re WCF to ci this method when the client calls the service with the HTTP DRETE operation What should you do?
Options
- AAdd the Weblnvoke(UriTemplate = "/Items/(idy,
- BAdd the HttpDelete tribute to the operation
- CReplace the sting parameter with a RemovedActivityAction parameter
- DReplace the return type with RemovedActivityktion.
How the community answered
(49 responses)- A76% (37)
- B6% (3)
- C4% (2)
- D14% (7)
Community Discussion
No community discussion yet for this question.