diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/gv/util/client/szr/SZRClient.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main/java/at/gv/util/client/szr/SZRClient.java b/src/main/java/at/gv/util/client/szr/SZRClient.java index e14da50..ad54d2f 100644 --- a/src/main/java/at/gv/util/client/szr/SZRClient.java +++ b/src/main/java/at/gv/util/client/szr/SZRClient.java @@ -177,14 +177,18 @@ public class SZRClient { if (handlerList == null) { handlerList = new ArrayList(); } - LoggingHandler loggingHandler = new LoggingHandler(); - handlerList.add(loggingHandler); - log.trace("Adding WS-Security Header handler."); + + log.trace("Adding WS-Security Header handler."); PvpTokenType pvpToken = config.getPVPToken(); SZRSOAPHandler szrSOAPHandler = new SZRSOAPHandler(); szrSOAPHandler.configure(pvpToken); handlerList.add(szrSOAPHandler); bindingProvider.getBinding().setHandlerChain(handlerList); + + LoggingHandler loggingHandler = new LoggingHandler(); + handlerList.add(loggingHandler); + + // check for ssl if (szrURL.toLowerCase().startsWith("https")) { |