Microsoft
70-513 · Question #321
A Windows Communication Foundation (WCF) service uses the following service contract. [ServiceContract] public interface IService { [OperationContract] string Operation1(string s); } You need to…
The correct answer is A. [OperationContract]. See the full explanation below for the reasoning.
Question
A Windows Communication Foundation (WCF) service uses the following service contract. [ServiceContract] public interface IService { [OperationContract] string Operation1(string s); } You need to ensure that the operation contract Operation1 responds to HTTP POST requests. Which code segment should you use?
Options
- A[OperationContract]
- B[OperationContract]
- C[OperationContract(ReplyAction="POST")]
- D[OperationContract(Action="POST")]
How the community answered
(34 responses)- A82% (28)
- B6% (2)
- C3% (1)
- D9% (3)
Community Discussion
No community discussion yet for this question.