Thursday, August 2, 2012

WCF 4.0 features



Expose WCF 4.0 Service as SOAP and REST

WCF 4.0 features

1.    Configuration less WCF, and automatic endpoints
2.    Default end points – wshttpBinding and NetTcpBindings
3.    Default behaviors

4.    file-less service activation. It's a new setting in your that looks something like this:

   

       
factory="System.ServiceModel.Activation.ServiceHostFactory"
             
relativeAddress="/YourService"
             
service="SomeNamespace.YourService"/>
   



Basically, all the information you'd have in the *.svc file (path, service to call) is in this config section now.
You should be able to call this service at http://yourserver/virtualdirectory/YourService

No comments: