This documentation is for WSO2 Enterprise Integrator version 6.1.1 . View documentation for the latest release in the 6.x.x family and the latest release in the 7.x.x family.

All docs This doc

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. Create a BPMN process and a BPMN diagram. For instructions, see Creating a BPMN Process.
  2. Drag and drop a REST Task from the tools palette in the place where you need to invoke the endpoint. 
    Drag and drop a REST task
  3. Go to the Properties panel of the REST Task and select the Main config tab. 
  4. Enter values for the following fields appropriately, as shown in the example below.

    Field NameString ValueRequired/Optional
    Service URL 

    URL of the target endpoint



    You can give this instead of the Service Reference (EPR).


    BasicAuth UsernameUsername if the endpoints are securedRequired
    BasicAuth PasswordPassword for the username aboveRequired
    Service Reference (EPR)

    Registry resource path of the endpoint reference



    You can give this instead of the Service URL.


    HTTP MethodHTTP method (GET. POST, PUT or DELETE)Required
    Input PayloadRequest payloadOptional
    Output Variable nameName of the variable to save the responseOptional
    Output Variable Mappings

    Variable mappings to map JSON response content into multiple variables

    Code Block
    Transport headers

    Header values in the format

    Code Block
    {"headerName1":"headerValue1","headerName2":"header Value2"}