You need to ensure that the WCF service operation receives binary data files along with a string parameter that contains the description of each file

You are creating a Windows application by using Microsoft .NET Framework 4 and
Microsoft Visual Studio 2010. The business logic layer of the application is implemented by
using Windows Communication Foundation (WCF). You create a WCF service that contains
a single operation to upload large binary data files. You configure the binding of the WCF
service to enable data streaming. You need to ensure that the WCF service operation
receives binary data files along with a string parameter that contains the description of each
file. You create a service operation that receives a single parameter, what should you do
next?

You are creating a Windows application by using Microsoft .NET Framework 4 and
Microsoft Visual Studio 2010. The business logic layer of the application is implemented by
using Windows Communication Foundation (WCF). You create a WCF service that contains
a single operation to upload large binary data files. You configure the binding of the WCF
service to enable data streaming. You need to ensure that the WCF service operation
receives binary data files along with a string parameter that contains the description of each
file. You create a service operation that receives a single parameter, what should you do
next?

A.
Implement the service parameter as a MessageContract class that contains a
MessageBodyMember property for the description of the file and another
MessageBodyMember property for the content of the data file.

B.
Implement the service parameter as a MessageContract class that contains a
MessageHeader property for the description of the file and a MessageBodyMember
property for the content of the data file.

C.
Implement the service parameter as a Serializable class that contains a property for the
description of the file and another property for the content of the data file

D.
Implement the service parameter as a DataContract class that contains a DataMember
property for the description of the file and another DataMember property for the content of
the data file.

Explanation:



Leave a Reply 0

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