summaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/util/wsdl
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2014-06-16 11:56:53 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2014-06-16 11:56:53 +0200
commit257f9b3de552defd8062635e3031c3d0c8ac42d4 (patch)
treebf3d4ee240f5bd8d2ec6a37101611447dcac194c /src/main/java/at/gv/util/wsdl
parent107930978eefc7234e99bbccd483f4da3a690c0d (diff)
downloadegovutils-257f9b3de552defd8062635e3031c3d0c8ac42d4.tar.gz
egovutils-257f9b3de552defd8062635e3031c3d0c8ac42d4.tar.bz2
egovutils-257f9b3de552defd8062635e3031c3d0c8ac42d4.zip
Update MIS Service
-- add AuthBlock to MIS webservice request
Diffstat (limited to 'src/main/java/at/gv/util/wsdl')
-rw-r--r--src/main/java/at/gv/util/wsdl/mis/MandateIssueService.java49
-rw-r--r--src/main/java/at/gv/util/wsdl/ur_V5/URSucheService.java18
2 files changed, 44 insertions, 23 deletions
diff --git a/src/main/java/at/gv/util/wsdl/mis/MandateIssueService.java b/src/main/java/at/gv/util/wsdl/mis/MandateIssueService.java
index 2cc7de5..f73f8fc 100644
--- a/src/main/java/at/gv/util/wsdl/mis/MandateIssueService.java
+++ b/src/main/java/at/gv/util/wsdl/mis/MandateIssueService.java
@@ -3,8 +3,6 @@ package at.gv.util.wsdl.mis;
import java.net.MalformedURLException;
import java.net.URL;
-import java.util.logging.Logger;
-
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
@@ -23,30 +21,46 @@ import javax.xml.ws.WebServiceFeature;
public class MandateIssueService
extends Service
{
-
+
private final static URL MANDATEISSUESERVICE_WSDL_LOCATION;
- private final static Logger logger = Logger.getLogger(at.gv.util.wsdl.mis.MandateIssueService.class.getName());
-
+ private final static WebServiceException MANDATEISSUESERVICE_EXCEPTION;
+ private final static QName MANDATEISSUESERVICE_QNAME = new QName("http://reference.e-government.gv.at/namespace/mandates/mis/1.0/wsdl", "MandateIssueService");
+
static {
URL url = null;
+ WebServiceException e = null;
try {
- URL baseUrl;
- baseUrl = at.gv.util.wsdl.mis.MandateIssueService.class.getResource(".");
- url = new URL(baseUrl, "file:/D:/eclipse/development/egovutils/src/main/resources/wsdl/mis/mis-1.0.3.wsdl");
- } catch (MalformedURLException e) {
- logger.warning("Failed to create URL for the wsdl Location: 'file:/D:/eclipse/development/egovutils/src/main/resources/wsdl/mis/mis-1.0.3.wsdl', retrying as a local file");
- logger.warning(e.getMessage());
+ url = new URL("file:/D:/Projekte/svn/online-vollmachten/egovutils/src/main/resources/wsdl/mis/mis-1.0.3.wsdl");
+ } catch (MalformedURLException ex) {
+ e = new WebServiceException(ex);
}
MANDATEISSUESERVICE_WSDL_LOCATION = url;
+ MANDATEISSUESERVICE_EXCEPTION = e;
+ }
+
+ public MandateIssueService() {
+ super(__getWsdlLocation(), MANDATEISSUESERVICE_QNAME);
}
+// public MandateIssueService(WebServiceFeature... features) {
+// super(__getWsdlLocation(), MANDATEISSUESERVICE_QNAME, features);
+// }
+
+ public MandateIssueService(URL wsdlLocation) {
+ super(wsdlLocation, MANDATEISSUESERVICE_QNAME);
+ }
+
+// public MandateIssueService(URL wsdlLocation, WebServiceFeature... features) {
+// super(wsdlLocation, MANDATEISSUESERVICE_QNAME, features);
+// }
+
public MandateIssueService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
- public MandateIssueService() {
- super(MANDATEISSUESERVICE_WSDL_LOCATION, new QName("http://reference.e-government.gv.at/namespace/mandates/mis/1.0/wsdl", "MandateIssueService"));
- }
+// public MandateIssueService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
+// super(wsdlLocation, serviceName, features);
+// }
/**
*
@@ -70,4 +84,11 @@ public class MandateIssueService
return super.getPort(new QName("http://reference.e-government.gv.at/namespace/mandates/mis/1.0/wsdl", "MandateIssuePort"), MandateIssuePortType.class, features);
}
+ private static URL __getWsdlLocation() {
+ if (MANDATEISSUESERVICE_EXCEPTION!= null) {
+ throw MANDATEISSUESERVICE_EXCEPTION;
+ }
+ return MANDATEISSUESERVICE_WSDL_LOCATION;
+ }
+
}
diff --git a/src/main/java/at/gv/util/wsdl/ur_V5/URSucheService.java b/src/main/java/at/gv/util/wsdl/ur_V5/URSucheService.java
index 8f039c3..8e5fe73 100644
--- a/src/main/java/at/gv/util/wsdl/ur_V5/URSucheService.java
+++ b/src/main/java/at/gv/util/wsdl/ur_V5/URSucheService.java
@@ -42,25 +42,25 @@ public class URSucheService
super(__getWsdlLocation(), URSUCHESERVICE_QNAME);
}
- public URSucheService(WebServiceFeature... features) {
- super(__getWsdlLocation(), URSUCHESERVICE_QNAME, features);
- }
+// public URSucheService(WebServiceFeature... features) {
+// super(__getWsdlLocation(), URSUCHESERVICE_QNAME, features);
+// }
public URSucheService(URL wsdlLocation) {
super(wsdlLocation, URSUCHESERVICE_QNAME);
}
- public URSucheService(URL wsdlLocation, WebServiceFeature... features) {
- super(wsdlLocation, URSUCHESERVICE_QNAME, features);
- }
+// public URSucheService(URL wsdlLocation, WebServiceFeature... features) {
+// super(wsdlLocation, URSUCHESERVICE_QNAME, features);
+// }
public URSucheService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
- public URSucheService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
- super(wsdlLocation, serviceName, features);
- }
+// public URSucheService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
+// super(wsdlLocation, serviceName, features);
+// }
/**
*