SlideShare a Scribd company logo
1 of 3
Download to read offline
Difference between basicHttpBinding and wsHttpBinding

Criteria      BasicHttpBinding                      WsHttpBinding
Security      This supports the old ASMX            This exposes web services using WS-*
support       style, i.e. WS-BasicProfile 1.1.      specifications.
Compatibility This is aimed for clients who do      As its built using WS-* specifications,
              not have .NET 3.0 installed and it    it
              supports wider ranges of clients.     does not support wider ranges of client
              Many of the clients like Windows      and it cannot be consumed by older
              2000 still do not run .NET 3.0. So    .NET version less than 3 version.
              older version of .NET can
              consume this service.
Soap version SOAP 1.1                               SOAP 1.2 and WS-Addressing
                                                    specification.
Reliable      Not supported. In other words, if     Supported as it supports WS-*
messaging     a client fires two or three calls     specifications.
              you really do not know if they
              will return back in the same
              order.
Default       By default, there is no security      As WsHttBinding supports WS-*, it
security      provided for messages when the        has
options       client calls happen. In other         WS-Security enabled by default. So the
              words, data is sent as plain text.    data is not sent in plain text.
Security      None                                  None
options       Windows – default authentication      Transport
              Basic                                 Message
              Certificate                           Transport with message credentials

Difference between Message and Transport level security in WCF

 Criteria                   Transport Security                 Message Security
 Scenarios when we          When there are no intermediate       When there are intermediate
 should be using one of     systems in between this is the       systems like one more WCF
 them                       best methodology.                    service through which message is
                                                                 routed then message security is
                            If it’s an intranet type of solution the way to go.
                            this is most recommended
                            methodology.
 Advantages                 Does not need any extra coding     Provides end to end security as
                            as protocol inherent security is   it’s not dependent on protocol.
                            used.                              Any intermediate hop in network
                                                               does not affect the application.
                            Performance is better as we can
                            use hardware accelerators to       Supports wide set of security
                            enhance performance.               options as it is not dependent on
                                                               protocol. We can also implement
                            There is lot of interoperability   custom security.
                            support and communicating
clients do not need to understand
                             WS security as it’s built in the
                             protocol itself.
 Disadvantages               As it’s a protocol implemented     Needs application refactoring to
                             security so it works only point to implement security.
                             point.
                                                                As every message is encrypted
                             As security is dependent on        and signed there are performance
                             protocol it has limited security   issues.
                             support and is bounded to the
                             protocol security limitations.     Does not support interoperability
                                                                with old ASMX webservices

Difference between Buffered transfer and Streamed transfer in WCF

  S.No       Buffered Transfer                     Streamed Transfer
  1          Target can process the message once   Target can start processing the data when it
             it is completely received.            is partially received.
  2          Performance will be good when         Performance will be good when message
             message size is small                 size is larger(more than 64K)
  3          Native channel shape is               Native channels are IRequestChannel and
             IDuplexSessionChannel                 IReplyChannel

Difference between WCF and Web Services

      S.No    Features          WebService                       WCF
      1       Hosting           It can be hosted in IIS          t can be hosted in IIS,
                                                                 windows activation
                                                                 service, Self-hosting,
                                                                 Windows service
      2       Programming       [WebService] attribute has       [ServiceContract]
                                to be added to the class         attribute has to be
                                                                 added to the class
      3       Model             [WebMethod] attribute            [OperationContract]
                                represents the method            attribute represents the
                                exposed to client                method exposed to
                                                                 client
      4       Operation         One-way, Request-                One-Way, Request-
                                Response are the different       Response, Duplex are
                                operations supported in          different type of
                                web service                      operations supported in
                                                                 WCF
      5       XML               System.Xml.serialization         System.Runtime.Seriali
                                name space is used for           zation namespace is
                                serialization                    used for serialization
      6       Encoding          XML 1.0,                         XML 1.0, MTOM,
                                MTOM(Message                     Binary, Custom
                                Transmission
                                Optimization Mechanism),
                                DIME, Custom
7   Transports   Can be accessed through      Can be accessed
                 HTTP, TCP, Custom            through HTTP, TCP,
                                              Named pipes,
                                              MSMQ,P2P, Custom
8   Protocols    Security                     Security, Reliable
                                              messaging,
                                              Transactions
9   State        Web Services are stateless   WCF Services can
    Management                                manage states

More Related Content

What's hot

