webservice主站点调用成功,子站点调用失败?解决办法

webservice主站点调用成功,子站点调用失败?
如题目,发布到应用程序的webservice主站点,调用时成功..改到子站点时失败.请问为什么..子站点是直接写在page中的js

$.ajax({
async:false,
type:"POST",
url:"_Layouts/webservices/SMFileChangeReadList.asmx",
contentType:"text/xml; charset=utf-8",
processData:false,
data:xmlWrap,
dataType:"xml",
success:function (result) { //succes
          alert("成功!"); 
                    },
      error:function (result) { //succes
          alert("失败!"+result.d); 
          
          }
});



------解决方案--------------------
子站点是不能用_Layouts/webservices/SMFileChangeReadList.asmx
只有根站点能用。
你虽然没有带网站地址,但是在根站点和子站点Aajx会自动加上当前站点的URL.
你最好拼接一下URL
url:"http://yourrootsite/_Layouts/webservices/SMFileChangeReadList.asmx"