summaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/util/wsdl/SignatureCreationService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv/util/wsdl/SignatureCreationService.java')
-rw-r--r--src/main/java/at/gv/util/wsdl/SignatureCreationService.java78
1 files changed, 50 insertions, 28 deletions
diff --git a/src/main/java/at/gv/util/wsdl/SignatureCreationService.java b/src/main/java/at/gv/util/wsdl/SignatureCreationService.java
index e8d2777..96c4035 100644
--- a/src/main/java/at/gv/util/wsdl/SignatureCreationService.java
+++ b/src/main/java/at/gv/util/wsdl/SignatureCreationService.java
@@ -1,41 +1,42 @@
-
package at.gv.util.wsdl;
-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;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
-
+import javax.xml.ws.Service;
/**
- * This class was generated by the JAX-WS RI.
- * JAX-WS RI 2.1.6 in JDK 6
- * Generated source version: 2.1
+ * This class was generated by Apache CXF 3.0.1
+ * 2014-10-28T17:44:05.539+01:00
+ * Generated source version: 3.0.1
*
*/
-@WebServiceClient(name = "SignatureCreationService", targetNamespace = "http://reference.e-government.gv.at/namespace/moa/20020822#moa.wsdl", wsdlLocation = "file:/D:/eclipse/development/openzuse/trunk/zuseutil/src/main/resources/wsdl/MOA-SPSS-1.3.wsdl")
-public class SignatureCreationService
- extends Service
-{
+@WebServiceClient(name = "SignatureCreationService",
+ wsdlLocation = "./src/main/resources/wsdl/MOA-SPSS-1.3.wsdl",
+ targetNamespace = "http://reference.e-government.gv.at/namespace/moa/20020822#moa.wsdl")
+public class SignatureCreationService extends Service {
- private final static URL SIGNATURECREATIONSERVICE_WSDL_LOCATION;
- private final static Logger logger = Logger.getLogger(at.gv.util.wsdl.SignatureCreationService.class.getName());
+ public final static URL WSDL_LOCATION;
+ public final static QName SERVICE = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#moa.wsdl", "SignatureCreationService");
+ public final static QName SignatureCreationPort = new QName("http://reference.e-government.gv.at/namespace/moa/20020822#moa.wsdl", "SignatureCreationPort");
static {
- URL url = null;
- try {
- URL baseUrl;
- baseUrl = at.gv.util.wsdl.SignatureCreationService.class.getResource(".");
- url = new URL(baseUrl, "file:/D:/eclipse/development/openzuse/trunk/zuseutil/src/main/resources/wsdl/MOA-SPSS-1.3.wsdl");
- } catch (MalformedURLException e) {
- logger.warning("Failed to create URL for the wsdl Location: 'file:/D:/eclipse/development/openzuse/trunk/zuseutil/src/main/resources/wsdl/MOA-SPSS-1.3.wsdl', retrying as a local file");
- logger.warning(e.getMessage());
- }
- SIGNATURECREATIONSERVICE_WSDL_LOCATION = url;
+ URL url = SignatureCreationService.class.getResource("./src/main/resources/wsdl/MOA-SPSS-1.3.wsdl");
+ if (url == null) {
+ url = SignatureCreationService.class.getClassLoader().getResource("./src/main/resources/wsdl/MOA-SPSS-1.3.wsdl");
+ }
+ if (url == null) {
+ java.util.logging.Logger.getLogger(SignatureCreationService.class.getName())
+ .log(java.util.logging.Level.INFO,
+ "Can not initialize the default wsdl from {0}", "./src/main/resources/wsdl/MOA-SPSS-1.3.wsdl");
+ }
+ WSDL_LOCATION = url;
+ }
+
+ public SignatureCreationService(URL wsdlLocation) {
+ super(wsdlLocation, SERVICE);
}
public SignatureCreationService(URL wsdlLocation, QName serviceName) {
@@ -43,17 +44,38 @@ public class SignatureCreationService
}
public SignatureCreationService() {
- super(SIGNATURECREATIONSERVICE_WSDL_LOCATION, new QName("http://reference.e-government.gv.at/namespace/moa/20020822#moa.wsdl", "SignatureCreationService"));
+ 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 SignatureCreationService(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 SignatureCreationService(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 SignatureCreationService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
+ super(wsdlLocation, serviceName, features);
+ }
+
/**
- *
+ *
* @return
* returns SignatureCreationPortType
*/
@WebEndpoint(name = "SignatureCreationPort")
public SignatureCreationPortType getSignatureCreationPort() {
- return super.getPort(new QName("http://reference.e-government.gv.at/namespace/moa/20020822#moa.wsdl", "SignatureCreationPort"), SignatureCreationPortType.class);
+ return super.getPort(SignatureCreationPort, SignatureCreationPortType.class);
}
/**
@@ -65,7 +87,7 @@ public class SignatureCreationService
*/
@WebEndpoint(name = "SignatureCreationPort")
public SignatureCreationPortType getSignatureCreationPort(WebServiceFeature... features) {
- return super.getPort(new QName("http://reference.e-government.gv.at/namespace/moa/20020822#moa.wsdl", "SignatureCreationPort"), SignatureCreationPortType.class, features);
+ return super.getPort(SignatureCreationPort, SignatureCreationPortType.class, features);
}
}