using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using System.Web.Script.Services;
using Cli.Lsp.Web2Services.RatingService.Bll.Adapters;
///
/// Summary description for RatingService_JSONP
///
[WebService(Namespace = "http://ws.cli.det.nsw.edu.au/ns/Web2Services/RattingService",
Description = "Ratting service, this service will be plugable in any application, to support rating with comments, including reports and summaries")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class RatingService_JSONP : RatingService
{
[WebMethod, ScriptMethod(UseHttpGet= true)]
public override int GetNoOfLiked(int applicationID, string applicationItemID)
{
return RateServiceAdapter.GetNoOfLiked(applicationID, applicationItemID);
}
[WebMethod, ScriptMethod(UseHttpGet = true)]
public override void Rate(int applicationID, string applicationItemID, int rate, string comment, string userID)
{
RateServiceAdapter.LightRate(applicationID, applicationItemID, rate, comment, userID);
}
[WebMethod(Description = @"Sample Please remove it")]
[ScriptMethod(UseHttpGet=true)]
public string[] Sample()
{
return new string[] { "AAA", "BBB", "CCC", "DDD" };
}
}
No comments:
Post a Comment