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