Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Microsoft SharePoint 2010 Development with Visual Studio 2010 Expert Cookbook

You're reading from  Microsoft SharePoint 2010 Development with Visual Studio 2010 Expert Cookbook

Product type Book
Published in Sep 2011
Publisher Packt
ISBN-13 9781849684583
Pages 296 pages
Edition 1st Edition
Languages
Author (1):
Balaji Kithiganahalli Balaji Kithiganahalli
Profile icon Balaji Kithiganahalli

Table of Contents (15) Chapters

Microsoft SharePoint 2010 Development with Visual Studio 2010: Expert Cookbook
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
1. Lists and Event Receivers 2. Workflows 3. Advanced Workflows 4. List Definitions and Content Types 5. Web Parts 6. Web Services and REST 7. Working with Client Object Model Index

Getting data through REST


In this recipe, we will issue a GET request to SharePoint from the browser using REST service to get data.

Getting ready

Open Internet Explorer. In this recipe, we will be using the default installation of Internet Explorer 9 (IE9). It should work the same with Internet Explorer 8 (IE8).

How to do it...

In order to get data through REST, adhere to the following steps:

  1. In Internet Explorer navigate to Tools | Internet Options | Content Tab | Feeds and Web slice settings. Make sure you have checked the Turn on feed reading view in the Advanced section.

  2. Issue a Get request to your SharePoint site: http://YOURSERVERNAME/_vti_bin/ListData.svc. Make sure to substitute your server name in the URL.

  3. This should display all the lists information from the site you are referring to in the URL. In our case, we are using a team site and the following screenshot shows the output:

  4. The result is an XML response in Atom format.

How it works...

When you issue a GET request to SharePoint through...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}