3.2.5.1 General Rules

The message processing rules specified in [MS-WSMV] section 3.1.4, are applicable here as well.

  1. The server uses wxf:ReceiveResponse (section 3.2.5.3.8) messages to send data to a client's RunspacePool or pipeline. While sending messages, the server MUST follow the rules specified in section 3.2.5.1.1.

  2. The server receives data from the client as part of wxf:Send (section 3.2.5.3.5), wxf:Create (section 3.2.5.3.12), or wxf:Command (section 3.2.5.3.3) messages and constructs a PSRP message according to the rules specified in section 3.2.5.1.2. The server determines whether a PSRP message is targeted to a RunspacePool or pipeline, according to the rules specified in section 3.2.5.4 and section 2.2.1.

  3. Some messages apply only to a RunspacePool, and are valid only when the RunspacePool is in certain states. The valid states for each message are listed in section 3.2.5.4. When a server receives a message for a RunspacePool that is not in the correct state, the server MUST send a wxf:Fault message ([MS-WSMV] section 2.2.4.43) to the client as a response to any pending wxf:Receive (section 3.1.5.3.7) messages, close the RunspacePool as specified in section 3.2.1.2.2, and discard any incoming messages for that specific RunspacePool.

  4. Some messages apply only to a pipeline, and are valid only when the pipeline is in certain states. The valid states for each message are listed in section 3.2.5.4. When a server receives a message for a pipeline that is not in the correct state, then the server MUST send a wxf:Fault message ([MS-WSMV] section 2.2.4.43) to the client as a response to any pending wxf:Receive (section 3.1.5.3.7) messages, stop the pipeline as specified in section 3.2.1.3.2, and discard the incoming messages for that specific pipeline.

  5. If a server receives a message that does not target any existing pipeline or RunspacePool, as per the data specified in section 3.2.1, then the server MUST send a wxf:Fault message ([MS-WSMV] section 2.2.4.43) to the client and ignore the message.