WCF REST Service

WCF REST Service - Self Host Windows Service - How to use % in URL  #angularjs #reactjs

  • I have a REST WCF service that has a method that gets a parameter as a string
  • its not a best pratice to use some special chars in urls.
  • Stack Overflow works best with JavaScript enabled
  • When I use the %23 in the Url I got an error message: Endpoint not found!

I’ve found this post:
http://www.hanselman.com/blog/ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx but it doesn’t work since I’m not hosting WCF on IIS I’m hosting it on Windows Service instead

@ng_real_ninja: WCF REST Service – Self Host Windows Service – How to use % in URL #angularjs #reactjs

I have a REST WCF service that has a method that gets a parameter as a string

When I use the %23 in the Url I got an error message: Endpoint not found! e.g:

If I use without % symbol it works fine

I Host the Service on Windows Service:

its not a best pratice to use some special chars in urls. please so consider not using them.

I found the solution thanks to this thread:

How can I pass slash and other ‘url sensitive’ characters to a WCF REST service?

WCF REST Service

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.