Skip to content

Create an Inbound Endpoint

Follow these instructions to create an Inbound Endpoint artifact in the Micro Integrator for Visual Studio Code extension (MI for VS Code).

Create an inbound endpoint artifact

  1. Launch Visual Studio Code with the Micro Integrator for VS Code extension (MI for VS Code) installed.

    Info

    Follow the Install Micro Integrator for VS Code documentation for a complete installation guide.

  2. Create an integration project.

    Hereafter, this project will be referred to as <PROJECT_NAME>.

  3. To add a new inbound endpoint, go to Micro Integrator Project Explorer > Inbound Endpoints.

  4. Hover over Inbound Endpoints and click the + icon that appears to open the Inbound EP Form.

    Create inbound endpoint

  5. Select the inbound endpoint type.

  6. Provide details for the inbound endpoint artifact.

    Note

    Injecting Sequence Name and Error Sequence Name are mandatory fields. If you don't have any sequences created in the integration project, tick the checkbox to Automatically generate sequences, to generate new sequences for the inbound endpoint. Otherwise, you can select sequences that already exist in the project to the Injecting Sequence Name and Error Sequence Name fields from the dropdown.

  7. Once you complete the Inbound EP Form, click Create.

The created inbound endpoint will be available in the MI Overview under Inbound Endpoints. If you checked the option to Automatically generate sequences in the previous step, the automatically generated inbound sequence and error sequence will also be available in the MI Overview under Sequences.

Info

You can switch to the default Visual Studio Code Explorer to view the folder structure.

The newly-created inbound endpoint will be stored in the <PROJECT_NAME>/src/main/wso2mi/artifacts/inbound-endpoints folder of your integration project.

If you checked the option to Automatically generate sequences in the previous step, the inbound sequence and error sequence will also be created and stored in the <PROJECT_NAME>/src/main/wso2mi/artifacts/sequences folder of your integration project.

Design the integration

The integration flow for an inbound endpoint is defined within named sequences.

  1. To design the integration, go to MI Project Explorer > Inbound Endpoints.

  2. Select the inbound endpoint.

Alternatively, to open this view, go to MI Overview and select the inbound sequence you want to design under Sequences.

This will open the design view of the inbound endpoint. You can design the inbound sequence now.

Follow the below steps to design the error sequence:

  1. Go to MI Overview.

  2. Select the inbound error sequence you want to design under Sequences.

You can now add the mediation artifacts from the palette and design the integration flow.

Update the configurations

  1. Go to MI Project Explorer > Inbound Endpoints.

  2. Select the inbound endpoint you want to edit.

  3. On the inbound endpoint view, click the edit (pen) icon next to the inbound endpoint name to edit the inbound endpoint.

    Edit inbound endpoint

    This will open the Edit Listener interface.

  4. Once you update the details, click Update.

See the following links for the list of parameters for each inbound endpoint type:

Source View

Click the Show Source (</>) icon located in the top right corner of the VS Code to view the XML-based synapse configuration (source code) of the inbound endpoint. You can update the inbound endpoint using this view.

Edit inbound endpoint