Export (0) Print
Expand All Rules for the wxf:Send Message

The wxf:Send message (as specified in [MS-WSMV] section is used to send input to a pipeline or a RunspacePool. The following information is included in the message.




The Resource URI of the RunspacePool to which this send message is targeted. For more information see section

ShellID selector

The ShellID returned in the wxf:ResourceCreated message (see section

The body of the send message MUST contain a send data type as described in [MS-WSMV] section The data type MUST contain the following information.




Stdin - if messages are to be sent in the regular priority order.

Pr - to send a PIPELINE_HOST_RESPONSE message (see sections and RUNSPACEPOOL_HOST_RESPONSE message

The Name attribute of the stream element MUST be accordingly stdin or pr.

A wxf:Send message can be sent to a RunspacePool or pipeline. If the wxf:Send message is targeted to a pipeline it MUST contain the following attribute:






The CommandId returned in the wxf:CommandResponse message (see section

This attribute MUST NOT be specified if the wxf:Send message is targeted to a RunspacePool.

If the wxf:Send message is successfully received and processed by the server, the server MUST send either a success or a failure message. In either case a response is sent from the server. A wxf:SendResponse message, described in [MS-WSMV] section, is sent to notify success. A wxf:Fault message, described in [MS-WSMV] section, is sent to notify failure.

For any given RunspacePool or pipeline, there can only be one outstanding wxf:Send message targeted to that RunspacePool or pipeline. The PowerShell client MUST wait until the PowerShell server replies to the wxf:Send message with a wxf:SendResponse message or a wxf:Fault message before sending another wxf:Send message targeted to the same RunspacePool or pipeline.

Only the following PowerShell messages are allowed to be sent to the server using the wxf:Send message: SESSION_CAPABILITY (section, INIT_RUNSPACEPOOL (section, PUBLIC_KEY (section, SET_MAX_RUNSPACES (section, SET_MIN_RUNSPACES (section, CREATE_PIPELINE (section, GET_AVAILABLE_RUNSPACES (section, RUNSPACEPOOL_HOST_RESPONSE (section, PIPELINE_INPUT (section, END_OF_PIPELINE_INPUT (section, and PIPELINE_HOST_RESPONSE (section

© 2014 Microsoft