.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Code Snippets >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Select All data from List Using Caml Query and sharepoint web services.

Posted By:Sagar Pardeshi       Posted Date: February 09, 2011    Points: 15    Category: SharePoint    URL: http://www.dotnetspark.com  

Select All data from List Using Caml Query and sharepoint web services.this use for out of box application

var arr = new Array();
var a = new ActiveXObject("Microsoft.XMLHTTP");
var id="dwt";
var listName="testlist";
var query="0";
if (a == null) return null;

var getListRequest = ""
+ ""
+ ""
+ ""
+ "" + listName + ""
+ "" + query + ""
+ ""
+ ""
+ "";

a.Open("Post", http://servername:100/sites/Test/_vti_bin/Lists.asmx?op=GetListItems", false);

a.setRequestHeader("Content-Type:", "text/xml; charset=utf-8");
a.setRequestHeader("SOAPAction:", "http://schemas.microsoft.com/sharepoint/soap/GetListItems");
var xmlDoc = a.responseXML;


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend