1

I tried all this answers

Solution1

Solution 2

But all this didn't worked for me , actually I am sending email address as a parameter to a WCF REST service method in URL.

Thanks

Community
  • 1
  • 1
BreakHead
  • 10,480
  • 36
  • 112
  • 165

1 Answers1

-1

Having the below implemenation i could get the email address passed in URL

[WebGet(UriTemplate ="{email}")]
public string GetString(string email)
{
     return "the email address is :" + email;
}

the URL i used to get data from resource is:

http://localhost/SampleService/test@test.com
Rajesh
  • 7,766
  • 5
  • 22
  • 35
  • 1
    the URL specification (RFC1738) forbids the use of the @ symbol in URLs because it's reserved for use within any type of URL. – Pawel Cioch Mar 03 '14 at 18:08