PrepAway - Latest Free Exam Questions & Answers

Which line of code should you use?

You use Microsoft .NET Framework 4 to develop an application that exposes a WCF Data Services
endpoint. The endpoint uses an authentication scheme that requires an HTTP request that has the
following header format.
GET /OData.svc/Products(l)
Authorization: WRAP access_token “123456789”
You add the following method to your DataService implementation.

Protected Overrides Sub OnStartProcessingRequest( ByVal args As
System.Data.Services.ProcessRequestArgs)

End Sub
You need to ensure that the method retrieves the authentication token. Which line of code should
you use?

PrepAway - Latest Free Exam Questions & Answers

A.
Dim token As String =
args.OperationContext.RequestHeaders(“Authorization”)

B.
Dim token As String =
args.OperationContext.RequestHeaders(“URAP access token”)

C.
Dim token As String =
args.OperationContext.ResponseHeaders(“WRAP access token”)

D.
Dim token As String =
args.OperationContext.ResponseHeaders(“Authorization”)

Explanation:
OData and Authentication – OAuth WRAP
(http://blogs.msdn.com/b/astoriateam/archive/2010/08/19/odata-and-authentication-part-8-
oauth-wrap.aspx)


Leave a Reply