70-516 · Question #51
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Communication Foundation (WCF) Data Services service. WCF Data Services uses an authentication scheme that…
The correct answer is D. Insert the following code segment at line 06. See the full explanation below for the reasoning.
Question
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Communication Foundation (WCF) Data Services service. WCF Data Services uses an authentication scheme that requires an HTTP request that has the following header format:
GET /Odata.svc/Products(1) Authorization: WRAP access_token=”123456789” The application includes the following code. (Line numbers are included for reference only.) 01 public class program 02 { 03 Public void GetProducts() 04 { 05 var proxy = new MyDataServiceContext("..."); 06 ... 07 } 08 } You need to ensure that the correct authentication header is present when requests are made by using MyDataServiceContext. What should you do?
Options
- AInsert the following code segmen at line 06:
- BInsert the following code segment at line 06:
- CInsert the following code segmen at line 06:
- DInsert the following code segment at line 06:
How the community answered
(35 responses)- A9% (3)
- B3% (1)
- C17% (6)
- D71% (25)
Community Discussion
No community discussion yet for this question.