You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: guides/messaging/event-broker.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ Configure your application to use the `event-broker` messaging service.
71
71
[Learn more about `cds.env` profiles](../../node.js/cds-env#profiles){.learn-more}
72
72
73
73
::: tip Local Testing
74
-
Since SAP Event Broker sends events via HTTP, local
74
+
Since SAP Event Broker sends events via HTTP, you won't be able to receive events on your local machine unless you use a tunneling service. Therefore we recommend to use a messaging service of kind [`local-messaging`](../../node.js/messaging#local-messaging) for local testing.
Copy file name to clipboardexpand all lines: guides/messaging/index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@ The message payload is in the `data` property of the inbound `msg` object.
192
192
193
193
194
194
::: tip
195
-
To have more control over imported service definitions, you can set the `model` configuration of your external service to a cds file where you define the external service and only use the imported definitions your app needs. This way, plugins like [Open Resource Discovery (ORD)](/plugins/#ord-open-resource-discovery) know which parts of the external service you actually use in your application.
195
+
To have more control over imported service definitions, you can set the `model` configuration of your external service to a cds file where you define the external service and only use the imported definitions your app needs. This way, plugins like [Open Resource Discovery (ORD)](../../plugins/#ord-open-resource-discovery) know which parts of the external service you actually use in your application.
Copy file name to clipboardexpand all lines: node.js/messaging.md
+8-5
Original file line number
Diff line number
Diff line change
@@ -405,13 +405,14 @@ If you enable the [cors middleware](https://www.npmjs.com/package/cors), [handsh
405
405
406
406
Use this if you want to communicate using [SAP Event Broker](https://help.sap.com/docs/event-broker).
407
407
408
-
You need to install the package [`@cap-js/event-broker`](https://github.com/cap-js/event-broker).
408
+
The integration with SAP Event Broker is provided using the plugin [`@cap-js/event-broker`](https://github.com/cap-js/event-broker).
409
+
Hence, you first need to install the plugin:
409
410
410
411
```bash
411
-
npm install @cap-js/event-broker
412
+
npm add @cap-js/event-broker
412
413
```
413
414
414
-
Set the `kind` of your messaging service to `event-broker`:
415
+
Then, set the `kind` of your messaging service to `event-broker`:
415
416
416
417
```jsonc
417
418
"cds": {
@@ -444,9 +445,10 @@ If you are not using [IAS-based Authentication](./authentication#ias), you will
444
445
445
446
Your SAP Event Broker configuration must include your system namespace as well as the webhook URL. The binding parameters must set `"authentication-type": "X509_GENERATED"` to allow IAS-based authentication.
446
447
Your IAS instance must be configured to include your SAP Event Broker instance under `consumed-services` in order for your application to accept requests from SAP Event Broker.
447
-
Here's an example configuration based of the mta.yaml file of the [@capire/incidents](https://github.com/cap-js/incidents-app/tree/event-broker) application, bringing it all together:
448
+
Here's an example configuration based on the _mta.yaml_ file of the [@capire/incidents](https://github.com/cap-js/incidents-app/tree/event-broker) application, bringing it all together:
448
449
449
-
```yaml
450
+
::: code-group
451
+
```yaml [mta.yaml]
450
452
ID: cap.incidents
451
453
452
454
modules:
@@ -496,6 +498,7 @@ resources:
496
498
display-name: cap.incidents #> any value, e.g., reuse MTA ID
The plugin provides out-of-the-box support for consuming events from [SAP Event Broker](https://discovery-center.cloud.sap/serviceCatalog/sap-event-broker) -- for example emitted by SAP S/4HANA Cloud -- in stand-alone CAP applications.
For more details, please see [Events and Messaging → Using SAP Event Broker](../guides/messaging/#sap-event-broker).
359
+
360
+
Available for:
361
+
362
+
[{style="height:2.5em; display:inline; margin:0 0.2em;"}](https://github.com/cap-js/event-broker#readme)
0 commit comments