You can use the ServiceMetadataBehavior attribute element to configure a behavior to apply to a service. This can be done with the following code:
<behaviors> <behavior> <ServiceMetadata httpGetEnabled="true" /> </behavior> </behaviors> <services> <service name="DemoService" <endpoint address="http://Joydip-PC:8080/Demo" contract="IDemoService" binding="basicHttpBinding" /> </endpoint> </service> </services>