title: OData and custom WCF WebGet methods
body: <p>I've created an OData endpoint (using entity framework, WCF data service)</p>
  
  <p>and added a custom test WebGet test method like so:</p>
  
  <pre><code>    [WebGet(UriTemplate = "{text}")]
      public IQueryable&lt;string&gt; SplitString(string text)
      {
          if (text == null) throw new DataServiceException("text not specified");
          var result = (from s in text.Split('-') orderby s select s);
          return result.AsQueryable();
      }
  </code></pre>
  
  <p>and a config line:</p>
  
  <pre><code>    config.SetServiceOperationAccessRule("SplitString", ServiceOperationRights.All);
  </code></pre>
  
  <p>However, no matter how I specify the url, I can not get the text param to be filled out. (it is always null).</p>
  
  <p>so:<br>
  <a href="http://localhost/myservice.svc/SplitString/testtext" rel="nofollow noreferrer">http://localhost/myservice.svc/SplitString/testtext</a></p>
  
  <p>does not work (It throws my Exception since the param is null).
  What is the correct url format (or UriTemplate) one should use to get the parameter to work?</p>
  
  <p>The only examples I found of odata and WebGet only have an example method which doesn't have any parameters.</p>