nerdexam
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)
  • A
    82% (28)
  • B
    6% (2)
  • C
    3% (1)
  • D
    9% (3)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice