Looking for guidance on developing a web service where its methods must communicate with a host system using TCP/IP connections. The web methods accept various XML requests and format the request into a form expected by the host system; the response
from the host system is converted back into an XML response expected by the client that called the web service method.
Depending on the particular host system, the TCP/IP interface is such that a single connection is established "once" to a particular IP Address/Port and it is the responsibility of the web service to queue all req/rsp communication
sequencially through that one "pipe".
Other hosts may want the TCP/IP connection made one IP Address/Port and it be opened/closed on each req/rsp sequence. Yet other hosts might allow multiple connections make to the same IP Address/Port asynchronously (each has its own session).
My question is regarding making TCP/IP connections from a web service method. How would the web service make a single connection to a TCP/IP host which persists? Should I be looking into something other than web services (e.g. WCF)?
View Complete Post