title: How to get UriTemplate of a Rest Services
body: <p>I am trying to make a web service testing tool in C# 4.0,<br>
  For RestFull Services When the URI template is same as that of parameter name then I am able to hit the service
  eg,<br></p>
  
  <pre><code> [OperationContract]
   [WebInvoke(Method = "GET",
              ResponseFormat = WebMessageFormat.Json,
              BodyStyle = WebMessageBodyStyle.Wrapped,
              UriTemplate = "JSONDate/{id}"
              )]
   string JSONDate(string id);
  </code></pre>
  
  <p><br>
  Note: here method name and Uri template are same.</p>
  
  <p>But if URI template is not same as the method name and parameter then I am not able to hit the services,<br>
  eg</p>
  
  <pre><code>[OperationContract]
          [WebInvoke(Method = "GET",
              ResponseFormat = WebMessageFormat.Xml,
              BodyStyle = WebMessageBodyStyle.Wrapped,
              UriTemplate = "myXMLData/{id}/{id2}/{value}")]
          string XMLData(string Id,string id2,string value);
  </code></pre>
  
  <p><br>
  Also the fact that URI template can be designed in multiple ways possess a challenge in setting up the request string.</p>
  
  <p><br>
  Is there any way that I can get the URI template so that I can design my request string by parsing the URI template.</p>