Skip to content

Create a Proxy Service

Follow these instructions to create a Proxy Service artifact in the Micro Integrator for Visual Studio Code extension (MI for VS Code).

Create a new proxy service 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 proxy service, navigate to Micro Integrator Project Explorer.

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

    add artifact

  5. Click + View More under Create an Integration.

  6. Click Proxy under Other Artifacts to open the Proxy Service Form.

  7. Once you complete the Proxy Service Form, click Create.

Info

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

The newly-created proxy service will be stored in the <PROJECT_NAME>/src/main/wso2mi/artifacts/proxy-services folder of your integration project.

Design the integration

  1. Go to MI Project Explorer > Other Artifacts > Proxy Services.

  2. Click on the proxy service you created to open the Proxy View.

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

    source view

  4. Add the required mediators and connectors and design the integration flow.

Update the configurations

  1. Go to MI Project Explorer > Other Artifacts > Proxy Services.

  2. Click on the proxy service you want to edit to go to its Proxy View.

  3. Once you open the Proxy View, click the Edit icon to edit the proxy service.

    Edit proxy service

  4. Update the required parameters.

  5. Click Update.

See the following links for the list of transport parameters you can use:

See the complete list of service-level properties and parameters that you can configure.

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 proxy service.

Show source view

You can update the proxy service using this view.

source view

Examples

Follow our examples on proxy services: