B.8. Use One-Way Operations

SOAP defines client-to-service communications in terms of messages. If you are using document-style messages, nothing says that every request must have a response message. In fact, WSDL defines a one-way operation as one that has a request message and no response message. This can be a very powerful design pattern for submitting requests or notifying services without requiring a response. A client sends a request and receives an empty HTTP response as soon as the request reaches your Web method. Of course you lose the ability to return data and error information, but there are some scenarios where this still makes sense. See Chapter 6 for details on implementing one-way operations and Chapter 13 for an example service ...

Get Real World XML Web Services: For VB and VB .NET Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.