This project is read-only.

Project Description
This is Sharepoint 2010 project, after deploy it, you can use javascript (ajax) to access sharepoint list, call a custom web service. Everything are very easy!

What can you do with this project? 

  1. Easy to call (ajax) any web service from javascript: CallWS(serviceUrl, method, parametersArray);
  2. Support to call (ajax) sharepoint build-in web service /_vti_bin/lists.asmx (add list, add item, add attachment, , get all items by CAML query, update list, update item, check-in, check-out, ...)
  3. Extend to call (ajax) the other sharepoint build-in web service:
    • /_vti_bin/alerts.asmx: get or delete alerts.
    • /_vti_bin/authentication.asmx: check login mode, login by ajax (login via a popup)
    • /_vti_bin/copy.asmx : get, copy image file
    • /_vti_bin/meetings.asmx: create workspace, add, edit, delete meeting, ...
    • /_vti_bin/people.asmx: check is claims mode, resolve, search principals
    • /_vti_bin/permissions.asmx: add, get, update, remove permission
    • /_vti_bin/sites.asmx: create, delete web, export web, solution, worflow template, import web, ...
    • /_vti_bin/usergroup.asmx: get user, add, edit, delete group, get user in group, in web, in site, add user to group, ...
    • /_vti_bin/spsearch.asmx (search.asmx): full text search, search in file content, ...
    • /_vti_bin/versions.asmx: get all file versions, restore, delete version.
    • /_vti_bin/views.asmx: create, update, delete view, get all views, get view html, ...
    • /_vti_bin/webpartpages.asmx: get, add, remove webpart to webpart zone, ...
    • /_vti_bin/webs.asmx: get web data, get web url from page url, create content type, customize css, ...
    • etc

What are this project include?

  1. jquery library version 1.10.2
  2. spwebWS.js file: call any webservice by CallWS function
  3. spwebList.js file: add, edit, delete and query sharepoint list item by call sharepoint build-in web service
  4. CustomWebService.asmx file: a custom web service with add function
  5. call-sharepoint-web-service.html file: a demo page which you can add, edit, delete and get all sharepoint list items by ajax
  6. call-custom-web-service.html file: a demo page which you can call add method in CustomWebService.asmx service by ajax

How to deploy this project to Sharepoint 2010 server?

  1. Download project source code to your Sharepoint 2010 server
  2. Open this source code with Visual Studio 2010
  3. Click to project name (DemoCallWS), and press F4
  4. Change Site url property to your site
  5. Right mouse button on project name (DemoCallWS), and click Deploy
  6. Go to your sharepoint site, create a custom list, named as "Test"
  7. You can see demo page on http://your site/_layouts/DemoCallWS/call-sharepoint-web-service.html and http://your site/_layouts/DemoCallWS/call-custom-web-service.html

How to deploy this project by other way?

  1. Download project source code to your Sharepoint 2010 server
  2. Copy jquery-1.10.2.min.js, spwebWS.js, spwebList.js, call-sharepoint-web-service.html in \Layouts\DemoCallWS source folder to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\DemoCallWS folder
  3. Go to your sharepoint site, create a custom list, named as "Test"
  4. You can see "call sharepoint build-in web service" function on http://your site/_layouts/DemoCallWS/call-sharepoint-web-service.html page.

Last edited Oct 18, 2013 at 5:29 AM by lyld, version 12