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¶
-
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.
-
Create an integration project.
Hereafter, this project will be referred to as
<PROJECT_NAME>
. -
To add a new proxy service, navigate to Micro Integrator Project Explorer.
-
Click on the + icon to open the Add Artifact pane.
-
Click + View More under Create an Integration.
-
Click Proxy under Other Artifacts to open the Proxy Service Form.
-
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¶
-
Go to MI Project Explorer > Other Artifacts > Proxy Services.
-
Click on the proxy service you created to open the Proxy View.
-
Click on the + icon to open the palette.
-
Add the required mediators and connectors and design the integration flow.
Update the configurations¶
-
Go to MI Project Explorer > Other Artifacts > Proxy Services.
-
Click on the proxy service you want to edit to go to its Proxy View.
-
Once you open the Proxy View, click the Edit icon to edit the proxy service.
-
Update the required parameters.
-
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.
You can update the proxy service using this view.
Examples¶
Follow our examples on proxy services: