From 107930978eefc7234e99bbccd483f4da3a690c0d Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 25 Mar 2014 12:11:34 +0100 Subject: add UR Client version 5 remove UR Client version 1 change egovutils version to 1.0.5 --- src/main/java/at/gv/util/wsdl/ur/URSuche.java | 63 --------------- .../java/at/gv/util/wsdl/ur/URSucheService.java | 82 ------------------- src/main/java/at/gv/util/wsdl/ur/package-info.java | 6 -- src/main/java/at/gv/util/wsdl/ur_V5/URSuche.java | 68 ++++++++++++++++ .../java/at/gv/util/wsdl/ur_V5/URSucheService.java | 94 ++++++++++++++++++++++ .../java/at/gv/util/wsdl/ur_V5/XmlSwFault.java | 55 +++++++++++++ .../java/at/gv/util/wsdl/ur_V5/package-info.java | 6 ++ 7 files changed, 223 insertions(+), 151 deletions(-) delete mode 100644 src/main/java/at/gv/util/wsdl/ur/URSuche.java delete mode 100644 src/main/java/at/gv/util/wsdl/ur/URSucheService.java delete mode 100644 src/main/java/at/gv/util/wsdl/ur/package-info.java create mode 100644 src/main/java/at/gv/util/wsdl/ur_V5/URSuche.java create mode 100644 src/main/java/at/gv/util/wsdl/ur_V5/URSucheService.java create mode 100644 src/main/java/at/gv/util/wsdl/ur_V5/XmlSwFault.java create mode 100644 src/main/java/at/gv/util/wsdl/ur_V5/package-info.java (limited to 'src/main/java/at/gv/util/wsdl') diff --git a/src/main/java/at/gv/util/wsdl/ur/URSuche.java b/src/main/java/at/gv/util/wsdl/ur/URSuche.java deleted file mode 100644 index a5f46ff..0000000 --- a/src/main/java/at/gv/util/wsdl/ur/URSuche.java +++ /dev/null @@ -1,63 +0,0 @@ - -package at.gv.util.wsdl.ur; - -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebResult; -import javax.jws.WebService; -import javax.jws.soap.SOAPBinding; -import javax.xml.bind.annotation.XmlSeeAlso; -import at.gv.util.xsd.ur.xmlsw.SearchByExampleType; -import at.gv.util.xsd.ur.xmlsw.SearchByIdType; -import at.gv.util.xsd.ur.xmlsw.SearchResponseType; - - -/** - * This class was generated by the JAX-WS RI. - * JAX-WS RI 2.2.4-b01 - * Generated source version: 2.2 - * - */ -@WebService(name = "URSuche", targetNamespace = "urn:at:statistik:udb:ws") -@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) -@XmlSeeAlso({ - at.gv.util.xsd.ur.search.ObjectFactory.class, - at.gv.util.xsd.ur.pd.ObjectFactory.class, - at.gv.util.xsd.ur.xmlsw.ObjectFactory.class, - generated.ObjectFactory.class, - at.gv.util.xsd.ur.simpletypes.ObjectFactory.class -}) -public interface URSuche { - - - /** - * Operation für den Abfragetyp - * Search by Example - * - * - * @param body - * @return - * returns at.gv.util.xsd.ur.xmlsw.SearchResponseType - */ - @WebMethod - @WebResult(name = "SearchResponse", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#", partName = "body") - public SearchResponseType searchByExample( - @WebParam(name = "SearchByExample", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#", partName = "body") - SearchByExampleType body); - - /** - * Operation für den Abfragetyp - * Search by Id - * - * - * @param body - * @return - * returns at.gv.util.xsd.ur.xmlsw.SearchResponseType - */ - @WebMethod - @WebResult(name = "SearchResponse", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#", partName = "body") - public SearchResponseType searchById( - @WebParam(name = "SearchById", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#", partName = "body") - SearchByIdType body); - -} diff --git a/src/main/java/at/gv/util/wsdl/ur/URSucheService.java b/src/main/java/at/gv/util/wsdl/ur/URSucheService.java deleted file mode 100644 index 6168ae3..0000000 --- a/src/main/java/at/gv/util/wsdl/ur/URSucheService.java +++ /dev/null @@ -1,82 +0,0 @@ - -package at.gv.util.wsdl.ur; - -import java.net.MalformedURLException; -import java.net.URL; -import javax.xml.namespace.QName; -import javax.xml.ws.Service; -import javax.xml.ws.WebEndpoint; -import javax.xml.ws.WebServiceClient; -import javax.xml.ws.WebServiceException; -import javax.xml.ws.WebServiceFeature; - - -/** - * This class was generated by the JAX-WS RI. - * JAX-WS RI 2.2.4-b01 - * Generated source version: 2.2 - * - */ -@WebServiceClient(name = "URSucheService", targetNamespace = "urn:at:statistik:udb:ws", wsdlLocation = "file:/D:/Projekte/svn/online-vollmachten/egovutils/src/main/resources/wsdl/ur/URSucheService.wsdl") -public class URSucheService - extends Service -{ - - private final static URL URSUCHESERVICE_WSDL_LOCATION; - private final static WebServiceException URSUCHESERVICE_EXCEPTION; - private final static QName URSUCHESERVICE_QNAME = new QName("urn:at:statistik:udb:ws", "URSucheService"); - - static { - URL url = null; - WebServiceException e = null; - try { - url = new URL("file:/D:/Projekte/svn/online-vollmachten/egovutils/src/main/resources/wsdl/ur/URSucheService.wsdl"); - } catch (MalformedURLException ex) { - e = new WebServiceException(ex); - } - URSUCHESERVICE_WSDL_LOCATION = url; - URSUCHESERVICE_EXCEPTION = e; - } - - public URSucheService() { - super(__getWsdlLocation(), URSUCHESERVICE_QNAME); - } - - public URSucheService(URL wsdlLocation) { - super(wsdlLocation, URSUCHESERVICE_QNAME); - } - - public URSucheService(URL wsdlLocation, QName serviceName) { - super(wsdlLocation, serviceName); - } - - /** - * - * @return - * returns URSuche - */ - @WebEndpoint(name = "URSucheService") - public URSuche getURSucheService() { - return super.getPort(new QName("urn:at:statistik:udb:ws", "URSucheService"), URSuche.class); - } - - /** - * - * @param features - * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. - * @return - * returns URSuche - */ - @WebEndpoint(name = "URSucheService") - public URSuche getURSucheService(WebServiceFeature... features) { - return super.getPort(new QName("urn:at:statistik:udb:ws", "URSucheService"), URSuche.class, features); - } - - private static URL __getWsdlLocation() { - if (URSUCHESERVICE_EXCEPTION!= null) { - throw URSUCHESERVICE_EXCEPTION; - } - return URSUCHESERVICE_WSDL_LOCATION; - } - -} diff --git a/src/main/java/at/gv/util/wsdl/ur/package-info.java b/src/main/java/at/gv/util/wsdl/ur/package-info.java deleted file mode 100644 index 6a7f40f..0000000 --- a/src/main/java/at/gv/util/wsdl/ur/package-info.java +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Dieses WSDL-Dokument beschreibt den - * XML-Search-Service. - * - */ -package at.gv.util.wsdl.ur; diff --git a/src/main/java/at/gv/util/wsdl/ur_V5/URSuche.java b/src/main/java/at/gv/util/wsdl/ur_V5/URSuche.java new file mode 100644 index 0000000..1d0e99d --- /dev/null +++ b/src/main/java/at/gv/util/wsdl/ur_V5/URSuche.java @@ -0,0 +1,68 @@ + +package at.gv.util.wsdl.ur_V5; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.xml.bind.annotation.XmlSeeAlso; +import at.gv.util.xsd.ur_V5.xmlsw.SearchByExampleType; +import at.gv.util.xsd.ur_V5.xmlsw.SearchByIdType; +import at.gv.util.xsd.ur_V5.xmlsw.SearchResponseType; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.4-b01 + * Generated source version: 2.2 + * + */ +@WebService(name = "URSuche", targetNamespace = "urn:at:statistik:ur:ws") +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) +@XmlSeeAlso({ + at.gv.util.xsd.ur_V5.pd.ObjectFactory.class, + at.gv.util.xsd.ur_V5.search.ObjectFactory.class, + at.gv.util.xsd.ur_V5.xmlsw.ObjectFactory.class, + at.gv.util.xsd.ur_V5.simpletypes.ObjectFactory.class +}) +public interface URSuche { + + + /** + * Operation für den Abfragetyp + * Search by Example + * + * + * @param body + * @return + * returns at.gv.util.xsd.ur_V5.xmlsw.SearchResponseType + * @throws XmlSwFault + */ + @WebMethod + @WebResult(name = "SearchResponse", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#", partName = "body") + public SearchResponseType searchByExample( + @WebParam(name = "SearchByExample", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#", partName = "body") + SearchByExampleType body) + throws XmlSwFault + ; + + /** + * Operation für den Abfragetyp + * Search by Id + * + * + * @param body + * @return + * returns at.gv.util.xsd.ur_V5.xmlsw.SearchResponseType + * @throws XmlSwFault + */ + @WebMethod + @WebResult(name = "SearchResponse", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#", partName = "body") + public SearchResponseType searchById( + @WebParam(name = "SearchById", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#", partName = "body") + SearchByIdType body) + throws XmlSwFault + ; + +} 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 new file mode 100644 index 0000000..8f039c3 --- /dev/null +++ b/src/main/java/at/gv/util/wsdl/ur_V5/URSucheService.java @@ -0,0 +1,94 @@ + +package at.gv.util.wsdl.ur_V5; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceException; +import javax.xml.ws.WebServiceFeature; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.4-b01 + * Generated source version: 2.2 + * + */ +@WebServiceClient(name = "URSucheService", targetNamespace = "urn:at:statistik:ur:ws", wsdlLocation = "file:/D:/Projekte/svn/online-vollmachten/egovutils/src/main/resources/wsdl/ur_V5/URSucheService.wsdl") +public class URSucheService + extends Service +{ + + private final static URL URSUCHESERVICE_WSDL_LOCATION; + private final static WebServiceException URSUCHESERVICE_EXCEPTION; + private final static QName URSUCHESERVICE_QNAME = new QName("urn:at:statistik:ur:ws", "URSucheService"); + + static { + URL url = null; + WebServiceException e = null; + try { + url = new URL("file:/D:/Projekte/svn/online-vollmachten/egovutils/src/main/resources/wsdl/ur_V5/URSucheService.wsdl"); + } catch (MalformedURLException ex) { + e = new WebServiceException(ex); + } + URSUCHESERVICE_WSDL_LOCATION = url; + URSUCHESERVICE_EXCEPTION = e; + } + + public URSucheService() { + super(__getWsdlLocation(), URSUCHESERVICE_QNAME); + } + + 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, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public URSucheService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { + super(wsdlLocation, serviceName, features); + } + + /** + * + * @return + * returns URSuche + */ + @WebEndpoint(name = "URSucheService") + public URSuche getURSucheService() { + return super.getPort(new QName("urn:at:statistik:ur:ws", "URSucheService"), URSuche.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns URSuche + */ + @WebEndpoint(name = "URSucheService") + public URSuche getURSucheService(WebServiceFeature... features) { + return super.getPort(new QName("urn:at:statistik:ur:ws", "URSucheService"), URSuche.class, features); + } + + private static URL __getWsdlLocation() { + if (URSUCHESERVICE_EXCEPTION!= null) { + throw URSUCHESERVICE_EXCEPTION; + } + return URSUCHESERVICE_WSDL_LOCATION; + } + +} diff --git a/src/main/java/at/gv/util/wsdl/ur_V5/XmlSwFault.java b/src/main/java/at/gv/util/wsdl/ur_V5/XmlSwFault.java new file mode 100644 index 0000000..2f1ee37 --- /dev/null +++ b/src/main/java/at/gv/util/wsdl/ur_V5/XmlSwFault.java @@ -0,0 +1,55 @@ + +package at.gv.util.wsdl.ur_V5; + +import javax.xml.ws.WebFault; +import at.gv.util.xsd.ur_V5.xmlsw.CustomFaultType; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.4-b01 + * Generated source version: 2.2 + * + */ +@WebFault(name = "XmlSwFault", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#") +public class XmlSwFault + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private CustomFaultType faultInfo; + + /** + * + * @param message + * @param faultInfo + */ + public XmlSwFault(String message, CustomFaultType faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param message + * @param faultInfo + * @param cause + */ + public XmlSwFault(String message, CustomFaultType faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: at.gv.util.xsd.ur_V5.xmlsw.CustomFaultType + */ + public CustomFaultType getFaultInfo() { + return faultInfo; + } + +} diff --git a/src/main/java/at/gv/util/wsdl/ur_V5/package-info.java b/src/main/java/at/gv/util/wsdl/ur_V5/package-info.java new file mode 100644 index 0000000..847ecd4 --- /dev/null +++ b/src/main/java/at/gv/util/wsdl/ur_V5/package-info.java @@ -0,0 +1,6 @@ +/** + * Dieses WSDL-Dokument beschreibt den + * XML-Search-Service. + * + */ +package at.gv.util.wsdl.ur_V5; -- cgit v1.2.3