Introduction to JMS and Message-Driven POJOs
Introduction to JMS and Message-Driven POJOsIntroduction to JMS and Message-Driven POJOs
Introduction to JMS and Message-Driven POJOs
Matt Stine
 
Remarks on Grids e-Science CyberInfrastructure and Peer-to-Peer ...
Remarks on Grids e-Science CyberInfrastructure and Peer-to-Peer ...Remarks on Grids e-Science CyberInfrastructure and Peer-to-Peer ...
Remarks on Grids e-Science CyberInfrastructure and Peer-to-Peer ...
Videoguy
 
07 a breaking_xml_signature_and_encryption_-_juraj_somorovsky
07 a breaking_xml_signature_and_encryption_-_juraj_somorovsky07 a breaking_xml_signature_and_encryption_-_juraj_somorovsky
07 a breaking_xml_signature_and_encryption_-_juraj_somorovsky
Sunny Sreekanth
 
Collaboration and Grid Technologies
Collaboration and Grid TechnologiesCollaboration and Grid Technologies
Collaboration and Grid Technologies
Videoguy
 
Architecture of message oriented middleware
Architecture of message oriented middlewareArchitecture of message oriented middleware
Architecture of message oriented middleware
Likan Patra
 

What's hot (16)

Java Message Service
Java Message ServiceJava Message Service
Java Message Service
 
Introduction to JMS and Message-Driven POJOs
Introduction to JMS and Message-Driven POJOsIntroduction to JMS and Message-Driven POJOs
Introduction to JMS and Message-Driven POJOs
 
MOM - Message Oriented Middleware
MOM - Message Oriented MiddlewareMOM - Message Oriented Middleware
MOM - Message Oriented Middleware
 
Remarks on Grids e-Science CyberInfrastructure and Peer-to-Peer ...
Remarks on Grids e-Science CyberInfrastructure and Peer-to-Peer ...Remarks on Grids e-Science CyberInfrastructure and Peer-to-Peer ...
Remarks on Grids e-Science CyberInfrastructure and Peer-to-Peer ...
 
Enterprise messaging with jms
Enterprise messaging with jmsEnterprise messaging with jms
Enterprise messaging with jms
 
Large Scale Deployment of SOA-P
Large Scale Deployment of SOA-PLarge Scale Deployment of SOA-P
Large Scale Deployment of SOA-P
 
Scalable Persistent Message Brokering with WSO2 Message Broker
Scalable Persistent Message Brokering with WSO2 Message BrokerScalable Persistent Message Brokering with WSO2 Message Broker
Scalable Persistent Message Brokering with WSO2 Message Broker
 
07 a breaking_xml_signature_and_encryption_-_juraj_somorovsky
07 a breaking_xml_signature_and_encryption_-_juraj_somorovsky07 a breaking_xml_signature_and_encryption_-_juraj_somorovsky
07 a breaking_xml_signature_and_encryption_-_juraj_somorovsky
 
Wcf Overview
Wcf OverviewWcf Overview
Wcf Overview
 
Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2
Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2
Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2
 
Collaboration and Grid Technologies
Collaboration and Grid TechnologiesCollaboration and Grid Technologies
Collaboration and Grid Technologies
 
Architecture of message oriented middleware
Architecture of message oriented middlewareArchitecture of message oriented middleware
Architecture of message oriented middleware
 
MQTT Overview
MQTT OverviewMQTT Overview
MQTT Overview
 
Nested Virtual Machines and Proxies
Nested Virtual Machines and Proxies Nested Virtual Machines and Proxies
Nested Virtual Machines and Proxies
 
MQTT Protocol: IOT Technology
MQTT Protocol: IOT TechnologyMQTT Protocol: IOT Technology
MQTT Protocol: IOT Technology
 
Secure Messages with IBM WebSphere MQ Advanced Message Security
Secure Messages with IBM WebSphere MQ Advanced Message SecuritySecure Messages with IBM WebSphere MQ Advanced Message Security
Secure Messages with IBM WebSphere MQ Advanced Message Security
 

Viewers also liked

Multiple choice questions with answers
Multiple choice questions with answersMultiple choice questions with answers
Multiple choice questions with answers
Classic Tech
 

Viewers also liked (14)

Asp.Net difference faqs- 4
Asp.Net difference faqs- 4Asp.Net difference faqs- 4
Asp.Net difference faqs- 4
 
sap cert
sap certsap cert
sap cert
 
Asp net
Asp netAsp net
Asp net
 
Interview Question of Aspdotnet
Interview Question of AspdotnetInterview Question of Aspdotnet
Interview Question of Aspdotnet
 
