Microsoft
70-515 · Question #171
70-515 Question #171: Real Exam Question with Answer & Explanation
Sign in or unlock 70-515 to reveal the answer and full explanation for question #171. The question stem and answer options stay visible for context.
Question
You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML. Which two actions should you perform (Choose 2)
Options
- AAdd the WebGet attribute to the service contract.
- BSet WebOperationContext.Current.OutgoingRequest.ContentType to "text/xml" in the
- CAdd the WebInvoke attribute to the service contract.
- DSet WebOperationContext.Current.OutgoingResponse.ContentType to "text/xml" in the
Unlock 70-515 to see the answer
You've previewed enough free 70-515 questions. Unlock 70-515 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.