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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

using sharepoint webservices

Posted By:      Posted Date: September 30, 2010    Points: 0   Category :SharePoint

I have very little knowledge about sharepoint object model and webservices used in sharepoint so i need someone to give a solution to my scenerio We have a farm in which my current site has a library and I want to show that library updates in other farm site, just the library not the entire site has to be updated everytime I make changes to my site farm library and my manager wants me to use webservices ,I have no idea abt this can anyone guide me



View Complete Post

More Related Resource Links

sharepoint webservices add task AssignedTo

Hello everyone, I am currently working on a biztalk project that has to create a task through the sharepoint webservices. Everything works fine except for the AssignedTo part. When I get the response of the getuserinfo() method, I notice that the userid I get is '87'. I then enter this userid in the AssignedTo part and send it to the updateListItems() method and the task gets created, but it is assigned to another person. When I create a task statically (by surfing to sharepoint and click add task..) and I view this task in CAML viewer I see that my userId in assignedTo is '218'. Why does the userinfo() method return an id '87' for my username while it actually is '218'? Is this a active directory problem or something like that? Hope someone can help thx

Xmlnode to Dataset/DataTable (GetListItems Sharepoint Webservices)


How to convert XmlNode to Dataset or Datatable and below is my code..

 DataSet dsList = new DataSet();

            Web_Reference.Lists listService = new Web_Reference.Lists();

            listService.PreAuthenticate = true;
            NetworkCredential Cred = new NetworkCredential();
            Cred.Domain = Domain;
            Cred.UserName = Login;
            Cred.Password = password;

            listService.Credentials = Cred;

            string listName = "{0F775034-47EA-486F-97AE-50C5BD9011B0}";
            string viewName = "{8F441557-E75B-4BAC-A3EF-B61FF0351DBE}"; ;
            XmlDocument xmlDoc = new System.Xml.XmlDocument();

            System.Xml.XmlNode ndQuery = xmlDoc.CreateNode(System.Xml.XmlNodeType.Element, "Query", "");
            System.Xml.XmlNode ndViewFields = xmlDoc.CreateNode(System.Xml.XmlNodeType.Element, "ViewFields", "");
            System.Xml.XmlNode ndQueryOptions = xmlDoc.CreateNode(System.Xml.XmlNodeType.Element, "QueryOp

Add items to sharepoint custom list using javascript with webservices



Here is the code snippet i was trying to insert item to sharepoint list but i conn't please help me what is wrong in my code and modify it.


function addlistitem(item)


var xmldoc;

var batch;

var FeedbackHTTP;

var ListName = 'Suggestions';

//The batch variable builds up the XML that we are going to submit to the SharePoint list via the SharePoint web service

batch = "<batch><method id='1' cmd='New'><field name='Title'>" + item + "</field></method></batch>";

xmldoc = '<?xml version="1.0" encoding="utf-8"?><soap:envelope xsi="http://www.w3.org/2001/XMLSchema-instance" xsd="http://www.w3.org/2001/XMLSchema" soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:body><updatelistitems xmlns="http://schemas.microsoft.com/sharepoint/soap/">'

xmldoc = xmldoc + '<listname>' + ListName + '</listname>';



xmldoc = xmldoc + '<updates>' + batch + '</updates></updatelistitems></soap:Body></soap:Envelope>';

FeedbackHTTP = new ActiveXObject("MSXML2.XMLHTTP.3.0");


Uploading a Document using Webservices in sharepoint 2010 won't checkin




I'm developping an application with vs2010 for Sharepoint 2010 that uploads documents via the webservice Copy.asmx, everything works fine except that even if i fill the required meta-datas the document in the library in sharepoint GUI appears as checked-out...

Does Any one knows why ??

Here is a part of my code :


       Dim webUrl As String = "http://mywebdev"
        Dim copyService As SPCopy.Copy = New SPCopy.Copy()
        copyService.Url = webUrl + "/_vti_bin/copy.asmx"
        copyService.Credentials = System.Net.CredentialCache.DefaultCredentials

        'Declare and initiates the Copy WebService members for uploading
        Dim sourceUrl As String = "C:\\Documentation\\using.pdf"
        Dim destinationUrl As String() = {"http://mywebdev/Docs/using.pdf"}
        Dim cResult1 As SPCopy.CopyResult = New SPCopy.CopyResult
        Dim cResult2 As SPCopy.CopyResult = New SPCopy.CopyResult

Webservices that are not exposed in current sharepoint online


Hi ,

From the SharePoint Online Standard Developer's guide Dec 2008, It is not clear if the if search related webservices are fully exposed or not!

According to document, Sharepoint online supports /_vti_bin/spsearch.aspx but it does not support /_vti_bin/search.aspx-->(Allows access to Enterprise Search results from client applications and Web applications outside of the context of a SharePoint Online site )

I am not able to understand the difference. Does Sharepoint Online support searching for documents using the Query and QueryEx methods exxposed in the Search Webservice ?

And Another Question , If I have to deploy some custom webservices in current model of sharepoint online, then Azuri is the only way to go ?





convert sharepoint webservices output xmlnode to dataset



Working on moss 2007. I am working on sharepoint usergroup webservices to retreive all usergroups from sharepoint site by using the GetAllUserCollectionFromWeb method which returns the output in xmlnode format. can you please help me how to convert this xmlnode to dataset.

here is the code.

webreferencename.UserGroup usrgrpService = new webreferencename.UserGroup();
           usrgrpService.Credentials =
           XmlNode result = usrgrpService.GetAllUserCollectionFromWeb();

its very urgent please me

Import multiple xml files(sharepoint webservices out put) to sql database using ssis



I am importing xml file in to sql server database i was able to do this task for single xml file in to sql database using ssis( i am using dataflow task, xml source, data conversion, oledb destination creating a ssis package).

Now i am having 3 xml files, need to store in different tables in sql server database can someone explain how i can import multiple xml files in to different tables in sql.can we create a xsd for each xml file while importing.

System.Security.SecurityException while accessing Sharepoint Webservices


Hi ,

We are consuming WSS3.0 webservices in our web application which is deployed in the same Sharepoint - 80 Front end web server.

--Sharepoint - 80 --> TestWebApp (using same shrepoint application pool, which uses farm administrator credentials)

-- IIS7 settings, Windows authentication and Asp.Net impersonation enabled for both sharepoint-80 and TestWebApp

When we try to access _vti_bin/Lists.asmx webservice from TestWebApp, we are getting the following message:

[SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessPermission.Demand() +54
   System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint) +204
   System.Net.HttpRequestCreator.Create(Uri Uri) +38
   System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase) +256
   System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri uri) +43
   System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri uri) +20

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Displaying SharePoint lists in Web Parts

