.NET Overview
<%@ WebService Language="C#" Class="ProgWS.HelloWorldService" %> using System.Web.Services; namespace ProgWS { public class HelloWorldService: WebService { [WebMethod] public string HelloWorld() { return "Hello World"; } } }
WebMethod
can have
Description
: a text description.MessageName
: the name of the SOAP
message. EnableSession
: HTTP sessions. CacheDuration
: how long to cache
request/response pair. TransactionOption
: is it a database
transaction? (atomic, can be rolled back) 7 of 11