SYMBIO
01-21-2004, 04:46 PM
i dont really want the error "service is undefined" to pop up or even have an error....
here is my syntax>>
<script language="JavaScript">
function init()
{
service.useService("webservices.asmx?WSDL","HelloWorld");
}
</script>
onload="init()"
<%
Service1 one = new Service1();
Response.Write(one.HelloWorld());
%>
-----------------
[WebMethod]
public string HelloWorld()
{
"This is content coming from a webservice ASMX file.";
}
-----------------
thing is...it works...but i get the error 'service' is undefined.
is there something im doing thats wrong? is there a better way of using webservices?
here is my syntax>>
<script language="JavaScript">
function init()
{
service.useService("webservices.asmx?WSDL","HelloWorld");
}
</script>
onload="init()"
<%
Service1 one = new Service1();
Response.Write(one.HelloWorld());
%>
-----------------
[WebMethod]
public string HelloWorld()
{
"This is content coming from a webservice ASMX file.";
}
-----------------
thing is...it works...but i get the error 'service' is undefined.
is there something im doing thats wrong? is there a better way of using webservices?