Importing Artifacts

Follow the instructions given below to import an integration artifact into WSO2 Integration Studio.

  1. Create an ESB project.
  2. Right-click the ESB project, click New, and select the type of artifact you want to import. For example, let's import a REST API artifact.

  3. Select the Import Artifact option and click Next.

  4. Browse for the configuration file of your artifact, specify the location to save the artifact.

  5. Click Finish

The artifacts are created in the src/main/synapse-config/<artifact_type> folder under the ESB project you specified.

Note

When importing artifacts with custom mediators, make sure the custom mediator name starts with the "CUSTOM_" prefix.

Example

    <proxy name="example_proxy" startOnLoad="true" transports="http" xmlns="http://ws.apache.org/ns/synapse">
        <target>
            <inSequence>
                <log level="custom"/>
                <CUSTOM_mymediator>
                    ...
                </CUSTOM_mymediator>
                <log level="full"/>
            </inSequence>
            <outSequence/>
            <faultSequence/>
        </target>
    </proxy> 
Top