public interface IService1
{
[OperationContract]
[WebGet(BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json, UriTemplate = "GetEmployeeA?id={id}")]
EmployeeA GetEmployeeA(int id);
[OperationContract]
[WebGet(BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json, UriTemplate = "GetEmployeeJSON?str={str}")]
string GetEmployeeJSON(string str);
}
I want to call the above methods using angularJS script... I tried httpget() with param:
$http({ url: yourURL, method: "GET", params: {: params:" ''} });