Microsoft
70-513 · Question #22
You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows…
The correct answer is D. [OperationContract]. See the full explanation below for the reasoning.
Question
You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows. [OperationContract] void PostData(Order data); You need to modify PostData so that it can receive any SOAP message. Which code segment should you use?
Options
- A[OperationContract(IsOneWay=true, Action="", ReplyAction="")]
- B[OperationContract(IsOneWay=true, Action="", ReplyAction = "")]
- C[OperationContract]
- D[OperationContract]
How the community answered
(29 responses)- A10% (3)
- B3% (1)
- C3% (1)
- D83% (24)
Community Discussion
No community discussion yet for this question.