-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServiceInterface.cs
More file actions
25 lines (24 loc) · 853 Bytes
/
ServiceInterface.cs
File metadata and controls
25 lines (24 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
namespace HiCareService
{
[ServiceContract]
interface ServiceInterface
{
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Account/login/json/{username}/{password}")]
ValidatedUser LoginUserJson(string username, string password);
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Xml,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Account/login/xml/{username}/{password}")]
ValidatedUser LoginUserXML(string username, string password);
}
}