Engaging Quality of Service(QoS) for a partner web service endpoint in WSO2 BPS is facilitated by Unified Endpoint(UEP) feature. Not only QoS, but also, protocol specific properties like setting “ReplyTo” header for the outgoing message can be configured via UEPs. To get some more idea on UEPs please refer this post.
This post describes how to invoke a secured web service through a BPEL process using an UEP.
Tested Environment
eg - Referring to a policy maintained in the configuration registry - Use the registry specific path for the policy in Unified Endpoint.
Maintaining an policy outside from the BPEL artifact becomes very useful when governing policies which are used by multiple BPEL processes in multiple WSO2 BPS instances.
This post describes how to invoke a secured web service through a BPEL process using an UEP.
Tested Environment
- WSO2 BPS 2.1.2 (based on WSO2 Carbon 3.2.0) release and WSO2 BPS release based on WSO2 Carbon 4.0.0
A sample of referring the security policy in the Unified-Endpoints can be found via this Unified Endpoint in this sample BPEL Loan Process.
This policy can be maintained outside from the BPEL artifact as well.
eg - Referring to a policy maintained in the file system - Use the absolute path for the policy in UEP.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<enableWsSec policy="file:/opt/wso2/servers/conf/policy.xml"/> |
eg - Referring to a policy maintained in the configuration registry - Use the registry specific path for the policy in Unified Endpoint.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<enableWsSec policy="conf:policy.xml"/> |
Maintaining an policy outside from the BPEL artifact becomes very useful when governing policies which are used by multiple BPEL processes in multiple WSO2 BPS instances.