You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation

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. Sub DeleteItems (ByVol id As String) You need to configure WCF
to call this method when the client calls the service with the HTTP DELETE operation. What
should you do?

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. Sub DeleteItems (ByVol id As String) You need to configure WCF
to call this method when the client calls the service with the HTTP DELETE operation. What
should you do?

A.
Change the Sub statement to Function and specify RemovedActivityAction as the return
type.

B.
Replace the string parameter with a RemovedActivityAction parameter.

C.
Add the HttpDelete attribute to the operation.

D.
Add the WebInvoke(UriTemplate: = “/Items/{id>”, Method: = “DELETE”) attribute to the
operation.

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *