This documentation is for WSO2 Enterprise Integrator version 6.0.0 . 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

Key

  • 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


    Optional

    Tip

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

    Required

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

    Registry resource path of the endpoint reference


    Optional

    Tip

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

    Optional

    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
    languagejava
    var2:customer.name,var3:item.price
    Optional
    Transport headers

    Header values in the format

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

...