title: How to add parameter at the end of the URL
body: <p>i created one wcf service in c#.and i successful publish it.now i want to pass parameter in the URL and wcf will return data in json format.but i am trying than i am not getting any answer.so can you help me how add parameter at the end of the URL.</p>
  
  <p><strong><em>IwcfDataService.cs</em></strong></p>
  
  <pre><code>namespace RestWCFService
  {
  
      [ServiceContract]
      public interface IWcfDataService
      {
          [OperationContract]
          [WebInvoke(Method = "GET",
           ResponseFormat = WebMessageFormat.Json,
           BodyStyle = WebMessageBodyStyle.Wrapped,
           UriTemplate = "Search?keyword={keyword}")]
          List&lt;string&gt; Search(string keyword);
      }
  
      [DataContract]
      public class Detail
      {
  
          [DataMember]
          public string InnerText { get; set; }
  
          [DataMember]
          public string URL { get; set; }
  
          [DataMember]
          public string Title { get; set; }
  
  
      } 
  }
  </code></pre>
  
  <p><strong><em>WcfDataService.svc.cs</em></strong></p>
  
  <pre><code>namespace RestWCFService
  {
  
      public class WcfDataService : IWcfDataService
      {
  
          public List&lt;string&gt; Search(string keyword)
          {
                   SqlConnection sql_Search;
  
  
                   sql_Search = new SqlConnection("Data Source=FPBLWD0310;Initial Catalog=Support;Integrated Security=True");
                   sql_Search.Open();
                   SqlCommand SelectCommand = new SqlCommand("SELECT KeyWords,URLName,Title FROM finalCrawler Where (KeyWords Like '%" + keyword + "%')", sql_Search);
  
  
                   SelectCommand.ExecuteNonQuery();
                   SqlDataAdapter SQLAd = new SqlDataAdapter(SelectCommand);
                   SqlDataReader read = SelectCommand.ExecuteReader();
                   Detail De = null;
                   List&lt;string&gt; ListDetail = new List&lt;string&gt;();
                   while (read.Read())
                   {
                        De = new Detail { 
                         InnerText = read["KeyWords"].ToString(),
                         URL = read["URLName"].ToString(),
                         Title  = read["Title"].ToString()
                      };
                        var javaScriptSerializer = new
       System.Web.Script.Serialization.JavaScriptSerializer();
                        string jsonString = javaScriptSerializer.Serialize(De);
                        ListDetail.Add(jsonString);
                   }
  
                   sql_Search.Close();  
  
  
             return ListDetail;
  
          }
  </code></pre>
  
  <p><strong><em>URL</em></strong>
  so can you tell me how i add parameter at the end of the URL so i get the result</p>
  
  <pre><code> http://localhost:8434/WcfDataService.svc?singleWsdl
  </code></pre>