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()> Function GetCustomerNames() As
CustomerNames 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()> Function GetCustomerNames() As
CustomerNames 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(IsWrapped:=False)> Public Class CustomerNames

B.
<MessageBodyMember()> Public Names() As String End Class

C.
<MessageContract(WrapperName:=””)> Public Class CustomerNames

D.
<MessageBodyMember()> Public Names() As String End Class

E.
<DataContract()> Public Class CustomerNames <DataMember ()> Public Names () As
String End Class



Leave a Reply 0

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