When you create a built-in or custom list in Microsoft Windows SharePoint Services, Windows SharePoint Services creates a Web Part, a basic building block of a SharePoint site, to display that list. These Web Parts are called List View Web Parts. Windows SharePoint Services stores List View Web Parts in the site collection Web Part gallery. (The site collection Web Part gallery is the most central gallery of Web Parts for a work group. By default, the gallery name is the name of the site, such as "Our Team Site Web Part Gallery." )

Take a tour of your SharePoint site

What is a SharePoint site for?
A SharePoint site is a Web site that provides a central storage and collaboration space for documents, information, and ideas. A SharePoint site is a tool for collaboration, just like a telephone is a tool for communication, or a meeting is a tool for decision making. A SharePoint site helps groups of people (whether work teams or social groups) share information and work together. For example, a SharePoint site can help you:

Coordinate projects, calendars, and schedules.
Discuss ideas and review documents or proposals.
Share information and keep in touch with other people.

Six easy ways to customize your site using Web Parts in SharePoint

Becoming familiar with Web Part customization techniques gives you a range of page-customization choices. For example, you can customize your site's home page so that it displays the specific information that your team needs. You can rearrange the list items on the home page, add lists, and even change the images on the home page. As you become more familiar with Web Part Page customization techniques, you can build interactive Web Part Pages that makes the data in lists more dynamic and useful, and you can add new Web Parts that provide access to external data and Web services.

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

Out of the Depths of SharePoint's XML Hell

I described how a new open source tool called sporm significantly simplifies unit testing SharePoint. Making SharePoint unit testable is my absolute favorite feature of sporm because SharePoint is notoriously hard to unit test. But sporm provides other benefits as well and its ability to pull us out of the depths of verbose loosely typed XML hell and into LINQ excellence is next on my list of favorite features. So in this post I'll describe the pre-sporm technique of querying with CAML, how to query data using sporm, and finally how sporm supports SharePoint's unique architecture of allowing multiple content types per list and what that means to you.

Unit Testing SharePoint - Past, Present, and Sporm

As I described in SharePoint: The Wild West of Software Development there is a serious problem when you develop for SharePoint: ensuring quality through unit testing is really, really hard. And that's where a new open source tool just released today called sporm (SharePoint Object Relational Mapper) comes in. While sporm provides many benefits besides simplified unit testing I wanted to focus on this topic first, because sporm's approach, which models the entity framework in the way it supports POCO's, is a unique feature not available with other SharePoint tools like LINQ to SharePoint.

SharePoint Tutorial - Web Parts

A page in SharePoint is comprised of web parts the exist within zones. Web parts are available for just about everything. For example in the page below there are four web part highlighted by different colors. The purple web part displays a short list of the new announcements stored in the annoucements library. The pink web part displays events from a calendar within the site. The green web part displays an image from a location the user specifies. The gray web part displays a list of links from the links list on the site.

SharePoint Tutorial - Team Sites

Team sites are small web sites that are created to store everything about a particular thing. For example a site can be created for a department in an organization like human resources. I site can be created for a particular project. A site can even be created for a meeting. Everything about the thing (department, project, meeting) like documents, lists, calendars, etc. is stored in that site.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

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