M
Mr. x
Hello,
I have code like this :
file testWS.asmx :
-------------------------
<%@ WebService Language="C#" Class="HelloWorld" %>
using System;
using System.Web.Services;
public class HelloWorld : WebService {
[WebMethod] public String SayHelloWorld() {
return "Hello World";
}
}
file testWS.html :
----------------------
<html>
<head>
<script language = "JSCRIPT">
function init()
{
alert("0");
service.useService("testWS.asmx?WSDL","HelloWorld");
alert("1");
alert(service.HelloWorld.SayHelloWorld);
alert("2");
}
</script>
</head>
<body onload = "init()">
</body>
</html>
When I try running the testWS.html .
alert("0") is occurred, but alert("1") doesn't
(It seems that the script falls on the line :
service.useService("testWS.asmx?WSDL","HelloWorld") - why ?
)
Thanks
I have code like this :
file testWS.asmx :
-------------------------
<%@ WebService Language="C#" Class="HelloWorld" %>
using System;
using System.Web.Services;
public class HelloWorld : WebService {
[WebMethod] public String SayHelloWorld() {
return "Hello World";
}
}
file testWS.html :
----------------------
<html>
<head>
<script language = "JSCRIPT">
function init()
{
alert("0");
service.useService("testWS.asmx?WSDL","HelloWorld");
alert("1");
alert(service.HelloWorld.SayHelloWorld);
alert("2");
}
</script>
</head>
<body onload = "init()">
</body>
</html>
When I try running the testWS.html .
alert("0") is occurred, but alert("1") doesn't
(It seems that the script falls on the line :
service.useService("testWS.asmx?WSDL","HelloWorld") - why ?
)
Thanks