Response Dispatching
You can define several responses for an operation in your virtual service. The Dispatch Style setting of an operation specifies which response the virtual service returns in this or that case:
![]() |
The following dispatch types are available:
Dispatch Type | Description |
---|---|
Returns responses in series. | |
Returns a response selected randomly. | |
Selects a response based on the data of the incoming request. | |
Selects a response by retrieving data from the incoming request with an XPath expression. | |
Selects a response by running a script code. | |
Selects a response by pairing specific requests with specific responses. | |
Selects a response by analyzing parameters of the incoming request. Available for REST virtual services only. |
Virtual services can support a limited set of dispatch types:
The dispatch strategies are mutually exclusive and cannot be combined. If you need an advanced response selector, use the Script or Conditional Match dispatch type.