summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-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);
}