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, navigate to Micro Integrator Project Explorer.

  4. Click on the + icon to open the Add Artifact pane.

    add artifact

  5. On the Add artifact pane, click Event Integration under Create an Integration to open the Event Integration Form.

  6. Select the Event Integration type.

  7. Once you complete the Event Integration Form, click Create.

The created inbound endpoint will be available in Project Overview under Event Integration.

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.

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

  1. To design the integration, go to MI Project Explorer > Event Integrations.

  2. Select the inbound endpoint you want to design.

  3. Click on the + icon to open the palette.

  4. Add the mediation artifacts from the palette and design the integration flow.

Follow the below steps to design the error sequence:

  1. Go to MI Project Explorer > Other Artifacts > Sequences.

  2. Select the previously-created error sequence you want to design.

  3. Add the mediation artifacts from the palette and design the integration flow.

Update the configurations

  1. Go to MI Project Explorer > Event Integrations.

  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 Event Integration form.

  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

Tutorials

Follow our tutorial on inbound endpoints:

Examples

Follow our examples on inbound endpoints: