summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/gv/util/client/mms/MMSClient.java2
-rw-r--r--src/test/java/at/gv/util/demo/Clienttests.java16
2 files changed, 16 insertions, 2 deletions
diff --git a/src/main/java/at/gv/util/client/mms/MMSClient.java b/src/main/java/at/gv/util/client/mms/MMSClient.java
index 45654d3..0c714a8 100644
--- a/src/main/java/at/gv/util/client/mms/MMSClient.java
+++ b/src/main/java/at/gv/util/client/mms/MMSClient.java
@@ -57,7 +57,7 @@ public class MMSClient {
MiscUtil.assertNotNull(mmsServiceURL, "mmsServiceURL");
URL url = MOAIDClient.class.getResource("/wsdl/mms/mms.wsdl");
- GetMandatesService service = new GetMandatesService(url, new QName("http://reference.e-government.gv.at/namespace/mandates/mms/1.0/wsdl", "GetMandatesService"));
+ GetMandatesService service = new GetMandatesService(url, new QName("http://reference.e-government.gv.at/namespace/mandates/mms/1.1/wsdl", "GetMandatesService"));
GetMandatesPortType port = service.getGetMandatesPort();
log.debug("MMS connection URL: " + mmsServiceURL);
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");