You are on page 1of 2

What is the difference between WCF and ASMX Web Services?

Simple and basic difference is that ASMX or ASP.NET web service is designed to send and receive messages using SOAP over HTTP only. While WCF can exchange messages using any format (SOAP is default) over any transport protocol (HTTP, TCP/IP, MSMQ, NamedPipes etc).
What is endpoint in WCF service? The endpoint is an Interface which defines how a client will communicate with the service. It consists of three main points: Address,Binding and Contract.

Address that defines where the service resides, Contract that defines what the service does and a Binding that defines how to communicate with the service.
What is WCF? WCF stands for Windows Communication Foundation. It is a Software development kit(SDK) for developing services on Windows. WCF is introduced in .NET 3.0. in the System.ServiceModel namespace. Please explain different modes of security in WCF?

Transport Level security it Provides security at the transport layer itself. Message Level Security- For Tranport level security, we actually ensure the transport that is being used , should be secured but in message level security, we actually secure the message. We encrypt the message before transporting it. It totally depends upon the requirements but we can use a mixed security mode also .

What are the main components of WCF? The main components of WCF are 1. Service class 2. Hosting environment 3. End point What is binding and how many types of bindings are there in WCF? A binding defines how an endpoint communicates to the world. A binding defines the transport (such as HTTP or TCP) and the encoding being used (such as text or binary). A binding can contain binding elements that specify details like the security mechanisms used to secure messages, or the message pattern used by an endpoint. WCF supports nine types of bindings.( Basic binding, TCP binding, Peer network binding, IPC binding, Web Service (WS) binding, Federated WS binding, Duplex WS binding, MSMQ binding, MSMQ integration binding). Or

The Binding is an attribute of an endpoint and it lets you configure transport protocol, encoding and security requirements

What are contracts in WCF? What are the types of contract available in WCF? In WCF, all services expose contracts. The contract is a standard way of describing what the service does. WCF defines four types of contracts. a)Service Contract: Describes what operations the client can perform. b)Operation Contract : defines the method inside Interface of Service. c)Data Contract: Defines what data types are passed d)Message Contract: Defines wheather a service can interact directly with messages

What is the proxy for WCF Service? A proxy is a class by which a service client can Interact with the service. By the use of proxy in the client application we are able to call the different methods exposed by the service What are three major points in WCF? We Should remember ABC. Address - Specifies the location of the service which will be like http://Myserver/MyService.Clients will use this location to communicate with our service. Binding - Specifies how the two parties will communicate in term of transport , encoding and protocols. Contract - Specifies the interface between client and the server.It's a simple interface with some attribute. What is binding and how many types of bindings are there in WCF? A binding defines how an endpoint communicates to the world. A binding defines the transport (such as HTTP or TCP) and the encoding being used (such as text or binary). A binding can contain binding elements that specify details like the security mechanisms used to secure messages, or the message pattern used by an endpoint. WCF supports nine types of bindings. Basic, TCP, IPC, WS, Duplex WS, MSMQ etc. What is IIS? IIS Manager is a graphical interface for configuring your application pools or your Web, FTP, SMTP, or NNTP sites. With IIS Manager, you can configure IIS security, performance, and reliability features. You can add or delete sites; start, stop, and pause sites; back up and restore server configurations; and create virtual directories for better content management, to name only a few of the administrative capabilities.

You might also like