Listing 1

Request XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SayHello xmlns="http://www.silverline.com/Webservices"/>
  </soap:Body>
</soap:Envelope>
Response XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SayHelloResponse xmlns="http://www.silverline.com/Webservices">
      <SayHelloResult>Hello World from .NET</SayHelloResult>
    </SayHelloResponse>
  </soap:Body>
</soap:Envelope>

Listing 2

<%@ WebService Language="C#" class="Silverline.HelloService" %>
namespace Silverline
{
        using System;
        using System.Web.Services;
        [WebService(Namespace="http://www.silverline.com/Webservices",
                      Description="Simple Web Service")]
        public class HelloService : WebService
        {
                [WebMethod(Description="Simple Web Services Method")]
                public String SayHello()
                {
                        return "Hello World from .NET";
                }
        }
}