User1189133030 posted
hello everyone I'm trying to create the WCF rest service to upload the comments but my service will work fine if I use the space but when I use the enter or new line (\n or %oA) in the Uri template then the service will give the error like
HTTP Error 400. The request URL is invalid.
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "comment/{comments}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
string comment(string comments);
Any suggestions how to solve this issue thanks in advance