From 6228b7ac31e7fa28a26e416dd2f65e5b9274f613 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 2 Jun 2015 12:19:18 +0200 Subject: * update SZR client implementation - update connection timeout to 60sec - fix problem in methode "transformBPK" * update version to 2.0.1 --- pom.xml | 2 +- src/main/java/at/gv/util/client/szr/SZRClient.java | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 06e5a28..14fcbea 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 at.gv.util egovutils - 2.0.0 + 2.0.1 zuseutil http://maven.apache.org 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 159f718..e14da50 100644 --- a/src/main/java/at/gv/util/client/szr/SZRClient.java +++ b/src/main/java/at/gv/util/client/szr/SZRClient.java @@ -120,14 +120,16 @@ public class SZRClient { FremdBPKRequestType rt = new FremdBPKRequestType(); rt.setBereichsKennung(target); rt.setVKZ(vkz); - List list = new ArrayList(); - list.add(rt); - +// List list = new ArrayList(); + TransformBPK req = new TransformBPK(); req.setPersonInfo(personInfo); - req.setInputBereichsKennung(targetString); + req.setInputBereichsKennung(inputTarget); req.setInputBPK(inputBpk); req.setBegruendung("kt"); + + req.getTarget().add(rt); + TransformBPKResponse resp = this.szr.transformBPK(req ); List response = resp.getTransformBPKReturn(); if (response == null) { @@ -198,7 +200,7 @@ public class SZRClient { HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); httpClientPolicy.setConnectionTimeout(36000); - httpClientPolicy.setReceiveTimeout(32000); + httpClientPolicy.setReceiveTimeout(60000); http.setClient(httpClientPolicy); -- cgit v1.2.3