You need to develop a definition for the operation contract that produces XML with the following structure

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

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

A.
[MessageContract(WrapperName = “”)] public class CustomerNames {

B.
[MessageBodyMember] public string[] Names; }

C.
[DataContract] public class CustomerNames { [DataMember] public string[] Names; }

D.
[DataContract] public class CustomerNames {

E.
[DataMember(IsRequired = false)] public string[] Names; }

F.
[MessageContract(IsWrapped = false)] public class CustomerNames {
[MessageBodyMember] public string[] Names; }



Leave a Reply 0

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