Hi i Have created WCF service , Service contract and Data contract is pasted below
[ServiceContract]
public interface IRestWithXML
{
[OperationContract]
[WebInvoke(Method = "Post", UriTemplate = "DoWork", RequestFormat= WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
string DoWork(Test objtest);
[OperationContract]
[WebInvoke(Method = "Post", UriTemplate = "Method?test={strtest}", BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
string Method(Test objtest,string strtest);
}
[DataContract]
public class Test
{
[DataMember]
public string id { get; set; }
}
How should i test these services in .NET . I can able to test the methods by changing method "Post" to "GET" .
But I have to test these services using "Post" . Please guide me
thanks in advance !!!!