title: How to pass variable to a web services in c#?
body: <p>I am calling a drupal web services from C#. My web service in drupal accepts two parameters. When i am checking my Web service with chrome extension POSTMAN. ITs working fine and returning me the data. But I have no idea how to pass those two values in web service. I have written my code like this</p>
  
  <pre><code>HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://careernet.localhost/rep-details/report_details/retrieve");
                      request.Method = "POST";
                      request.ContentType = "application/json";
                      request.Accept = "application/xml";
                      request.CookieContainer = new CookieContainer();                    
                      request.CookieContainer.Add(new Uri("http://careernet.localhost/rep-details/report_details/retrieve"), new Cookie("sid", sessid));
   WebResponse response = request.GetResponse();
  
                          Stream responseStream = response.GetResponseStream();
  
                          // Open the stream using a StreamReader for easy access.
                          StreamReader reader = new StreamReader(responseStream);
  
                          string responseFromServer = reader.ReadToEnd();
  </code></pre>
  
  <p>The above code is works well if I don't have to pass any value and calling web service which does not accept any thing. But if I have to pass two values then how can I do it ?</p>