ESBCOMP-100 Protect security part even if the WSDL is accessed locally

master
David BRASSELY 2015-04-15 14:10:28 +02:00
parent 540a6712c2
commit 817e74eee7
1 changed files with 8 additions and 5 deletions

View File

@ -179,16 +179,19 @@ public class WsdlQueryHelper {
* check if the request is a direct request, return the byte-buffer if
* true
*/
/*
if (isDirectRequest()) {
return byteBuffer;
}
}*/
if (isWsdl) {
try {
updateImportDom(doc.getDocumentElement());
// ESBCOMP-34 : Bad location URL in soap address
updateSoapAddressDom(doc.getDocumentElement());
if (! isDirectRequest()) {
updateImportDom(doc.getDocumentElement());
// ESBCOMP-34 : Bad location URL in soap address
updateSoapAddressDom(doc.getDocumentElement());
}
// ESBCOMP-100 : key locations and passwords should be hidden in wsdl
updateSecurityPolicies(doc.getDocumentElement());