user1888859
user1888859

Reputation: 243

Is XML and SOAP over TCP stateful in a WebService?

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

Answers (1)

Eugene Osovetsky
Eugene Osovetsky

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

Related Questions