diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2014-10-01 10:52:51 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2014-10-01 10:52:51 +0200 |
commit | 384e79256a0bde2494e8a54f2850b29733588284 (patch) | |
tree | 64c1b59d0f610cdc1331d59bcc89ed1fb0f96b13 /src/main/java | |
parent | 0eec376bb3c272eb3872d306ba35e5a52d51fc2b (diff) | |
download | egovutils-384e79256a0bde2494e8a54f2850b29733588284.tar.gz egovutils-384e79256a0bde2494e8a54f2850b29733588284.tar.bz2 egovutils-384e79256a0bde2494e8a54f2850b29733588284.zip |
add logging to ERsB client
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/gv/util/client/ersb/ERsBClient.java | 14 |
1 files changed, 7 insertions, 7 deletions
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<String, Object> requestContext = bindingProvider.getRequestContext(); requestContext.put( BindingProvider.ENDPOINT_ADDRESS_PROPERTY, ersbServiceURL); - - log.trace("Adding JAX-WS request/response trace handler."); - + List<Handler> 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 |