From 5a7cafc63b3892ef90c717eb48c1842e88cd4799 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 19 Oct 2015 09:10:19 +0200 Subject: change SZR WebService trace logging --- pom.xml | 4 ++-- src/main/java/at/gv/util/client/szr/SZRClient.java | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 14fcbea..7bc5f32 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ - + org.apache.maven.plugins maven-compiler-plugin 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")) { -- cgit v1.2.3