diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2015-10-19 09:10:19 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2015-10-19 09:10:19 +0200 |
commit | 5a7cafc63b3892ef90c717eb48c1842e88cd4799 (patch) | |
tree | 0b0a542f10bf14f750ac98fe9c9945b8140ce48f | |
parent | e14ef2cb47f5e771171c4c9265c2c336f071cbfa (diff) | |
download | egovutils-5a7cafc63b3892ef90c717eb48c1842e88cd4799.tar.gz egovutils-5a7cafc63b3892ef90c717eb48c1842e88cd4799.tar.bz2 egovutils-5a7cafc63b3892ef90c717eb48c1842e88cd4799.zip |
change SZR WebService trace logging
-rw-r--r-- | pom.xml | 4 | ||||
-rw-r--r-- | src/main/java/at/gv/util/client/szr/SZRClient.java | 10 |
2 files changed, 9 insertions, 5 deletions
@@ -15,7 +15,7 @@ <build> <plugins> - <plugin> +<!-- <plugin> <groupId>org.owasp</groupId> <artifactId>dependency-check-maven</artifactId> <version>1.2.5</version> @@ -27,7 +27,7 @@ </goals> </execution> </executions> - </plugin> + </plugin> --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> 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")) { |