I'm facing problems trying to expose a simple WCF 4.0 service as a restful. It's SOAP part works fine. My operation contract is marked with [WebGet(UriTemplate="example/{param}")]
and my web.config contains the folowing
<services>
<service name="Service1">
<endpoint address="data" binding="webHttpBinding" behaviorConfiguration="web" contract="IService1"></endpoint>
</service>
</services>
<endpointBehaviors>
<behavior name="web">
<webHttp/>
</behavior>
</endpointBehaviors>
Actually the code was taken from here.But I'm always getting 404 error. What I'm doing wrong?