How to call a simple Web Service
<p>I have a C# file named Service1.cs containing the following:</p>

<pre><code>public class Service1 : System.Web.Services.WebService
{ 
    [System.Web.Services.WebMethod]
    public static String testMethod()
    {
       return "Hello";
    }
}
</code></pre>

<p>I put this snippet of code in my helloworld.html file:</p>

<pre><code>&lt;WebService Language="c#" Codebehind="Service1.cs"
    Class="Service1.Service1"&gt;
</code></pre>

<p>My directory is up at <a href="http://localhost:8000/" rel="nofollow noreferrer">http://localhost:8000/</a>, with a link to helloworld.html and a link to download Service1.cs </p>

<p>to what url must I go to to access the string returned by my testMethod()?</p>

<p>I've tried <a href="http://localhost:8000/helloworld/testmethod" rel="nofollow noreferrer">http://localhost:8000/helloworld/testmethod</a>, <a href="http://localhost:8000/helloworld/Service1/testmethod" rel="nofollow noreferrer">http://localhost:8000/helloworld/Service1/testmethod</a>,
but I can't figure out how to get to the string value returned from the web service.</p>

<p>Thanks in advance.</p>