From 9e18763f0214e4ee8ee2686f43a8085708157d67 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 7 Aug 2019 15:56:20 +0200 Subject: fix type and switch to 2.0.8 --- pom.xml | 2 +- src/main/java/at/gv/util/client/mms/MMSClient.java | 2 +- src/test/java/at/gv/util/demo/Clienttests.java | 16 +++++++++++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index e3c7019..8a99184 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 at.gv.util egovutils - 2.0.8-snapshot + 2.0.8 zuseutil http://maven.apache.org 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"); -- cgit v1.2.3