I need to configure an endpoint in my WCF service. My service URL is something like.
http://mysite.com/Services/Service1.svc
I want to give clients the URL http://mysite.com/MyService
to consume the service.
I'm tried below in my web.config
but it's not working and when I navigate to http://mysite.com/MyService
I'm getting the 404 error.
<service name="GateApplication.Services">
<host>
<baseAddresses>
<add baseAddress="http://mysite.com/Services/"/>
</baseAddresses>
</host>
<endpoint
address="http://mysite.com/MyService"
binding="wsHttpBinding"
contract="GateApplication.IService1" >
</endpoint>
</service>