Describe the steps to enable transactions in a web method.
You have to use TransactionOption property of the WebMethod attribute.
Example:public class MyService : System.Web.Services.WebService
{
[System.Web.Services.WebMethod(TransactionOption=TransactionOption.RequiresNew)]
public string MyTransactionMethod()
{
// The transaction was successful...
ContextUtil.SetComplete();
return ContextUtil.TransactionId.ToString();
}
}