Applying service behavior

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>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset