3.2.5.3.5 Rules for the wxf:Send Message

A client uses the wxf:Send message to send data to a RunspacePool or pipeline on the server, as described in section 3.1.5.3.5.

Upon receiving this message, the server attempts to get the RunspacePool instance or pipeline instance, using the ShellID and the CommandID specified in the wxf:Send message (section 3.1.5.3.5) and the RunspacePool and the pipeline tables (section 3.2.1.1). If a corresponding RunspacePool or pipeline instance is not found, the server MUST send a wxf:Fault message.

If a corresponding RunspacePool or pipeline instance is found, the server extracts the data from the wxf:Send message and processes the data according to the rules described in section 3.2.5.1.

Upon successfully processing the message, the server MUST send a wxf:SendResponse message (section 3.2.5.3.6).

Only the following PSRP messages are allowed to be sent to the server using the wxf:Send message: SESSION_CAPABILITY (section 3.1.5.4.1), INIT_RUNSPACEPOOL (section 3.1.5.4.2), PUBLIC_KEY (section 3.1.5.4.3), SET_MAX_RUNSPACES (section 3.1.5.4.6), SET_MIN_RUNSPACES (section 3.1.5.4.7), CREATE_PIPELINE (section 3.1.5.4.10), GET_AVAILABLE_RUNSPACES (section 3.1.5.4.11), RUNSPACEPOOL_HOST_RESPONSE (section 3.1.5.4.16), PIPELINE_INPUT (section 3.1.5.4.17), END_OF_PIPELINE_INPUT (section 3.1.5.4.18), PIPELINE_HOST_RESPONSE (section 3.1.5.4.28).