HomeDigital EditionSys-Con RadioSearch Web Services Cd
B2B Beginning WS Business Process Management Case Studies Content Management Distributing Computing e-Business Electronic Data Interchange Enterprise Industry Insight Integration Interviews Java & Web Services .NET Portal Product Reviews Scalability & Performance Security SOAP Source Code UDDI Wireless WS Standards WS Tips & Techniques WSDL WS Editorials XML

Setting the Standards, by Hitesh Seth
WSJ Vol 01 Issue 03 - pg.46

	


Listing 1


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



Listing 2

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