summaryrefslogtreecommitdiff
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
parentf7cbfd90cddddf3733501f68351b6eff00c40691 (diff)
downloadegovutils-2.0.8.tar.gz
egovutils-2.0.8.tar.bz2
egovutils-2.0.8.zip
fix type and switch to 2.0.82.0.8
-rw-r--r--pom.xml2
-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
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 @@
<modelVersion>4.0.0</modelVersion>
<groupId>at.gv.util</groupId>
<artifactId>egovutils</artifactId>
- <version>2.0.8-snapshot</version>
+ <version>2.0.8</version>
<name>zuseutil</name>
<url>http://maven.apache.org</url>
<properties>
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");