You must Sign In to post a response.
  • Category: WCF

    WCF vs Webservies

    Are you looking for a way to use WCF ? want to know why to use WCF ? then read this thread to know more about it

    Can any body tell the situation where used wcf in project?.Why wcf services why not web service?I learned lot of about wcf service.But did not get real time example.
  • #755442

    WCF is more secure than webservice.
    web service is XmlSerializer and WCF is DataContractSerializer which is better in Performance as XmlSerializer.
    web service support SOAP/XML and WCF TCP/binary & SOAP/XML.

    Kalandiyur Subramanian Mohan

  • #755447
    Hai Pinky,
    There are many things which the WCF service can achieve but it is lacking in the web services and due to that we need to go with the WCF rather than the web service application development.
    Actually services are built for the standalone functions and that functionality can be shared by many other clients irrespective of the technologies.
    So the services are technology independent. Any client application which is made using any technology should be able to consume and serves the purpose.
    Web services are only build for the communication between the HTTP. It means the client must be a web application and then only they can call the web-service using Http proptocol and send/receive the messages.
    But in WCF service, it can be build on many protocols using Http, tcp, msmq etc. So we just need to enable these and then whatever the type of client, they can communicate with their respective protocols. if the client is of tcp type, they can communicate through the tcp protocol and call my wcf service.
    Hope it will be helpful to you.

    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)

  • #755448
    Thanks to both of u.Can u pls tell the situation where u made wcf service?

  • #755457
    WebService only support http protocol whereas wcf services support not only http protocol but other protocols such as TCP/Named Pipes/ MSMQ. If your requirement is to write a service and be able to consume over other protocols then go for WCF service.Webservices can only be hosted from IIS whereas you can host a WCF service in a webservice/windows based application/Windows Activation Service.

    for more information, please go through the below link:

    Miss. Jain
    Microsoft Certified Technology Specialist in .Net

  • #755473
    WCF services are more reliable than Webservices,
    Here are scenarios you should use WCF

    - A secure service to process business transactions.
    - A service that supplies current data to others, such as a traffic report or other monitoring service.
    - A chat service that allows two people to communicate or exchange data in real time.
    - A dashboard application that polls one or more services for data and presents it in a logical presentation.
    - Exposing a workflow implemented using Windows Workflow Foundation as a WCF service.
    - A Silverlight application to poll a service for the latest data feeds.

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #755475

    instead of Webservice, better u have to use WCF at any situation because WCf have more flexible then webservice like its supports more protocol first like Http,TCp/IP,Named pipe , MSMQ etc.

    it have capacity to extent the protocal, if any protocal come in future also. then after creating service u can consume it any where like web application, window application, Silverlight,WPF application..

    it also supports more binding concept like HTTP binding , Http Dual binding , WS binding etc, thats why WFC is more flexible then Webservices ...


  • #755628
    WCF service is more reliable than WebService as it provide a great security to your application.
    Also There are some scenario in which you can use
    1. If you want to do Transaction Managment
    2. If you want to access your service within network then go for WCF service with nettcpbinding as it is very faster then other binding in intranet.
    3.if you want to host your application in different environment then you just change config file it will available
    4.You can provide security as you just give contract name while hosting so your code will be secure. (in webservice using wsdl we can get service information where as in wcf service we can hide location of service)
    5. For Heterogeneous technology there is great option of RESTFul WCF service.

    Umesh Bhosale

  • Sign In to post your comments