Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > webservice - newbie question

Reply
Thread Tools

webservice - newbie question

 
 
Mr. x
Guest
Posts: n/a
 
      09-12-2003
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem to call a WEBSERVICE in another WEBSERVICE (AXIS/ TOMCAT) Cyril Java 2 06-01-2006 06:07 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 1 01-26-2006 12:05 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 0 01-26-2006 08:13 AM
WebService on Java server versus WebService on .NET Mr. x Java 2 10-09-2003 11:21 PM
use another webservice in a webservice Mr. x ASP .Net Web Services 0 09-26-2003 10:59 PM



Advertisments