nerdexam
Microsoft

70-516 · Question #117

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Communication Foundation (WCF) Data Services service. The service connects to a Microsoft SQL Server 2008…

The correct answer is C. Configure IIS to allow the PUT and DELETE verbs for the .svc Application Extension. An OData client accesses data provided by an OData service using standard HTTP. The OData protocol largely follows the conventions defined by REST, which define how HTTP verbs are used. The most important of these verbs are: GET: Reads data from one or more entities. PUT…

Deploying and Troubleshooting Data Access

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Communication Foundation (WCF) Data Services service. The service connects to a Microsoft SQL Server 2008 database. The service is hosted by an Internet Information Services (IIS) 6.0 Web server. The application works correctly in the development environment. However, when you connect to the service on the production server, attempting to update or delete an entity results in an error. You need to ensure that you can update and delete entities on the production server. What should you do?

Options

  • AAdd the following line of code to the InitializeService method of the service:
  • BAdd the following line of code to the InitializeService method of the service:
  • CConfigure IIS to allow the PUT and DELETE verbs for the .svc Application Extension.
  • DConfigure IIS to allow the POST and DELETE verbs for the .svc Application Extension.

How the community answered

(29 responses)
  • A
    10% (3)
  • B
    3% (1)
  • C
    83% (24)
  • D
    3% (1)

Explanation

An OData client accesses data provided by an OData service using standard HTTP. The OData protocol largely follows the conventions defined by REST, which define how HTTP verbs are used. The most important of these verbs are: GET: Reads data from one or more entities. PUT: Updates an existing entity, replacing all of its properties. MERGE: Updates an existing entity, but replaces only specified properties[2]. POST: Creates a new entity. DELETE: Removes an entity. Http Header Verbs Enumeration WCF Data Services Overview Introduction to OData Protocol

Topics

#WCF Data Services#IIS 6.0#HTTP verbs#PUT DELETE configuration

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice