title: How to use UriTemplate?
body: <p>I have below OperationContract in my WCF web service.</p>
  
  <pre><code>[OperationContract]
  [WebGet(UriTemplate = "/publisheddata/{number}/{*publication}")]
  Message GetPublished(String number, String publication);
  
  [OperationContract]
  [WebGet(UriTemplate = "/unpublisheddata/{number}/{*publication}")]
  Message GetUnPublished(String number, String publication);
  </code></pre>
  
  <p>I want to call one common method for above both OperationContract, means in the Service implementation code I will call the Stored Procedure on the basis UriTemplate called, I know i can easily do by adding extra attribute in above url, I don't want to ask user to put it from the url.</p>
  
  <p>Here I want to write condition on the basis of UriTemplate called, so my above code become as below:</p>
  
  <pre><code>[OperationContract]
  [WebGet(UriTemplate = "/publisheddata/{number}/{*publication}")]
  Message GetData(String number, String publication);
  
  [OperationContract]
  [WebGet(UriTemplate = "/unpublisheddata/{number}/{*publication}")]
  Message GetData(String number, String publication);
  </code></pre>
  
  <p>In my Service implementation, I want to check <strong>if unpublisheddata then GetUnPublished else if publisheddata then GetPublisheddata</strong></p>
  
  <p>Is it possible or suggest better ways to implement it?</p>