Microsoft
70-513 · Question #84
You are creating a Windows Communication Foundation (WCF) service that responds using plain-old XML (POX). You have the following requirements: - You must enable the /catalog.svc IItems operation to…
The correct answer is D. Set the retum type of the operation to System.ServiceModel.Channels.Message. See the full explanation below for the reasoning.
Question
You are creating a Windows Communication Foundation (WCF) service that responds using plain-old XML (POX). You have the following requirements:
- You must enable the /catalog.svc IItems operation to respond using
the POX, JSON, or ATOM formats.
- You also must ensure that the same URL is used regardless of the
result type.
- You must determine the response format by using the Accepts HTTP
header. What should you do?
Options
- AImplement the IChannelInitializer interface in the service class.
- BImplement the System.Runtime.Serialization.IFormatterConverter interface in the service
- CSet the BodyStyle parameter of the WebGet attribute on the operation to
- DSet the retum type of the operation to System.ServiceModel.Channels.Message.
How the community answered
(59 responses)- A14% (8)
- B3% (2)
- C5% (3)
- D78% (46)
Community Discussion
No community discussion yet for this question.