- Rain or Shine, Oracle Integration Has You Covered
- Create a Service Connection to the Integration
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.
- On the Welcome page of your application, click Service Connections.
This displays the Service Connection button in the Services pane.
- Click the Service Connection button.
- In the Create Service Connection dialog, click Define by Endpoint as the source of your connection.
- 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. - Click Next.
- On the Service tab, verify the connection details, which include service base URL, service name, and service ID.
- 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.
-
- Click the Request tab, and add the request query parameters.
-
Click the URL Parameters tab.
-
In the Query Parameters section, click Add, then select Dynamic Parameter.
-
In the Name field, enter
q
. By default, Type is selected as String. -
Select the Required check box.
-
Similarly, add the
weatherkey
parameter. Notice that these are the same parameters that you defined in the trigger connection while creating your integration.
-
- Click the Test tab to test your connection.
-
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. -
Click Send.
The Response section displays the response data returned by the integration.
-
In the Response section, click Copy to Response Body. This copies the response data as a sample payload to the Response tab.
-
- Click the Response tab.Notice that the sample payload you copied is displayed.
- Click Create.The WeatherInfo service connection is now created.
- Close the service connection page.