summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <>2021-09-23 18:51:49 +0200
committerThomas <>2021-09-23 18:51:49 +0200
commitabf647cb90098d7a170f7ca48b51eb407ce126a5 (patch)
treec8dbccf574308a4143314d83ebd97a69475ecded
parent29c73e94ebabcb66a3d0ce56e75c6634d9b0e918 (diff)
downloadegovutils-abf647cb90098d7a170f7ca48b51eb407ce126a5.tar.gz
egovutils-abf647cb90098d7a170f7ca48b51eb407ce126a5.tar.bz2
egovutils-abf647cb90098d7a170f7ca48b51eb407ce126a5.zip
switch default SZR client from v2 to v4
-rw-r--r--src/main/java/at/gv/util/client/szr/SZRClient.java35
1 files changed, 18 insertions, 17 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 e6fb31f..fb0c2e1 100644
--- a/src/main/java/at/gv/util/client/szr/SZRClient.java
+++ b/src/main/java/at/gv/util/client/szr/SZRClient.java
@@ -2,6 +2,7 @@ package at.gv.util.client.szr;
import java.net.URL;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.List;
import java.util.Map;
@@ -27,21 +28,21 @@ import at.gv.util.MiscUtil;
import at.gv.util.client.pvp.rprofile.Pvp18pSoapHandler;
import at.gv.util.config.EgovUtilConfiguration;
import at.gv.util.ex.EgovUtilException;
-import at.gv.util.wsdl.szr.SZR;
-import at.gv.util.wsdl.szr.SZRException;
-import at.gv.util.wsdl.szr.SZRService;
-import at.gv.util.xsd.szr.FremdBPKRequestType;
-import at.gv.util.xsd.szr.FremdBPKType;
-import at.gv.util.xsd.szr.GetBPK;
-import at.gv.util.xsd.szr.GetBPKResponse;
-import at.gv.util.xsd.szr.GetIdentityLink;
-import at.gv.util.xsd.szr.GetIdentityLinkResponse;
-import at.gv.util.xsd.szr.GetStammzahl;
-import at.gv.util.xsd.szr.GetStammzahlResponse;
-import at.gv.util.xsd.szr.IdentityLinkType;
-import at.gv.util.xsd.szr.PersonInfoType;
-import at.gv.util.xsd.szr.TransformBPK;
-import at.gv.util.xsd.szr.TransformBPKResponse;
+import at.gv.util.wsdl.szr_v4.SZR;
+import at.gv.util.wsdl.szr_v4.SZRException;
+import at.gv.util.wsdl.szr_v4.SZRService;
+import at.gv.util.xsd.szr_v4.FremdBPKRequestType;
+import at.gv.util.xsd.szr_v4.FremdBPKType;
+import at.gv.util.xsd.szr_v4.GetBPK;
+import at.gv.util.xsd.szr_v4.GetBPKResponse;
+import at.gv.util.xsd.szr_v4.GetIdentityLink;
+import at.gv.util.xsd.szr_v4.GetIdentityLinkResponse;
+import at.gv.util.xsd.szr_v4.GetStammzahl;
+import at.gv.util.xsd.szr_v4.GetStammzahlResponse;
+import at.gv.util.xsd.szr_v4.IdentityLinkType;
+import at.gv.util.xsd.szr_v4.PersonInfoType;
+import at.gv.util.xsd.szr_v4.TransformBPK;
+import at.gv.util.xsd.szr_v4.TransformBPKResponse;
import at.gv.util.xsd.szr.pvp.PvpTokenType;
import at.gv.util.xsd.szr.xmldsig.KeyValueType;
@@ -97,11 +98,11 @@ public class SZRClient {
GetBPK req = new GetBPK();
req.setPersonInfo(personInfo);
- req.setBereichsKennung(targetString);
+ req.getBereichsKennung().add(targetString);
req.setVKZ(vkz);
req.setListMultiplePersons(false);
GetBPKResponse resp = this.szr.getBPK(req);
- return resp.getGetBPKReturn();
+ return resp.getGetBPKReturn().get(0);
}