How to Set httpBasicUsername and httpBasicPassword Parameters Dynamically (Doc ID 1097274.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle(R) BPEL Process Manager - Version: 10.1.3.4 and later   [Release: AS10gR3 and later ]
Information in this document applies to any platform.

Goal

How to setup the httpBasicUsername and httpBasicPassword parameters dynamically when making a call to a secure web service.

It used to be hard coded in bpel.xml file as follows,
<?xml version = '1.0' encoding = 'UTF-8'?>
<BPELSuitcase>
<BPELProcess id="EloquaLeadGen" src="EloquaLeadGen.bpel">
<partnerLinkBindings>
<partnerLinkBinding name="PartnerLink_FreeScanCreateAccount">
<property name="wsdlLocation">FreeScanCallRef.wsdl</property>
<property name="httpRealm">FreeScan Admin Login</property>
<property name="httpBasicHeaders">credentials</property>
<property name="httpBasicUsername">myusername</property>
<property name="httpBasicPassword">xxx</property>
<property name="rejectedMessageHandlers">file://C:/</property>
</partnerLinkBinding>
</partnerLinkBindings>
</BPELProcess>
</BPELSuitcase>



Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms