Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 6th, 2012  |  syntax: None  |  size: 0.24 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. WCF REST Service: How to make query parameters required and return HTTP 400 on wrong values?
  2. [WebGet(UriTemplate = "GetData?value={value}")]
  3. [OperationContract]
  4. string GetData(int value);
  5. {
  6.     return string.Format("You entered: {0}, value);
  7. }