Reputation: 243
TCP is a stateful protocol and it can maintain state between client and server interaction. SOAP maintain communication neutrality and can be used over any transport protocol such as HTTP, SMTP, TCP, or JMS, so if we are using SOAP as protocol for data exchange and it is maintained over TCP protocol than whether WebService will maintain its state while doing interaction with client.
Upvotes: 1
Views: 765
Reputation: 6541
Depends on the service. With WCF, it is possible to create both stateful and stateless services when using TCP. See http://msdn.microsoft.com/en-us/library/ms733040.aspx and ServiceContractAttribute.SessionMode for more info.
Upvotes: 3