From 384e79256a0bde2494e8a54f2850b29733588284 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 1 Oct 2014 10:52:51 +0200 Subject: add logging to ERsB client --- src/main/java/at/gv/util/client/ersb/ERsBClient.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/main/java/at/gv/util/client') diff --git a/src/main/java/at/gv/util/client/ersb/ERsBClient.java b/src/main/java/at/gv/util/client/ersb/ERsBClient.java index b0f7ca7..5f68ea5 100644 --- a/src/main/java/at/gv/util/client/ersb/ERsBClient.java +++ b/src/main/java/at/gv/util/client/ersb/ERsBClient.java @@ -57,27 +57,27 @@ public class ERsBClient { ErsbServiceService service = new ErsbServiceService(url, new QName("http://statistik.at/namespace/ersb/1#", "ErsbServiceService")); ErsbService port = service.getErsbServiceSoap11(); - log.debug("MISSTORK connection URL: " + ersbServiceURL); + log.debug("ERsB connection URL: " + ersbServiceURL); BindingProvider bindingProvider = (BindingProvider) port; Map requestContext = bindingProvider.getRequestContext(); requestContext.put( BindingProvider.ENDPOINT_ADDRESS_PROPERTY, ersbServiceURL); - - log.trace("Adding JAX-WS request/response trace handler."); - + List handlerList = bindingProvider.getBinding().getHandlerChain(); if (handlerList == null) { handlerList = new ArrayList(); } - LoggingHandler loggingHandler = new LoggingHandler(); - handlerList.add(loggingHandler); - bindingProvider.getBinding().setHandlerChain(handlerList); log.trace("Adding WS-Security Header handler."); PvpTokenType pvpToken = config.getERsBPVPToken(); SZRSOAPHandler szrSOAPHandler = new SZRSOAPHandler(); szrSOAPHandler.configure(pvpToken); handlerList.add(szrSOAPHandler); + + log.trace("Adding JAX-WS request/response trace handler."); + LoggingHandler loggingHandler = new LoggingHandler(); + handlerList.add(loggingHandler); + bindingProvider.getBinding().setHandlerChain(handlerList); // check for ssl -- cgit v1.2.3