Как передать %0A в шаблоне uri с помощью службы WCF rest
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