Dotnet differences
Dotnet differencesDotnet differences
Dotnet differences
 
OOPs difference faqs- 2
OOPs difference faqs- 2OOPs difference faqs- 2
OOPs difference faqs- 2
 
Dotnet difference between
Dotnet difference betweenDotnet difference between
Dotnet difference between
 
Javascript quiz. Questions to ask when recruiting developers.
Javascript quiz. Questions to ask when recruiting developers.Javascript quiz. Questions to ask when recruiting developers.
Javascript quiz. Questions to ask when recruiting developers.
 
Javascript quiz
Javascript quizJavascript quiz
Javascript quiz
 
Html interview-questions-and-answers
Html interview-questions-and-answersHtml interview-questions-and-answers
Html interview-questions-and-answers
 
Dotnet difference questions and answers compiled- 1(updated-2)
Dotnet difference questions and answers compiled- 1(updated-2)Dotnet difference questions and answers compiled- 1(updated-2)
Dotnet difference questions and answers compiled- 1(updated-2)
 
Javascript Question
Javascript QuestionJavascript Question
Javascript Question
 
Multiple choice questions with answers
Multiple choice questions with answersMultiple choice questions with answers
Multiple choice questions with answers
 
Bit%20 ch02
Bit%20 ch02Bit%20 ch02
Bit%20 ch02
 

Similar to Wcf difference faqs-1

Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Jorgen Thelin
 
Interoperability and Windows Communication Foundation (WCF) Overview
Interoperability and Windows Communication Foundation (WCF) OverviewInteroperability and Windows Communication Foundation (WCF) Overview
Interoperability and Windows Communication Foundation (WCF) Overview
Jorgen Thelin
 
Session 1: The SOAP Story
Session 1: The SOAP StorySession 1: The SOAP Story
Session 1: The SOAP Story
ukdpe
 
Microsoft NetMeeting and Windows XP Video Conferencing vs
Microsoft NetMeeting and Windows XP Video Conferencing vsMicrosoft NetMeeting and Windows XP Video Conferencing vs
Microsoft NetMeeting and Windows XP Video Conferencing vs
Videoguy
 
What is in a Good Contract? Designing Interfaces for Distributed Systems
What is in a Good Contract? Designing Interfaces for Distributed SystemsWhat is in a Good Contract? Designing Interfaces for Distributed Systems
What is in a Good Contract? Designing Interfaces for Distributed Systems
Schalk Cronjé
 

Similar to Wcf difference faqs-1 (20)

Wcf
WcfWcf
Wcf
 
Implementing Application Security
Implementing Application SecurityImplementing Application Security
Implementing Application Security
 
Basics of WCF and its Security
Basics of WCF and its SecurityBasics of WCF and its Security
Basics of WCF and its Security
 
WCF 35
WCF 35WCF 35
WCF 35
 
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
 
Interoperability and Windows Communication Foundation (WCF) Overview
Interoperability and Windows Communication Foundation (WCF) OverviewInteroperability and Windows Communication Foundation (WCF) Overview
Interoperability and Windows Communication Foundation (WCF) Overview
 
Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003
 
Protecting location privacy in sensor networks against a global eavesdropper
Protecting location privacy in sensor networks against a global eavesdropperProtecting location privacy in sensor networks against a global eavesdropper
Protecting location privacy in sensor networks against a global eavesdropper
 
Protecting location privacy in sensor networks against a global eavesdropper
Protecting location privacy in sensor networks against a global eavesdropperProtecting location privacy in sensor networks against a global eavesdropper
Protecting location privacy in sensor networks against a global eavesdropper
 
WCF
WCFWCF
WCF
 
Web service, wcf, web api
Web service, wcf, web apiWeb service, wcf, web api
Web service, wcf, web api
 
Session 1: The SOAP Story
Session 1: The SOAP StorySession 1: The SOAP Story
Session 1: The SOAP Story
 
What's New in IBM MQ - Version 8
What's New in IBM MQ - Version 8What's New in IBM MQ - Version 8
What's New in IBM MQ - Version 8
 
RabbitMQ.pptx
RabbitMQ.pptxRabbitMQ.pptx
RabbitMQ.pptx
 
Microsoft NetMeeting and Windows XP Video Conferencing vs
Microsoft NetMeeting and Windows XP Video Conferencing vsMicrosoft NetMeeting and Windows XP Video Conferencing vs
Microsoft NetMeeting and Windows XP Video Conferencing vs
 
