Accessing Data with Microsoft .NET Framework 4: LINQ to XML

  • 6/15/2011

Case Scenario

In the following case scenario, you will apply what you’ve learned in this chapter about querying data by using LINQ to XML. You can find answers to these questions in the “Answers” section at the end of this book.

Case Scenario: XML Web Service

You have been given the job of making a call to an XML web service and parsing the response. Your application is very object oriented, so you’ll need to convert objects to an XML request, and, when you receive the XML response, you will need to parse the response back to business objects that you can use in the application. Answer the following questions regarding the implementation of the XML web service.

  1. What approach will you take to create the XML web service request?

  2. What approach will you take to parse the XML web service response?