Working with Endpoints via WSO2 ESB Tooling
You can create a new endpoint or import an existing endpoint from an XML file, such as a Synapse configuration file using WSO2 ESB tooling.Â
You need to have WSO2 ESB tooling installed to create a new endpoint or to import an existing endpoint via ESB tooling. For instructions on installing WSO2 ESB tooling, see Installing WSO2 ESB Tooling.
When you create an endpoint, you need to give it a name, at which point it appears in the Defined Endpoint section of the tool palette in WSO2 ESB tooling. To use a defined endpoint, simply drag and drop the endpoint from the palette to the sequence, proxy service, or other artifact where you want to reference it.
Creating a new endpoint
Follow these steps to create a new endpoint. Alternatively, you can import an existing endpoint.
- In Eclipse, click the Developer Studio menu and then click Open Dashboard. This opens the Developer Studio Dashboard.
- Click Endpoint on the Developer Studio Dashboard.
- Select Create a New Endpoint and click Next.
- Type a unique name for the endpoint, and then specify the type of endpoint you are creating.
- Do one of the following:
- To save the endpoint in an existing ESB Config project in your workspace, click Browse and select that project.
- To save the endpoint in a new ESB Config project, click Create new Project and create the new project.
- To save the endpoint in a registry resource project, click Make this a Dynamic Endpoint, click the Browse button next to Save endpoint in and select the registry, and then select the registry (Configuration or Governance) where you want to save the endpoint. Lastly, type the endpoint name in the Registry Path box.Â
- In the Advanced Configuration section (which changes based on the type of endpoint you are creating), specify any additional options you need for that endpoint type.
- Click Finish. The endpoint is created in theÂ
endpoints
 folder under the ESB Config or Registry Resource project you specified, and the endpoint opens in the editor.
Importing an endpoint
Follow these steps to import an existing endpoint from an XML file such as a Synapse configuration file, into an ESB Config project. Alternatively, you can create a new endpoint.
- In Eclipse, click the Developer Studio menu and then click Open Dashboard. This opens the Developer Studio Dashboard.
- Click Endpoint on the Developer Studio Dashboard.
- Select Import Endpoint and click Next.
- Specify the endpoint file by typing its full path name or clicking Browse and navigating to the file.
- In the Save Endpoint In field, specify an existing ESB Config project in your workspace where you want to save the endpoint, or click Create new Project to create a new ESB Config project and save the endpoint there. Â
- In the Advanced Configuration section, select the endpoints you want to import.Â
- Click Finish. The endpoints you selected are created in theÂ
endpoints
 folder under the ESB Config project you specified, and the first endpoint opens in the editor.