Web Service vs WCF

Web Service vs WCF

18 Oct 2011 07:10:07

 Hi, 

  As we have HTTP Protocol why do you need other protocols and in real time where all other protocols are used.

  As we have Web Service for interoperability, why do you need WCF

 I tried in google but I couldn't find the appropriate answer

  Please give me the answers to the above questions

Fresh   Boarder
Posts: 10
From 07-Sep-2009
You're Points: 28
Bookmark
re:Web Service vs WCF25 Oct 2011 00:10:50

Hi,

Sorry for the late reply, The Web service and WCF completely different from there features and way of implementation, deployment as well. We could say the web service is first version of the plat form independent , limited features. But WCF is new and enhanced more and more features compare to web service. Therefore, WCF always best and easy to implement as well.

WCF like web service,It is very easy,

<system.serviceModel>
    <services>
        <service name="Namespace.Project" 
            behaviorConfiguration="returnFaults">
        <endpoint contract="WCFSample.IEchoContract" 
            binding="basicHttpBinding"/>
        <endpoint contract="IMetadataExchange" 
            binding="mexHttpBinding" address="mex">
        </endpoint>
    </service>
</services>

You should add binding as "basicHttpBinding".

Thank you

 

RRaveen
Gold  Boarder
Posts: 156
From 03-Jun-2009
You're Points: 1106
Bookmark
^ Scroll to Top