Microsoft® .NET Distributed Applications: Integrating XML Web Services and .NET Remoting
by Matthew MacDonald
An XML Web Service Singleton
You can easily adopt the example design pattern in a .NET Remoting scenario by using a component configured as a singleton. In an XML Web service, however, this option doesn’t appear. All XML Web services act intrinsically like single-call objects, and separate instances are created for each client. With this hard-wired design, is it possible to create an XML Web service that acts like a singleton?
The short answer is yes. You accomplish this trick by creating the XML Web service as an extra layer. The XML Web service then communicates with a singleton component. There are two possible ways for this communication to take place:
The XML Web service can communicate with a singleton component over .NET Remoting. This isn’t ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access