For the outbound REST calls, I would typically create a custom operation class that calls methods in %SYS.OAuth2.* to fetch a token from the downstream system and then places that in the HTTP header.
If it's essential for you to avoid creating a custom class, you could call the %SYS.OAuth2 methods from a BPL and then add the token to the header fields in the EnsLib.HTTP.GenericMessage that you send to the GenericOperation.
You haven't said what needs to happen between the business service and business operation, so it's hard to discuss how everything fits together as you asked.
- Log in to post comments
.png)
.png)
.png)
.png)
.png)