Original Message:
Sent: Tue May 23, 2023 01:50 PM
From: Ajay Katre
Subject: Passing HTTP request header when calling outbound web service using ootb web service integration
Hi Sergei,
Have you tried setting up a server of type 'Web Service Server'? This allows you to select a policy set and binding. The policy set and binding can be defined in WAS (via admin console). So, at least in theory if you have enabled OAuth for use in WAS, you should be able to create a new policy set and use it for authentication in BAW. Once that is in place, then you can bind the web service to use this server definition.
------------------------------
Ajay Katre
Salient Process
------------------------------
Original Message:
Sent: Tue May 23, 2023 01:00 PM
From: Sergei Malynovskyi
Subject: Passing HTTP request header when calling outbound web service using ootb web service integration
Yeah, that's what we tried first but quickly realized that this injects SOAP headers into SOAP body and we need HTTP request headers instead
------------------------------
Sergei Malynovskyi
Original Message:
Sent: Tue May 23, 2023 12:55 PM
From: Atanu Roy
Subject: Passing HTTP request header when calling outbound web service using ootb web service integration
Hi Sergei,
Okay, I thought the webservices are being consumed by other non-bpm applications.
I don't think, auth-token can be added in the built in web service integration component. Just a wild guess, can you try passing the token like if not already tried -
var authHeader = new tw.object.SOAPHeader(); authHeader.name = "Authorization";authHeader.value = "Bearer {token}"tw.local.requestHeaders.headers[0] = authHeader;
Thanks!
------------------------------
Atanu Roy
Solution Architect
Salient Process
Original Message:
Sent: Tue May 23, 2023 11:13 AM
From: Sergei Malynovskyi
Subject: Passing HTTP request header when calling outbound web service using ootb web service integration
Hi Atanu -
Right, any Java HTTP client can do it but we're using standard/out of the box web service integration in IBM BAW and we need to make it work with it. All our outbound web service calls are using standard web service integration -
https://www.ibm.com/docs/en/baw/19.x?topic=integrations-integrating-web-services
------------------------------
Sergei Malynovskyi
Original Message:
Sent: Tue May 23, 2023 11:02 AM
From: Atanu Roy
Subject: Passing HTTP request header when calling outbound web service using ootb web service integration
Hi Sergei,
How are the consumers calling the web services? I believe, any Java HTTP client can be used to send the HTTP POST request with the auth-token in the header.
Thanks!
------------------------------
Atanu Roy
Solution Architect
Salient Process