To host a service in IIS you need to create a file with extension .svc and add following lines in it
<%@ServiceHost Service="WCFService3.Service"%>
and following to your web.config with in
System.ServiceModel tag
<services>
<service name="WCFService3.Service">
<endpoint address="" binding="wsHttpBinding" contract="WCFService3.IService">
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
then create a client and add reference to this service from visual studio and this will automatically create endpoint for your client.
--Pankaj