cancel
Showing results for 
Search instead for 
Did you mean: 

error BPM With postman

FRLEN
Participant
0 Kudos

Dear SAP Guru's,

I have successfully deployed my rules set in the sap cloud platform.

But the moment I start testing I get an error with login request and as response in the body I get Your browser does not support JavaScript or it is turned off. Press the button to proceed.

But when I put my basic Auth on I get an error that its not allowed.

The link that I'm using is: https://bpmrulesruntimebpm-<myPusernumber>trial.hanatrial.ondemand.com/rules-service/v1/rules/invoke...

Koelkast is the projectname

Ruleset is de Ruleset name.

And Koelingsysteem is de rule services.

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi nitinantoon please note that I also added a BPM tag for better findability for the BPM experts. Regards, Ervin (moderator)

FRLEN
Participant
0 Kudos

Thank you ervin.szolke

Accepted Solutions (1)

Accepted Solutions (1)

qmacro
Developer Advocate
Developer Advocate

The URL you're using for an invocation is from an old pattern and is now retired. The definitive docu for the Business Rules runtime is in the API Hub here: https://api.sap.com/api/SAP_CP_BusinessRules_Runtime where we see that the new pattern looks like this:

/rest/v1/rule-services/java/{projectName}/{ruleserviceName}

Basic Authentication is definitely supported, I use it on a fairly regular basis (including in a bash shell script, via curl, in my UI5con talk "Diving into the sap.rules.ui library" last week :-)). If you're using Postman (which I do too) be sure to see that the cookies that you receive on the response to the CSRF token fetch call are passed through to the subsequent rule invocation call (they contextualise the token, and without them the token is deemed invalid).

Here's an example of me invoking a rule via Postman, with Basic Authentication, just now. Hope that gives you hope and direction! 🙂

Answers (1)

Answers (1)

gregorw
Active Contributor

According to the Architecture documentation the Business Rules Service does support Basic Authentication. But unfortunately it's not described what URL to use for that. You might also try the new SAP Cloud Platform Business Rules Service in Cloud Foundry. There even an example with postman is provided.