Answer Posted / bhuwanesh
To co-relate all the messages sent between two endpoints.
WCF sessions have the following main conceptual features:
* They are explicitly initiated and terminated by the
calling application.
* Messages delivered during a session are processed in
the order in which they are received.
* Sessions correlate a group of messages into a
conversation. The meaning of that correlation is an
abstraction. For instance, one session-based channel may
correlate messages based on a shared network connection
while another session-based channel may correlate messages
based on a shared tag in the message body. The features that
can be derived from the session depend on the nature of the
correlation.
* There is no general data store associated with a WCF
session.
When a service contract specifies that it requires a
session, that contract is specifying that all calls (that
is, the underlying message exchanges that support the calls)
must be part of the same conversation. If a contract
specifies that it allows sessions but does not require one,
clients can connect and either establish a session or not
establish a session. If the session ends and a message is
sent through the same channel an exception is thrown.
Except basichttpbinding, wsHttpBinding and NetTcpBinding
supports session.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of base address in wcf service? How it is specified?
Give an example of knowtype.
How do wcf services work?
How to deal with operation overloading while exposing the wcf services?
How many types of transport schemas are there in wcf?
Name the namespace that is used to access WCF service?
Where you use WSFederationHttpBinding in WCF?
What is wcf architecture?
Difference between wcf and web services?
What is service proxy in wcf?
Can you explain how end points, contract, address and bindings are done in wcf?
what is msmq binding? : Wcf data services
What is the messaging pattern? Which messaging pattern wcf supports?
can you explain fault contracts? : Wcf data services
How to do authentication in wcf?