Architecting Secure Service Oriented Web Services
Architecting Secure Service Oriented Web ServicesArchitecting Secure Service Oriented Web Services
Architecting Secure Service Oriented Web Services
 
Wcf faq
Wcf faqWcf faq
Wcf faq
 
What is in a Good Contract? Designing Interfaces for Distributed Systems
What is in a Good Contract? Designing Interfaces for Distributed SystemsWhat is in a Good Contract? Designing Interfaces for Distributed Systems
What is in a Good Contract? Designing Interfaces for Distributed Systems
 
Service Oriented Development With Windows Communication Foundation Tulsa Dnug
Service Oriented Development With Windows Communication Foundation   Tulsa DnugService Oriented Development With Windows Communication Foundation   Tulsa Dnug
Service Oriented Development With Windows Communication Foundation Tulsa Dnug
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorial
 

More from Umar Ali

More from Umar Ali (20)

Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web api
 
Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4
 
Difference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvc
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvc
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Wcf difference faqs-1

  • 1. Difference between basicHttpBinding and wsHttpBinding Criteria BasicHttpBinding WsHttpBinding Security This supports the old ASMX This exposes web services using WS-* support style, i.e. WS-BasicProfile 1.1. specifications. Compatibility This is aimed for clients who do As its built using WS-* specifications, not have .NET 3.0 installed and it it supports wider ranges of clients. does not support wider ranges of client Many of the clients like Windows and it cannot be consumed by older 2000 still do not run .NET 3.0. So .NET version less than 3 version. older version of .NET can consume this service. Soap version SOAP 1.1 SOAP 1.2 and WS-Addressing specification. Reliable Not supported. In other words, if Supported as it supports WS-* messaging a client fires two or three calls specifications. you really do not know if they will return back in the same order. Default By default, there is no security As WsHttBinding supports WS-*, it security provided for messages when the has options client calls happen. In other WS-Security enabled by default. So the words, data is sent as plain text. data is not sent in plain text. Security None None options Windows – default authentication Transport Basic Message Certificate Transport with message credentials Difference between Message and Transport level security in WCF Criteria Transport Security Message Security Scenarios when we When there are no intermediate When there are intermediate should be using one of systems in between this is the systems like one more WCF them best methodology. service through which message is routed then message security is If it’s an intranet type of solution the way to go. this is most recommended methodology. Advantages Does not need any extra coding Provides end to end security as as protocol inherent security is it’s not dependent on protocol. used. Any intermediate hop in network does not affect the application. Performance is better as we can use hardware accelerators to Supports wide set of security enhance performance. options as it is not dependent on protocol. We can also implement There is lot of interoperability custom security. support and communicating
  • 2. clients do not need to understand WS security as it’s built in the protocol itself. Disadvantages As it’s a protocol implemented Needs application refactoring to security so it works only point to implement security. point. As every message is encrypted As security is dependent on and signed there are performance protocol it has limited security issues. support and is bounded to the protocol security limitations. Does not support interoperability with old ASMX webservices Difference between Buffered transfer and Streamed transfer in WCF S.No Buffered Transfer Streamed Transfer 1 Target can process the message once Target can start processing the data when it it is completely received. is partially received. 2 Performance will be good when Performance will be good when message message size is small size is larger(more than 64K) 3 Native channel shape is Native channels are IRequestChannel and IDuplexSessionChannel IReplyChannel Difference between WCF and Web Services S.No Features WebService WCF 1 Hosting It can be hosted in IIS t can be hosted in IIS, windows activation service, Self-hosting, Windows service 2 Programming [WebService] attribute has [ServiceContract] to be added to the class attribute has to be added to the class 3 Model [WebMethod] attribute [OperationContract] represents the method attribute represents the exposed to client method exposed to client 4 Operation One-way, Request- One-Way, Request- Response are the different Response, Duplex are operations supported in different type of web service operations supported in WCF 5 XML System.Xml.serialization System.Runtime.Seriali name space is used for zation namespace is serialization used for serialization 6 Encoding XML 1.0, XML 1.0, MTOM, MTOM(Message Binary, Custom Transmission Optimization Mechanism), DIME, Custom
  • 3. 7 Transports Can be accessed through Can be accessed HTTP, TCP, Custom through HTTP, TCP, Named pipes, MSMQ,P2P, Custom 8 Protocols Security Security, Reliable messaging, Transactions 9 State Web Services are stateless WCF Services can Management manage states