diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2014-06-16 11:56:53 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2014-06-16 11:56:53 +0200 |
commit | 257f9b3de552defd8062635e3031c3d0c8ac42d4 (patch) | |
tree | bf3d4ee240f5bd8d2ec6a37101611447dcac194c /src/main/java/at/gv/util/wsdl/mis | |
parent | 107930978eefc7234e99bbccd483f4da3a690c0d (diff) | |
download | egovutils-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/mis')
-rw-r--r-- | src/main/java/at/gv/util/wsdl/mis/MandateIssueService.java | 49 |
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; + } + } |