Hi.
I'm using Oracle SOA Suite 10.1.3.5.
I'm trying to change the wsseUsername and wssePasword properties in my partner link in runtime (changing the bpel.xml) using the following code, without success.
In another project that i worked, using 10.1.3.4, this code works. Do i need to enable something in bpel console to allow this changes to occur ?
try {
addAuditTrailEntry("Updating ParterLink properties");
String username = "password";
String password = "username";
getLocator()
.lookupProcess("ProcessBPEL")
.getDescriptor()
.getPartnerLinkBindings()
.getPartnerLinkBinding("PLink1")
.setPropertyValue("wsseUsername", username);
getLocator()
.lookupProcess("ProcessBPEL")
.getDescriptor()
.getPartnerLinkBindings()
.getPartnerLinkBinding("PLink1")
.setPropertyValue("wssePassword", password);
getLocator()
.lookupProcess("ProcessBPEL")
.getDescriptor()
.getPartnerLinkBindings()
.getPartnerLinkBinding("PLink2")
.setPropertyValue("wsseUsername", username);
getLocator()
.lookupProcess("ProcessBPEL")
.getDescriptor()
.getPartnerLinkBindings()
.getPartnerLinkBinding("PLink2")
.setPropertyValue("wssePassword", password);
} catch(Throwable t) {
addAuditTrailEntry("ERROR: " + e.getMessage());
} catch(Exception e) {
addAuditTrailEntry("ERROR: " + e.getMessage());
}