用js和webservice.htc 调用c#写的webservice 传到服务器不能用了。
是虚拟主机。
本机调试正常,传上去就报错。调用代码如下。用的是HellowWorld()
<script language="JavaScript">
function init(){
service.useService("test.asmx?WSDL","hw");
var iCallID;
iCallID = service.hw.callService(mathResults,"HelloWorld");
}
function mathResults(result){
if(result.error){
var xfaultcode = result.errorDetail.code;
var xfaultstring = result.errorDetail.string;
var xfaultsoap = result.errorDetail.raw;
alert(xfaultcode);
alert(xfaultstring);
alert(xfaultsoap);
}else{
alert(result.value);
}
}
</script>
</head>
<body onload="init()">
<div id="service" style="BEHAVIOR:url(webservice.htc)"></div>
</body>
webservice 需要在服务器上做什么设置吗?
问题点数:100、回复次数:1Top
1 楼goody9807(http://goody9807.cnblogs.com)回复于 2005-08-16 15:32:10 得分 100
http://blog.csdn.net/goody9807/articles/32465.aspxTop




