Microsoft
70-513 · Question #69
You are developing a Windows Communication Foundation (WCF) service that contains the following operation contract. [OperationContract] CustomerNames GetCustomerNames(); The operation returns…
The correct answer is A. [MessageContract(IsWrapped = false)]. See the full explanation below for the reasoning.
Question
You are developing a Windows Communication Foundation (WCF) service that contains the following operation contract. [OperationContract] CustomerNames GetCustomerNames(); The operation returns customer names. You need to develop a definition for the operation contract that produces XML with the following structure. Which code segment should you use?
Exhibit
Options
- A[MessageContract(IsWrapped = false)]
- B[MessageContract(WrapperName = "")]
- C[DataContract]
- D[DataContract]
How the community answered
(42 responses)- A81% (34)
- B7% (3)
- C10% (4)
- D2% (1)
Community Discussion
No community discussion yet for this question.
