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…
Sign in or unlock 70-513 to reveal the answer and full explanation for question #84. The question stem and answer options stay visible for context.
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.
Unlock 70-513 to see the answer
You've previewed enough free 70-513 questions. Unlock 70-513 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.