SAP NetWeaver Sink
Provided by: "Apache Software Foundation"
Support Level for this Kamelet is: "Preview"
Send requests to an SAP NetWeaver Gateway over HTTP.
Configuration Options
The following table summarizes the configuration options available for the sap-netweaver-sink Kamelet:
| Property | Name | Description | Type | Default | Example |
|---|---|---|---|---|---|
Command | Required The OData command to run against the gateway. It is sent as the request path. | string | FlightCollection(carrid='AA',connid='0017',fldate=datetime'2024-01-01T00%3A00%3A00') | ||
Password | Required The password to authenticate against the gateway. | string | |||
URL | Required The URL of the SAP NetWeaver Gateway server. | string | https://gateway.example.com/sap/opu/odata/sap/ZDEMO_SRV | ||
Username | Required The username to authenticate against the gateway. | string | |||
Flatten Map | When the returned Map holds a single entry, use that entry value as the message body. | boolean | true | ||
JSON | Return data as JSON. When false the gateway returns XML in Atom format instead. | boolean | true | ||
JSON As Map | Transform the returned JSON from a String into a Map in the message body. | boolean | true |
Dependencies
At runtime, the sap-netweaver-sink Kamelet relies upon the presence of the following dependencies:
-
camel:core
-
camel:sap-netweaver
-
camel:kamelet
Camel JBang usage
Prerequisites
-
You’ve installed JBang.
-
You have executed the following command:
jbang app install camel@apache/camel Supposing you have a file named route.yaml with this content:
- route:
from:
uri: "kamelet:timer-source"
parameters:
period: 10000
message: 'test'
steps:
- to:
uri: "kamelet:sap-netweaver-sink" You can now run it directly through the following command
camel run route.yaml SAP NetWeaver Sink Kamelet Description
The Command
The command property is the OData command to run against the gateway, and it becomes the request path.
The component reads the command from the CamelNetWeaverCommand header, which this Kamelet sets from the property. Setting it also overwrites any inbound value, so a caller cannot choose the request path.