When an instance of SAP Cloud Platform Enterprise Message is created with the steps mentioned above, it stores the information of the protocols, corresponding end-points and authorizations which can be used to bind it to an Application. Service Key holds this information when an instance of SAP Cloud Platform Enterprise Message is created.
You can create a service key of the instance with the following steps depicted through following three images.
Do find below a template Service Key of an SAP Cloud Platform Enterprise Message instance.
{
"xsappname": "<app-name>",
"serviceinstanceid": "<instance-id>",
"messaging": [
{
"oa2": {
"clientid": "<client_id>",
"clientsecret": "<client_secret>",
"tokenendpoint": "https://<app-url>/oauth/token",
"granttype": "client_credentials"
},
"protocol": ["amqp10ws"],
"broker": {
"type": "sapmgw"
},
"uri": "wss://<app-url>/protocols/amqp10ws"
},
{
"oa2": {
"clientid": "<client_id>",
"clientsecret": "<client_secret>",
"tokenendpoint": "https://<app-url>/oauth/token",
"granttype": "client_credentials"
},
"protocol":["mqtt311ws"],
"broker": {
"type": "sapmgw"
},
"uri": "wss://<app-url>/protocols/protocols/mqtt311ws"
},
{
"oa2": {
"clientid": "<client_id>",
"clientsecret": "<client_secret>",
"tokenendpoint": "https://<app-url>/oauth/token",
"granttype": "client_credentials"
},
"protocol": ["httprest"],
"broker": {
"type": "saprestmgw"
},
"uri": " https://<app-url>/"
}
],
"management": [
{
"oa2": {
"clientid": "<client_id>",
"clientsecret": "<client_secret>",
"tokenendpoint": "https://<app-url>/oauth/token",
"granttype": "client_credentials"
},
"uri": " https://<app-url>/"
}
]
}
-
The segment management
in the service binding information is available only if you have set the option management as true during service instance creation.
-
The segment httprest
in the service binding information is available only if you have set the option messagingrest
as true during service instance creation.
Now you can proceed with the tutorial Create Queues and Queue Subscriptions for Enterprise Messaging to create queues and queue subscriptions so you can start working with SAP Cloud Platform Enterprise Messaging.