title: How to call Rest ful webservice using httpWebRequest and PostData
body: <p>I have created a restful webservice like below </p>
  
  <p><strong>Opertation Contract</strong></p>
  
  <pre><code>[WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped,ResponseFormat = WebMessageFormat.Json, UriTemplate = "/PushNotification")]
          [OperationContract]
          void PushNotification(MailInformation mailInformations);
  </code></pre>
  
  <p><strong>MailInformations class</strong></p>
  
  <pre><code> [DataContract]
      public class MailInformation
      {
          [DataMember]
          public List&lt;string&gt; To { get; set; }
          [DataMember]
          public string SenderEmail { get; set; }
          [DataMember]
          public string Subject { get; set; }
      }
  </code></pre>
  
  <p>How can i call this service using HttpWebrequest ?</p>
  
  <p><strong>My Service Url</strong></p>
  
  <p>localhost/Chat/ChatService.svc/PushNotification</p>