Ans) PerCall
Wednesday, 10 April 2013
Which protocol is used for platform-independent communication in WCF
Ans) SOAP(Simple Object Access Protocal) , which is directly supported from WCF
Which NameSpace is required in a class to use DataContract or DataMember attribute for a class or Properties
using System.Runtime.Serilization;
Which is the right binding for RESTful communication and other situations where SOAP isn't required in WCF
Ans)webHttpBinding is good for Restful communication and other situations where SOAP(simple object access protocol) isn't required. Because Information/Message is transferred directly through HTTP or HTTPS.
Which Contract is used to document the errors occurred in the service to client in WCF
Ans) Fault Contract is used to document the errors occurred in the service to client.
what is WCF in .Net
W.C.F Stands for Windows Communication Foundation. It is a unified Framework for rapidly building Service Oriented Applications. It is provided as Framework with it's own run time and libraries. .Net component is executed using CLR but the request/response will be handled by WCF Framework.It is built on top of .Net Framework.
Example :
Example :
- WCF(MS Standard, Windows Standard)
- To develop Distributed Programming.
- .Net Program--Any user
- With their own propitiatory methods
what is Distributed Programming
Communication between multiple server application or services in Network is known as Distributed Programming.
- Some Share common protocols(SOAP,WSDL).[note: here SOAP Stands for Simple object Access Protocols and WSDL Stands for Webservice Description Language] but not a common platform. example : Facebook, twitter and orkut etc.....
- Some Share common protocols and common platform like .Net
what is an EndPoint in WCF
EndPoint :
These is a structure which provides information about our service(program). EndPoint includes three things and they are easily reffered as ABC
A ----> Address
B ----> Binding
C ----> Contract
Address : A Network Address Where the end point resides.
example: http://silverkey.com/services/demo.svc
Binding : Specifies How the endpoint communicates with the world.
Defining things Like :
- Transport (eg: HTTP,TCP).
- Encoding (Text,Binary,MTOM).
- Security options( SSL,Message security)
Examples :
BasicHttpBinding , NetTcpBinding,NetMSMQBinding, NetNamePipeBinding.
Contract :
Specifies What the EndPoint Communicates.
Defining Things Like :
-> Message Exchange patterns (one-way, duplex way............)
-> Service operations.
-> Behaviours (Exchange meta-Data, Impersonatation, Authorization)
These is a structure which provides information about our service(program). EndPoint includes three things and they are easily reffered as ABC
A ----> Address
B ----> Binding
C ----> Contract
Address : A Network Address Where the end point resides.
example: http://silverkey.com/services/demo.svc
Binding : Specifies How the endpoint communicates with the world.
Defining things Like :
- Transport (eg: HTTP,TCP).
- Encoding (Text,Binary,MTOM).
- Security options( SSL,Message security)
Examples :
BasicHttpBinding , NetTcpBinding,NetMSMQBinding, NetNamePipeBinding.
Contract :
Specifies What the EndPoint Communicates.
Defining Things Like :
-> Message Exchange patterns (one-way, duplex way............)
-> Service operations.
-> Behaviours (Exchange meta-Data, Impersonatation, Authorization)
![]() |
EndPoint |
which bindings/bindings doesn't support reliable session in WCF
Ans) basicHttpBinding doesn't support Reliable session
What are the Three Message Patterns available in WCF
There are Three types of Message patterns available in WCF. Those are
- One Way Contract
- Duplex Contract
- Request-Reply Contract
Subscribe to:
Posts (Atom)