summaryrefslogtreecommitdiff
path: root/src/test/java/at/gv/util
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2019-08-07 15:56:20 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2019-08-07 15:56:20 +0200
commit9e18763f0214e4ee8ee2686f43a8085708157d67 (patch)
tree78a350d8a56de89447270ff482385ac8b31f9e97 /src/test/java/at/gv/util
parentf7cbfd90cddddf3733501f68351b6eff00c40691 (diff)
downloadegovutils-9e18763f0214e4ee8ee2686f43a8085708157d67.tar.gz
egovutils-9e18763f0214e4ee8ee2686f43a8085708157d67.tar.bz2
egovutils-9e18763f0214e4ee8ee2686f43a8085708157d67.zip
fix type and switch to 2.0.82.0.8
Diffstat (limited to 'src/test/java/at/gv/util')
-rw-r--r--src/test/java/at/gv/util/demo/Clienttests.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/test/java/at/gv/util/demo/Clienttests.java b/src/test/java/at/gv/util/demo/Clienttests.java
index c439d2d..e233944 100644
--- a/src/test/java/at/gv/util/demo/Clienttests.java
+++ b/src/test/java/at/gv/util/demo/Clienttests.java
@@ -44,6 +44,7 @@ import at.gv.util.BpkUtil;
import at.gv.util.DOMUtils;
import at.gv.util.MiscUtil;
import at.gv.util.client.mis.usp_v2.USPClient;
+import at.gv.util.client.mms.MMSClient;
import at.gv.util.client.szr.SZRClient;
import at.gv.util.client.ur_V5.URClient;
import at.gv.util.client.ur_V5.URClient.URSearchResult;
@@ -52,6 +53,9 @@ import at.gv.util.config.EgovUtilPropertiesConfiguration;
import at.gv.util.data.BPK;
import at.gv.util.ex.EgovUtilException;
import at.gv.util.wsdl.szr.SZRException;
+import at.gv.util.xsd.mms.GetMandatesRequest;
+import at.gv.util.xsd.mms.GetMandatesRequest.MandateIdentifiers;
+import at.gv.util.xsd.mms.GetMandatesResponse;
import at.gv.util.xsd.szr.FremdBPKType;
import at.gv.util.xsd.szr.GetIdentityLink;
import at.gv.util.xsd.szr.IdentityLinkType;
@@ -129,6 +133,8 @@ public class Clienttests {
try {
SZRClient szrClient = new SZRClient(egovUtilConfiguration);
URClient urClient = new URClient(egovUtilConfiguration, UR_TYPES, ERSB_KEYS, false, true);
+ MMSClient mmsClient = new MMSClient(egovUtilConfiguration);
+
PersonInfoType personInfo = new PersonInfoType();
@@ -292,7 +298,15 @@ public class Clienttests {
// BPK zpBpk = BpkUtil.createBPK(baseID, "ZP-MH");
// System.out.print(zpBpk);
-//
+ GetMandatesRequest mmsRequest = new GetMandatesRequest();
+ mmsRequest.setBPK(zpBpk.getBpk());
+ mmsRequest.setBPKType(BpkUtil.PREFIX_BPK_TYPE + "ZU");
+ MandateIdentifiers filters = new MandateIdentifiers();
+ filters.getMandateIdentifier().add("GeneralvollmachtBilateral");
+ mmsRequest.setMandateIdentifiers(filters );
+ GetMandatesResponse mmsResult = mmsClient.sendGetMandatesRequest(mmsRequest, "https://vollmachten.egiz.gv.at/mms-test/services/GetMandatesService");
+
+
// personInfo.getPerson().setDateOfBirth(null);
// String test = szrClient.getBPK(personInfo, "BF", "BBA-STA");