WCF:Why we need the sessions?
Answer / 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 |
Explain use of Endpoints in WCF Service?
How many types of various programming approaches used for WCF?
What is wcf web service (ws) binding type?
What are the different modes of communication in wcf?
What do you mean by client?
WCF:Could the two-way service operations be used with queued binding?
What is the difference between transport level and message level security?
What is the purpose of base address in wcf service? How it is specified?
Could the iis-hosted wcf service make use of http transport security if the iis virtual derectory that contains the service does not support it?
what is wcf tcp binding type? : Wcf data services
What are the Advantages of hosting wcf in iis?
WCF:Can we use the public queues without the Windows domain? If cannot then why?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)