70-518 · Question #126
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…
The correct answer is C. Implement the service parameter as a MessageContract class that contains a. See the full explanation below for the reasoning.
Question
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?
Options
- AImplement the service parameter as a Serializable class that contains a property for the
- BImplement the service parameter as a DataContract class that contains a DataMember
- CImplement the service parameter as a MessageContract class that contains a
- DImplement the service parameter as a MessageContract class that contains a
How the community answered
(53 responses)- A4% (2)
- B15% (8)
- C75% (40)
- D6% (3)
Community Discussion
No community discussion yet for this question.