summaryrefslogtreecommitdiff
path: root/src/main/java/at
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 /src/main/java/at
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
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/gv/util/client/szr/SZRClient.java12
1 files changed, 7 insertions, 5 deletions
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);