Wednesday, 26 December 2012

A Beginner's Tutorial for Understanding Windows Communication Foundation (WCF) Part-2



Let us try to visualize what we have done so far. This class diagram will show the classes we created so far and decorated them with attributes to specify the data contract, service contract, and operation contracts.
 

We have our Contract part declared and defined. Now let us see how we can configure the other things. We need to make this service visible to the client applications and let the client applications extract the meta data information out of this service. To do this we need to specify the service behavior in the web.config.
<system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
 
Click here for next step.

No comments:

Post a Comment