This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Indirect and Resolving endpoints are endpoint configurations with a key which refers to an existing endpoint.

Indirect Endpoint

The Indirect Endpoint refers to an actual endpoint by a key. This endpoint fetches the actual endpoint at runtime. Then it delegates the message sending to the actual endpoint. When endpoints are stored in the registry and referred, this endpoint can be used. The key is a static value for this endpoint.

XML Configuration

<endpoint key="" name="" />

Example

In the following Send mediator configuration, the PersonInfoEpr key refers to a specific endpoint saved in the registry.

<send>
	<endpoint key="PersonInfoEpr"/>
</send>

 

Resolving Endpoint

The Resolving Endpoint refers to an actual endpoint using a dynamic key. The key is an XPath expression.

1. The XPath is evaluated against the current message and key is calculated at run time.
2. Resolving endpoint fetches the actual endpoint using the calculated key.
3. Resolving endpoint delegates the message sending it to the actual endpoint.

When endpoints are stored in the registry and referred, this endpoint can be used.

The XPath expression specified in a Resolving endpoint configuration derives an existing endpoint rather than the URL of the endpoint to which the message is sent. To derive the endpoint URL to which the message is sent via an XPath expression, use the Header Mediator.

XML Configuration

<endpoint name="" key-expression="" />

Example

In the following Send mediator configuration, the endpoint to which the message is sent is determined by the get-property('Mail') expression.

<send>
	<endpoint key-expression="get-property('Mail')"/>
</send>
  • No labels