summaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/util/wsdl/mis
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv/util/wsdl/mis')
-rw-r--r--src/main/java/at/gv/util/wsdl/mis/MandateIssueService.java49
1 files changed, 35 insertions, 14 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;
+ }
+
}