开发学院网页设计JavaScript 在Javascript中调用WSS---下 阅读

在Javascript中调用WSS---下

 2010-09-14 13:43:17 来源:WEB开发网   
核心提示:UserGroup类下的部分常用方法SPAPI_UserGroup function SPAPI_UserGroup(baseUrl) { this.core = new SPAPI_Core(); this.serviceUrl = baseUrl + '/_vti_bin/UserGroup.asmx&

UserGroup类下的部分常用方法

SPAPI_UserGroup
function SPAPI_UserGroup(baseUrl)
{
    this.core = new SPAPI_Core();
    this.serviceUrl = baseUrl + '/_vti_bin/UserGroup.asmx';   
      
      this.getGroupCollectionFromUser = function(userLoginName)
      {
            var action = 'http://schemas.microsoft.com/sharepoint/soap/directory/GetGroupCollectionFromUser';
            var params = [userLoginName];
            var packet = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetGroupCollectionFromUser xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/"><userLoginName>{0}</userLoginName></GetGroupCollectionFromUser></soap:Body></soap:Envelope>';

            return this.core.executeRequest(this.serviceUrl, action, packet, params);
      }     
      
            
      this.getUserCollectionFromGroup = function(groupName)
      {
            var action = 'http://schemas.microsoft.com/sharepoint/soap/directory/GetUserCollectionFromGroup';
            var params = [groupName];
            var packet = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetUserCollectionFromGroup xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/"><groupName>{0}</groupName></GetUserCollectionFromGroup></soap:Body></soap:Envelope>';

            return this.core.executeRequest(this.serviceUrl, action, packet, params);
      }
      
      
      this.getUserInfo = function(userLoginName)
      {
           var action = 'http://schemas.microsoft.com/sharepoint/soap/directory/GetUserInfo';
            var params = [userLoginName];
            var packet = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetUserInfo xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/"><userLoginName>{0}</userLoginName></GetUserInfo></soap:Body></soap:Envelope>';

            return this.core.executeRequest(this.serviceUrl, action, packet, params);
      }
      
}  

1 2  下一页

Tags:Javascript 调用 WSS

编辑录入:爽爽 [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
更多精彩
    赞助商链接

    热点阅读
      焦点图片
        最新推荐
          精彩阅读