buduan0 2016-01-19 06:46 采纳率: 0%
浏览 1592

sharepoint2010升级2013后 页面脚本调用 内置webservice失效

  alert(strname);
    xmlWrap.push("<?xml version='1.0' encoding='utf-8'?>");
    xmlWrap.push("<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/'>");
    xmlWrap.push("<soap:Body>");
    xmlWrap.push("<GetUserProfileByName xmlns='http://microsoft.com/webservices/SharePointPortalServer/UserProfileService'>");
    xmlWrap.push('<AccountName>'+strname+'</AccountName>');
    xmlWrap.push("</GetUserProfileByName>");
    xmlWrap.push("</soap:Body>");
    xmlWrap.push("</soap:Envelope>");
     xmlWrap = xmlWrap.join('');

    $.ajax({
        async:false,
        type:"Post",
        url:"/_vti_bin/userprofileservice.asmx",
        contentType:"text/xml; charset=utf-8",
        processData:false,
        data:xmlWrap,
        dataType:"xml",
        success:function (result) { //succes

         obj=result.xml;
        // alert(obj);

                     },
      error:function (result) { //succes

          alert(result.text+"Get Barch Fail!"); 

          }
    });
  • 写回答

1条回答

  • buduan0 2016-01-19 06:49
    关注

    服务器升级SP2013后 10的网站页面经常会有红色背景色的提示 升级2013 。我就点了升级。本来正常的脚本就取不到值咯。。。我要取的是userprofileservice中的值

    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?