title: Wcf post method with long json string parameter
body: <p>I am new to WCF.
  My question is how to pass a long JSON( here I am converting a data table into JSON string) string as parameter for WCF method?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>[OperationContract] [WebInvoke(Method = "GET",ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest, UriTemplate = "initiateConnection/{jsonData}/{sessionId}")] 
  void testMethod(string jsonData, string sessionId); 
  public void testMethod(string jsonData, String sessionId) { } 
  </code></pre>
  
  <p>When I call the <code>testMethod</code> with <code>jsonData</code> string which very long, it is showing </p>
  
  <blockquote>
    <p>Invalid URI: The Uri string is too long</p>
  </blockquote>
  
  <p>So in this case should I pass the JSON result using POST method? If yes then how to pass it?</p>