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 flink cdc无法实时同步mysql数据
  • ¥100 有人会搭建GPT-J-6B框架吗?有偿
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决