Hello Webservice not working

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tshad

    #1

    Hello Webservice not working

    I have a simple Webservice (the infamous Hello program).

    This file is in wwwroot and gets called fine.
    *************** *************** *************** *************** **********
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitl ed Document</title>
    <script Language="Javas cript">
    var iCallID;

    function InitializeServi ce()
    {
    alert("Before useServer");

    service.useServ ice("http://localhost/Hello/Service1.asmx?w sdl","HelloServ ice
    ");
    service.HelloSe rvice.callServi ce("HelloWorld" );
    alert("After callService");
    }

    function ShowResult()
    {
    alert(event.res ult.value);
    }
    </script>
    </head>

    <body onload="Initial izeService()" id="service"
    style="behavior :url(webservice .htc)"
    onresult="ShowR esult">

    </body>
    </html>
    *************** *************** *************** *************** ************

    The webservice.htc file is also in wwwroot.

    I get the alert statements in InitializeServi ce. But the ShowResult never
    gets Called.

    I can call this http://localhost/Hello/Service1.asmx?wsdl fine from IE and
    it comes up correctly and runs fine.

    I have another service with the same problem, what am I missing?

    Thanks,

    Tom



Working...