summaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/util/wsdl
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2014-10-16 13:42:04 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2014-10-16 13:42:04 +0200
commite2150f22562b4bc06307f4ac7b842687390e4856 (patch)
tree768250437cca30ab4fda039d924269e37fd99414 /src/main/java/at/gv/util/wsdl
parent2f3b7f180511a5e0af674e3a25ddbaabaa38d36c (diff)
downloadegovutils-e2150f22562b4bc06307f4ac7b842687390e4856.tar.gz
egovutils-e2150f22562b4bc06307f4ac7b842687390e4856.tar.bz2
egovutils-e2150f22562b4bc06307f4ac7b842687390e4856.zip
change webservice implementation to Apache CXF
Diffstat (limited to 'src/main/java/at/gv/util/wsdl')
-rw-r--r--src/main/java/at/gv/util/wsdl/ersb/ErsbService.java37
-rw-r--r--src/main/java/at/gv/util/wsdl/ersb/ErsbServiceService.java90
-rw-r--r--src/main/java/at/gv/util/wsdl/ur_V2/URSuche.java60
-rw-r--r--src/main/java/at/gv/util/wsdl/ur_V2/URSucheService.java90
-rw-r--r--src/main/java/at/gv/util/wsdl/ur_V2/package-info.java6
-rw-r--r--src/main/java/at/gv/util/wsdl/ur_V5/URSuche.java66
-rw-r--r--src/main/java/at/gv/util/wsdl/ur_V5/URSucheService.java99
-rw-r--r--src/main/java/at/gv/util/wsdl/ur_V5/XmlSwFault.java64
-rw-r--r--src/main/java/at/gv/util/wsdl/ur_V5/package-info.java6
9 files changed, 225 insertions, 293 deletions
diff --git a/src/main/java/at/gv/util/wsdl/ersb/ErsbService.java b/src/main/java/at/gv/util/wsdl/ersb/ErsbService.java
index 6c0dddd..2783fad 100644
--- a/src/main/java/at/gv/util/wsdl/ersb/ErsbService.java
+++ b/src/main/java/at/gv/util/wsdl/ersb/ErsbService.java
@@ -1,4 +1,3 @@
-
package at.gv.util.wsdl.ersb;
import javax.jws.WebMethod;
@@ -7,38 +6,22 @@ import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
-import at.gv.util.xsd.ersb.ErsbRequest;
-import at.gv.util.xsd.ersb.ErsbResponse;
-
/**
- * This class was generated by the JAX-WS RI.
- * JAX-WS RI 2.2.4-b01
- * Generated source version: 2.2
+ * This class was generated by Apache CXF 3.0.1
+ * 2014-10-16T11:55:31.380+02:00
+ * Generated source version: 3.0.1
*
*/
-@WebService(name = "ErsbService", targetNamespace = "http://statistik.at/namespace/ersb/1#")
+@WebService(targetNamespace = "http://statistik.at/namespace/ersb/1#", name = "ErsbService")
+@XmlSeeAlso({at.gv.util.xsd.ersb.pd.ObjectFactory.class, at.gv.util.xsd.ersb.personendata1.ObjectFactory.class, at.gv.util.xsd.ersb.basicTypes.ObjectFactory.class, at.gv.util.xsd.ersb.ObjectFactory.class, at.gv.util.xsd.ersb.simpletypes.ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
-@XmlSeeAlso({
- at.gv.util.xsd.ersb.personendata1.ObjectFactory.class,
- at.gv.util.xsd.ersb.pd.ObjectFactory.class,
- at.gv.util.xsd.ersb.ObjectFactory.class,
- at.gv.util.xsd.ersb.basicTypes.ObjectFactory.class,
- at.gv.util.xsd.ersb.simpletypes.ObjectFactory.class
-})
public interface ErsbService {
-
- /**
- *
- * @param ersbRequest
- * @return
- * returns at.gv.util.xsd.ersb.ErsbResponse
- */
- @WebMethod(operationName = "Ersb")
@WebResult(name = "ErsbResponse", targetNamespace = "http://statistik.at/namespace/ersb/1#", partName = "ErsbResponse")
- public ErsbResponse ersb(
- @WebParam(name = "ErsbRequest", targetNamespace = "http://statistik.at/namespace/ersb/1#", partName = "ErsbRequest")
- ErsbRequest ersbRequest);
-
+ @WebMethod(operationName = "Ersb")
+ public at.gv.util.xsd.ersb.ErsbResponse ersb(
+ @WebParam(partName = "ErsbRequest", name = "ErsbRequest", targetNamespace = "http://statistik.at/namespace/ersb/1#")
+ at.gv.util.xsd.ersb.ErsbRequest ersbRequest
+ );
}
diff --git a/src/main/java/at/gv/util/wsdl/ersb/ErsbServiceService.java b/src/main/java/at/gv/util/wsdl/ersb/ErsbServiceService.java
index 36e4694..6c96482 100644
--- a/src/main/java/at/gv/util/wsdl/ersb/ErsbServiceService.java
+++ b/src/main/java/at/gv/util/wsdl/ersb/ErsbServiceService.java
@@ -1,66 +1,81 @@
-
package at.gv.util.wsdl.ersb;
-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;
-
+import javax.xml.ws.Service;
/**
- * This class was generated by the JAX-WS RI.
- * JAX-WS RI 2.2.4-b01
- * Generated source version: 2.2
+ * This class was generated by Apache CXF 3.0.1
+ * 2014-10-16T11:55:31.427+02:00
+ * Generated source version: 3.0.1
*
*/
-@WebServiceClient(name = "ErsbServiceService", targetNamespace = "http://statistik.at/namespace/ersb/1#", wsdlLocation = "file:/D:/Projekte/svn/online-vollmachten/egovutils/src/main/resources/wsdl/ERsB/1.1/ErsbService.wsdl")
-public class ErsbServiceService
- extends Service
-{
+@WebServiceClient(name = "ErsbServiceService",
+ wsdlLocation = "./src/main/resources/wsdl/ERsB/1.1/ErsbService.wsdl",
+ targetNamespace = "http://statistik.at/namespace/ersb/1#")
+public class ErsbServiceService extends Service {
- private final static URL ERSBSERVICESERVICE_WSDL_LOCATION;
- private final static WebServiceException ERSBSERVICESERVICE_EXCEPTION;
- private final static QName ERSBSERVICESERVICE_QNAME = new QName("http://statistik.at/namespace/ersb/1#", "ErsbServiceService");
+ public final static URL WSDL_LOCATION;
+ public final static QName SERVICE = new QName("http://statistik.at/namespace/ersb/1#", "ErsbServiceService");
+ public final static QName ErsbServiceSoap11 = new QName("http://statistik.at/namespace/ersb/1#", "ErsbServiceSoap11");
static {
- URL url = null;
- WebServiceException e = null;
- try {
- url = new URL("file:/D:/Projekte/svn/online-vollmachten/egovutils/src/main/resources/wsdl/ERsB/1.1/ErsbService.wsdl");
- } catch (MalformedURLException ex) {
- e = new WebServiceException(ex);
- }
- ERSBSERVICESERVICE_WSDL_LOCATION = url;
- ERSBSERVICESERVICE_EXCEPTION = e;
+ URL url = ErsbServiceService.class.getResource("./src/main/resources/wsdl/ERsB/1.1/ErsbService.wsdl");
+ if (url == null) {
+ url = ErsbServiceService.class.getClassLoader().getResource("./src/main/resources/wsdl/ERsB/1.1/ErsbService.wsdl");
+ }
+ if (url == null) {
+ java.util.logging.Logger.getLogger(ErsbServiceService.class.getName())
+ .log(java.util.logging.Level.INFO,
+ "Can not initialize the default wsdl from {0}", "./src/main/resources/wsdl/ERsB/1.1/ErsbService.wsdl");
+ }
+ WSDL_LOCATION = url;
}
- public ErsbServiceService() {
- super(__getWsdlLocation(), ERSBSERVICESERVICE_QNAME);
- }
-
-
public ErsbServiceService(URL wsdlLocation) {
- super(wsdlLocation, ERSBSERVICESERVICE_QNAME);
+ super(wsdlLocation, SERVICE);
}
-
public ErsbServiceService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
+ public ErsbServiceService() {
+ super(WSDL_LOCATION, SERVICE);
+ }
+
+ //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
+ //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
+ //compliant code instead.
+ public ErsbServiceService(WebServiceFeature ... features) {
+ super(WSDL_LOCATION, SERVICE, features);
+ }
+
+ //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
+ //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
+ //compliant code instead.
+ public ErsbServiceService(URL wsdlLocation, WebServiceFeature ... features) {
+ super(wsdlLocation, SERVICE, features);
+ }
+
+ //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
+ //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
+ //compliant code instead.
+ public ErsbServiceService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
+ super(wsdlLocation, serviceName, features);
+ }
/**
- *
+ *
* @return
* returns ErsbService
*/
@WebEndpoint(name = "ErsbServiceSoap11")
public ErsbService getErsbServiceSoap11() {
- return super.getPort(new QName("http://statistik.at/namespace/ersb/1#", "ErsbServiceSoap11"), ErsbService.class);
+ return super.getPort(ErsbServiceSoap11, ErsbService.class);
}
/**
@@ -72,14 +87,7 @@ public class ErsbServiceService
*/
@WebEndpoint(name = "ErsbServiceSoap11")
public ErsbService getErsbServiceSoap11(WebServiceFeature... features) {
- return super.getPort(new QName("http://statistik.at/namespace/ersb/1#", "ErsbServiceSoap11"), ErsbService.class, features);
- }
-
- private static URL __getWsdlLocation() {
- if (ERSBSERVICESERVICE_EXCEPTION!= null) {
- throw ERSBSERVICESERVICE_EXCEPTION;
- }
- return ERSBSERVICESERVICE_WSDL_LOCATION;
+ return super.getPort(ErsbServiceSoap11, ErsbService.class, features);
}
}
diff --git a/src/main/java/at/gv/util/wsdl/ur_V2/URSuche.java b/src/main/java/at/gv/util/wsdl/ur_V2/URSuche.java
index ca967e1..aae4050 100644
--- a/src/main/java/at/gv/util/wsdl/ur_V2/URSuche.java
+++ b/src/main/java/at/gv/util/wsdl/ur_V2/URSuche.java
@@ -1,4 +1,3 @@
-
package at.gv.util.wsdl.ur_V2;
import javax.jws.WebMethod;
@@ -7,56 +6,39 @@ 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_V2.xmlsw.SearchByExampleType;
-import at.gv.util.xsd.ur_V2.xmlsw.SearchByIdType;
-import at.gv.util.xsd.ur_V2.xmlsw.SearchResponseType;
-
/**
- * This class was generated by the JAX-WS RI.
- * JAX-WS RI 2.2.4-b01
- * Generated source version: 2.2
+ * This class was generated by Apache CXF 3.0.1
+ * 2014-10-16T12:00:01.057+02:00
+ * Generated source version: 3.0.1
*
*/
-@WebService(name = "URSuche", targetNamespace = "urn:at:statistik:ur:ws")
+@WebService(targetNamespace = "urn:at:statistik:ur:ws", name = "URSuche")
+@XmlSeeAlso({at.gv.util.xsd.ur_V2.pd.ObjectFactory.class, at.gv.util.xsd.ur_V2.search.ObjectFactory.class, at.gv.util.xsd.ur_V2.xmlsw.ObjectFactory.class, at.gv.util.xsd.ur_V2.simpletypes.ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
-@XmlSeeAlso({
- at.gv.util.xsd.ur_V2.pd.ObjectFactory.class,
- at.gv.util.xsd.ur_V2.search.ObjectFactory.class,
- at.gv.util.xsd.ur_V2.xmlsw.ObjectFactory.class,
- at.gv.util.xsd.ur_V2.simpletypes.ObjectFactory.class
-})
public interface URSuche {
-
/**
- * Operation für den Abfragetyp
- * Search by Example
- *
- *
- * @param body
- * @return
- * returns at.gv.util.xsd.ur_V2.xmlsw.SearchResponseType
+ * Operation für den Abfragetyp
+ * Search by Example
+ *
*/
- @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);
+ @WebMethod
+ public at.gv.util.xsd.ur_V2.xmlsw.SearchResponseType searchByExample(
+ @WebParam(partName = "body", name = "SearchByExample", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#")
+ at.gv.util.xsd.ur_V2.xmlsw.SearchByExampleType body
+ );
/**
- * Operation für den Abfragetyp
- * Search by Id
- *
- *
- * @param body
- * @return
- * returns at.gv.util.xsd.ur_V2.xmlsw.SearchResponseType
+ * Operation für den Abfragetyp
+ * Search by Id
+ *
*/
- @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);
-
+ @WebMethod
+ public at.gv.util.xsd.ur_V2.xmlsw.SearchResponseType searchById(
+ @WebParam(partName = "body", name = "SearchById", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#")
+ at.gv.util.xsd.ur_V2.xmlsw.SearchByIdType body
+ );
}
diff --git a/src/main/java/at/gv/util/wsdl/ur_V2/URSucheService.java b/src/main/java/at/gv/util/wsdl/ur_V2/URSucheService.java
index 50c0be3..c4e9653 100644
--- a/src/main/java/at/gv/util/wsdl/ur_V2/URSucheService.java
+++ b/src/main/java/at/gv/util/wsdl/ur_V2/URSucheService.java
@@ -1,66 +1,81 @@
-
package at.gv.util.wsdl.ur_V2;
-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;
-
+import javax.xml.ws.Service;
/**
- * This class was generated by the JAX-WS RI.
- * JAX-WS RI 2.2.4-b01
- * Generated source version: 2.2
+ * This class was generated by Apache CXF 3.0.1
+ * 2014-10-16T12:00:01.097+02:00
+ * Generated source version: 3.0.1
*
*/
-@WebServiceClient(name = "URSucheService", targetNamespace = "urn:at:statistik:ur:ws", wsdlLocation = "file:/D:/Projekte/svn/online-vollmachten/egovutils/src/main/resources/wsdl/ur_V2/URSucheService.wsdl")
-public class URSucheService
- extends Service
-{
+@WebServiceClient(name = "URSucheService",
+ wsdlLocation = "./src/main/resources/wsdl/ur_V2/URSucheService.wsdl",
+ targetNamespace = "urn:at:statistik:ur:ws")
+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");
+ public final static URL WSDL_LOCATION;
+ public final static QName SERVICE = new QName("urn:at:statistik:ur:ws", "URSucheService");
+ public final static QName URSucheService = 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_V2/URSucheService.wsdl");
- } catch (MalformedURLException ex) {
- e = new WebServiceException(ex);
- }
- URSUCHESERVICE_WSDL_LOCATION = url;
- URSUCHESERVICE_EXCEPTION = e;
+ URL url = URSucheService.class.getResource("./src/main/resources/wsdl/ur_V2/URSucheService.wsdl");
+ if (url == null) {
+ url = URSucheService.class.getClassLoader().getResource("./src/main/resources/wsdl/ur_V2/URSucheService.wsdl");
+ }
+ if (url == null) {
+ java.util.logging.Logger.getLogger(URSucheService.class.getName())
+ .log(java.util.logging.Level.INFO,
+ "Can not initialize the default wsdl from {0}", "./src/main/resources/wsdl/ur_V2/URSucheService.wsdl");
+ }
+ WSDL_LOCATION = url;
}
- public URSucheService() {
- super(__getWsdlLocation(), URSUCHESERVICE_QNAME);
- }
-
-
public URSucheService(URL wsdlLocation) {
- super(wsdlLocation, URSUCHESERVICE_QNAME);
+ super(wsdlLocation, SERVICE);
}
-
public URSucheService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
+ public URSucheService() {
+ super(WSDL_LOCATION, SERVICE);
+ }
+
+ //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
+ //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
+ //compliant code instead.
+ public URSucheService(WebServiceFeature ... features) {
+ super(WSDL_LOCATION, SERVICE, features);
+ }
+
+ //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
+ //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
+ //compliant code instead.
+ public URSucheService(URL wsdlLocation, WebServiceFeature ... features) {
+ super(wsdlLocation, SERVICE, features);
+ }
+
+ //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
+ //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
+ //compliant code instead.
+ 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);
+ return super.getPort(URSucheService, URSuche.class);
}
/**
@@ -72,14 +87,7 @@ public class URSucheService
*/
@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;
+ return super.getPort(URSucheService, URSuche.class, features);
}
}
diff --git a/src/main/java/at/gv/util/wsdl/ur_V2/package-info.java b/src/main/java/at/gv/util/wsdl/ur_V2/package-info.java
deleted file mode 100644
index 7836a77..0000000
--- a/src/main/java/at/gv/util/wsdl/ur_V2/package-info.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Dieses WSDL-Dokument beschreibt den
- * XML-Search-Service.
- *
- */
-package at.gv.util.wsdl.ur_V2;
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
index 1d0e99d..a8dc124 100644
--- a/src/main/java/at/gv/util/wsdl/ur_V5/URSuche.java
+++ b/src/main/java/at/gv/util/wsdl/ur_V5/URSuche.java
@@ -1,4 +1,3 @@
-
package at.gv.util.wsdl.ur_V5;
import javax.jws.WebMethod;
@@ -7,62 +6,39 @@ 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
+ * This class was generated by Apache CXF 3.0.1
+ * 2014-10-16T12:00:10.771+02:00
+ * Generated source version: 3.0.1
*
*/
-@WebService(name = "URSuche", targetNamespace = "urn:at:statistik:ur:ws")
+@WebService(targetNamespace = "urn:at:statistik:ur:ws", name = "URSuche")
+@XmlSeeAlso({at.gv.util.xsd.ur_V5.pd.ObjectFactory.class, at.gv.util.xsd.ur_V5.simpletypes.ObjectFactory.class, at.gv.util.xsd.ur_V5.search.ObjectFactory.class, at.gv.util.xsd.ur_V5.xmlsw.ObjectFactory.class})
@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
+ * Operation für den Abfragetyp
+ * Search by Example
+ *
*/
- @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
- ;
+ @WebMethod
+ public at.gv.util.xsd.ur_V5.xmlsw.SearchResponseType searchByExample(
+ @WebParam(partName = "body", name = "SearchByExample", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#")
+ at.gv.util.xsd.ur_V5.xmlsw.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
+ * Operation für den Abfragetyp
+ * Search by Id
+ *
*/
- @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
- ;
-
+ @WebMethod
+ public at.gv.util.xsd.ur_V5.xmlsw.SearchResponseType searchById(
+ @WebParam(partName = "body", name = "SearchById", targetNamespace = "http://reference.e-government.gv.at/namespace/xml-sw/1#")
+ at.gv.util.xsd.ur_V5.xmlsw.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
index 8e5fe73..048acdb 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
@@ -1,75 +1,81 @@
-
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;
-
+import javax.xml.ws.Service;
/**
- * This class was generated by the JAX-WS RI.
- * JAX-WS RI 2.2.4-b01
- * Generated source version: 2.2
+ * This class was generated by Apache CXF 3.0.1
+ * 2014-10-16T12:00:10.781+02:00
+ * Generated source version: 3.0.1
*
*/
-@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
-{
+@WebServiceClient(name = "URSucheService",
+ wsdlLocation = "./src/main/resources/wsdl/ur_V5/URSucheService.wsdl",
+ targetNamespace = "urn:at:statistik:ur:ws")
+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");
+ public final static URL WSDL_LOCATION;
+ public final static QName SERVICE = new QName("urn:at:statistik:ur:ws", "URSucheService");
+ public final static QName URSucheService = 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;
+ URL url = URSucheService.class.getResource("./src/main/resources/wsdl/ur_V5/URSucheService.wsdl");
+ if (url == null) {
+ url = URSucheService.class.getClassLoader().getResource("./src/main/resources/wsdl/ur_V5/URSucheService.wsdl");
+ }
+ if (url == null) {
+ java.util.logging.Logger.getLogger(URSucheService.class.getName())
+ .log(java.util.logging.Level.INFO,
+ "Can not initialize the default wsdl from {0}", "./src/main/resources/wsdl/ur_V5/URSucheService.wsdl");
+ }
+ WSDL_LOCATION = url;
}
- public URSucheService() {
- super(__getWsdlLocation(), URSUCHESERVICE_QNAME);
- }
-
-// public URSucheService(WebServiceFeature... features) {
-// super(__getWsdlLocation(), URSUCHESERVICE_QNAME, features);
-// }
-
public URSucheService(URL wsdlLocation) {
- super(wsdlLocation, URSUCHESERVICE_QNAME);
+ super(wsdlLocation, SERVICE);
}
-// 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() {
+ super(WSDL_LOCATION, SERVICE);
+ }
+
+ //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
+ //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
+ //compliant code instead.
+ public URSucheService(WebServiceFeature ... features) {
+ super(WSDL_LOCATION, SERVICE, features);
+ }
+
+ //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
+ //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
+ //compliant code instead.
+ public URSucheService(URL wsdlLocation, WebServiceFeature ... features) {
+ super(wsdlLocation, SERVICE, features);
+ }
+
+ //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
+ //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
+ //compliant code instead.
+ 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);
+ return super.getPort(URSucheService, URSuche.class);
}
/**
@@ -81,14 +87,7 @@ public class URSucheService
*/
@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;
+ return super.getPort(URSucheService, URSuche.class, features);
}
}
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
index 2f1ee37..bb0f7a9 100644
--- a/src/main/java/at/gv/util/wsdl/ur_V5/XmlSwFault.java
+++ b/src/main/java/at/gv/util/wsdl/ur_V5/XmlSwFault.java
@@ -2,54 +2,42 @@
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
- *
+ * This class was generated by Apache CXF 3.0.1
+ * 2014-10-16T12:00:10.741+02:00
+ * Generated source version: 3.0.1
*/
+
@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) {
+public class XmlSwFault extends Exception {
+
+ private at.gv.util.xsd.ur_V5.xmlsw.CustomFaultType xmlSwFault;
+
+ public XmlSwFault() {
+ super();
+ }
+
+ public XmlSwFault(String message) {
super(message);
- this.faultInfo = faultInfo;
}
-
- /**
- *
- * @param message
- * @param faultInfo
- * @param cause
- */
- public XmlSwFault(String message, CustomFaultType faultInfo, Throwable cause) {
+
+ public XmlSwFault(String message, 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;
+ public XmlSwFault(String message, at.gv.util.xsd.ur_V5.xmlsw.CustomFaultType xmlSwFault) {
+ super(message);
+ this.xmlSwFault = xmlSwFault;
}
+ public XmlSwFault(String message, at.gv.util.xsd.ur_V5.xmlsw.CustomFaultType xmlSwFault, Throwable cause) {
+ super(message, cause);
+ this.xmlSwFault = xmlSwFault;
+ }
+
+ public at.gv.util.xsd.ur_V5.xmlsw.CustomFaultType getFaultInfo() {
+ return this.xmlSwFault;
+ }
}
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
deleted file mode 100644
index 847ecd4..0000000
--- a/src/main/java/at/gv/util/wsdl/ur_V5/package-info.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Dieses WSDL-Dokument beschreibt den
- * XML-Search-Service.
- *
- */
-package at.gv.util.wsdl.ur_V5;