hi
I have my service contract below and implementation in other calls . Anyways , in the browser it's working find but when I try it in Windows Application it errors out . How can i use XML deserializer to get result out of both methods .
I have my service contract below and implementation in other calls . Anyways , in the browser it's working find but when I try it in Windows Application it errors out . How can i use XML deserializer to get result out of both methods .
Code:
[ServiceContract]
public interface ISer
{
[OperationContract(Name = "SayHi")]
[WebInvoke(Method = "GET", UriTemplate = "SayHi/{Name}")]
string SayHi(string Name);
[WebGet(BodyStyle = WebMessageBodyStyle.Wrapped,UriTemplate="/getEmployee")]
Employee getEmployee();
}
[DataContract]
public class Employee
{
[DataMember]
public int EmployeeId { get; set; }
[DataMember]
public string Name { get; set; }
}