Skip to content

Instantly share code, notes, and snippets.

@migueldeicaza
Created November 10, 2009 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save migueldeicaza/230514 to your computer and use it in GitHub Desktop.
Save migueldeicaza/230514 to your computer and use it in GitHub Desktop.
<%@ WebService Language="c#" Codebehind="TestService.asmx.cs" Class="WebServiceTests.TestService" %>
using System;
using System.Web.Services;
using System.Web.Services.Protocols;
namespace WebServiceTests
{
public class TestService : System.Web.Services.WebService
{
[WebMethod]
public string Echo (string a)
{
object b = null;
return b.ToString ();
}
[WebMethod]
public int Add (int a, int b)
{
return a + b;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment