Managing State

In the preceding section, titled Sending and Receiving Messages, you saw the basic code requirements for handling messages. Messages are used for requests or responses dealing with state. Sometimes, it may be necessary to change the state associated with a service. In this section, we will look at the ways you can manage state.

Posting Data to an Internal Port

In the last section, the Get operation was used to retrieve the state for a service. The state was posted to the main port for the service, which resulted in a SOAP message appearing in the Internet browser. Alternatively, state can be posted to an internal port. This is useful in cases in which data needs to be collected and saved until it is requested. Such data can be stored ...

Get Programming Microsoft® Robotics Studio 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.