summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2015-06-02 12:19:18 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2015-06-02 12:19:18 +0200
commit6228b7ac31e7fa28a26e416dd2f65e5b9274f613 (patch)
tree159b3f8f0df0f420e9ee8ec9c8b828d63eb7082b
parent9962dde4a1563076ded1c5717858c6711fc1a6e6 (diff)
downloadegovutils-6228b7ac31e7fa28a26e416dd2f65e5b9274f613.tar.gz
egovutils-6228b7ac31e7fa28a26e416dd2f65e5b9274f613.tar.bz2
egovutils-6228b7ac31e7fa28a26e416dd2f65e5b9274f613.zip
* update SZR client implementation
- update connection timeout to 60sec - fix problem in methode "transformBPK" * update version to 2.0.1
-rw-r--r--pom.xml2
-rw-r--r--src/main/java/at/gv/util/client/szr/SZRClient.java12
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 @@
<modelVersion>4.0.0</modelVersion>
<groupId>at.gv.util</groupId>
<artifactId>egovutils</artifactId>
- <version>2.0.0</version>
+ <version>2.0.1</version>
<name>zuseutil</name>
<url>http://maven.apache.org</url>
<properties>
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<FremdBPKRequestType> list = new ArrayList<FremdBPKRequestType>();
- list.add(rt);
-
+// List<FremdBPKRequestType> list = new ArrayList<FremdBPKRequestType>();
+
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<FremdBPKType> 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);