title: WCF URITemplate
body: <p>I have an operation contract in an existing WCF service. Now I am extending it for WCF REST api and I am getting a lot of errors, the last one in the service is around parameters. My code is as below:</p>
  <pre><code>    [OperationContract(Name = &quot;Messages&quot;, IsOneWay = true)]
      [WebInvoke(Method = &quot;GET&quot;,
          UriTemplate = &quot;/Messages/?id={id}&amp;fileId={fileId}&quot;,
          ResponseFormat = WebMessageFormat.Xml, 
          BodyStyle = WebMessageBodyStyle.Wrapped)]
      [Description(&quot;Inbound Message&quot;)]
      void Messages(Guid id, int fileId);
  </code></pre>
  <p>I am getting the error:</p>
  <blockquote>
  <p>The UriTemplate '/Messages/?id={id}&amp;fileId={fileId}' is not valid;
  each portion of the query string must be of the form 'name=value',
  when value cannot be a compound segment. See the documentation for
  UriTemplate for more details.*</p>
  </blockquote>
  <p>Please suggest what am I missing in the uritemplate?</p>