Create a Service Connection to the Integration

Next, create a connection to the integration that your Visual Builder application will use to invoke the integration for getting weather information.

  1. On the Welcome page of your application, click Service Connections.

    This displays the Service Connection button in the Services pane.

  2. Click the Service Connection button.
  3. In the Create Service Connection dialog, click Define by Endpoint as the source of your connection.
  4. In the URL field, paste the endpoint URL of your integration that you copied earlier after activating the integration. For example:

    https://example.com:443/ic/api/integration/v1/flows/rest/GETWEATHER/1.0/weather

    Where:

    example.com refers to the host name of your Oracle Integration instance.

  5. Click Next.
  6. On the Service tab, verify the connection details, which include service base URL, service name, and service ID.
  7. Click the Authentication tab, and configure the user name and password.
    • From the Authentication Mechanism list, select Basic.

    • In the Username and Password fields, provide the credentials to access your Oracle Integration instance.

  8. Click the Request tab, and add the request query parameters.
    1. Click the URL Parameters tab.

    2. In the Query Parameters section, click Add, then select Dynamic Parameter.

    3. In the Name field, enter q. By default, Type is selected as String.

    4. Select the Required check box.

    5. Similarly, add the weatherkey parameter. Notice that these are the same parameters that you defined in the trigger connection while creating your integration.

  9. Click the Test tab to test your connection.
    1. In the Request section, enter values for query parameters. For example, in the Value field for the q parameter, enter 90210 and in the Value field for the weatherkey parameter, specify your API application key.

    2. Click Send.

      The Response section displays the response data returned by the integration.

      Description of integration_response.png follows
      Description of the illustration integration_response.png

    3. In the Response section, click Copy to Response Body. This copies the response data as a sample payload to the Response tab.

  10. Click the Response tab.
    Notice that the sample payload you copied is displayed.
  11. Click Create.
    The WeatherInfo service connection is now created.
  12. Close the service connection page.