diff options
Diffstat (limited to 'src/main/java/at/gv/util/wsdl/misstork')
3 files changed, 85 insertions, 104 deletions
diff --git a/src/main/java/at/gv/util/wsdl/misstork/MISSTORKService.java b/src/main/java/at/gv/util/wsdl/misstork/MISSTORKService.java index e098ccc..e1b4052 100644 --- a/src/main/java/at/gv/util/wsdl/misstork/MISSTORKService.java +++ b/src/main/java/at/gv/util/wsdl/misstork/MISSTORKService.java @@ -1,63 +1,81 @@ - package at.gv.util.wsdl.misstork; -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-28T17:28:32.624+01:00 + * Generated source version: 3.0.1 * */ -@WebServiceClient(name = "MISSTORKService", targetNamespace = "http://reference.e-government.gv.at/namespace/misstork/20131126/wsdl", wsdlLocation = "file:/D:/Projekte/svn/online-vollmachten/egovutils/src/main/resources/wsdl/misstork/misstork.wsdl") -public class MISSTORKService - extends Service -{ +@WebServiceClient(name = "MISSTORKService", + wsdlLocation = "./src/main/resources/wsdl/misstork/misstork.wsdl", + targetNamespace = "http://reference.e-government.gv.at/namespace/misstork/20131126/wsdl") +public class MISSTORKService extends Service { - private final static URL MISSTORKSERVICE_WSDL_LOCATION; - private final static WebServiceException MISSTORKSERVICE_EXCEPTION; - private final static QName MISSTORKSERVICE_QNAME = new QName("http://reference.e-government.gv.at/namespace/misstork/20131126/wsdl", "MISSTORKService"); + public final static URL WSDL_LOCATION; + public final static QName SERVICE = new QName("http://reference.e-government.gv.at/namespace/misstork/20131126/wsdl", "MISSTORKService"); + public final static QName MISSTORKPort = new QName("http://reference.e-government.gv.at/namespace/misstork/20131126/wsdl", "MISSTORKPort"); static { - URL url = null; - WebServiceException e = null; - try { - url = new URL("file:/D:/Projekte/svn/online-vollmachten/egovutils/src/main/resources/wsdl/misstork/misstork.wsdl"); - } catch (MalformedURLException ex) { - e = new WebServiceException(ex); - } - MISSTORKSERVICE_WSDL_LOCATION = url; - MISSTORKSERVICE_EXCEPTION = e; - } - - public MISSTORKService() { - super(__getWsdlLocation(), MISSTORKSERVICE_QNAME); + URL url = MISSTORKService.class.getResource("./src/main/resources/wsdl/misstork/misstork.wsdl"); + if (url == null) { + url = MISSTORKService.class.getClassLoader().getResource("./src/main/resources/wsdl/misstork/misstork.wsdl"); + } + if (url == null) { + java.util.logging.Logger.getLogger(MISSTORKService.class.getName()) + .log(java.util.logging.Level.INFO, + "Can not initialize the default wsdl from {0}", "./src/main/resources/wsdl/misstork/misstork.wsdl"); + } + WSDL_LOCATION = url; } public MISSTORKService(URL wsdlLocation) { - super(wsdlLocation, MISSTORKSERVICE_QNAME); + super(wsdlLocation, SERVICE); } public MISSTORKService(URL wsdlLocation, QName serviceName) { super(wsdlLocation, serviceName); } + public MISSTORKService() { + 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 MISSTORKService(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 MISSTORKService(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 MISSTORKService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) { + super(wsdlLocation, serviceName, features); + } + /** - * + * * @return * returns MISSTORKType */ @WebEndpoint(name = "MISSTORKPort") public MISSTORKType getMISSTORKPort() { - return super.getPort(new QName("http://reference.e-government.gv.at/namespace/misstork/20131126/wsdl", "MISSTORKPort"), MISSTORKType.class); + return super.getPort(MISSTORKPort, MISSTORKType.class); } /** @@ -69,14 +87,7 @@ public class MISSTORKService */ @WebEndpoint(name = "MISSTORKPort") public MISSTORKType getMISSTORKPort(WebServiceFeature... features) { - return super.getPort(new QName("http://reference.e-government.gv.at/namespace/misstork/20131126/wsdl", "MISSTORKPort"), MISSTORKType.class, features); - } - - private static URL __getWsdlLocation() { - if (MISSTORKSERVICE_EXCEPTION!= null) { - throw MISSTORKSERVICE_EXCEPTION; - } - return MISSTORKSERVICE_WSDL_LOCATION; + return super.getPort(MISSTORKPort, MISSTORKType.class, features); } } diff --git a/src/main/java/at/gv/util/wsdl/misstork/MISSTORKType.java b/src/main/java/at/gv/util/wsdl/misstork/MISSTORKType.java index eb807e6..f5fc08f 100644 --- a/src/main/java/at/gv/util/wsdl/misstork/MISSTORKType.java +++ b/src/main/java/at/gv/util/wsdl/misstork/MISSTORKType.java @@ -1,4 +1,3 @@ - package at.gv.util.wsdl.misstork; import javax.jws.WebMethod; @@ -7,40 +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.misstork.MisStorkRequest; -import at.gv.util.xsd.misstork.MisStorkResponse; - /** - * 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-28T17:28:32.614+01:00 + * Generated source version: 3.0.1 * */ -@WebService(name = "MISSTORKType", targetNamespace = "http://reference.e-government.gv.at/namespace/misstork/20131126/wsdl") +@WebService(targetNamespace = "http://reference.e-government.gv.at/namespace/misstork/20131126/wsdl", name = "MISSTORKType") +@XmlSeeAlso({at.gv.util.xsd.persondata.ObjectFactory.class, at.gv.util.xsd.mis.ObjectFactory.class, at.gv.util.xsd.misstork.ObjectFactory.class, at.gv.util.xsd.xmldsig.ObjectFactory.class}) @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) -@XmlSeeAlso({ - at.gv.util.xsd.misstork.ObjectFactory.class, - at.gv.util.xsd.persondata.ObjectFactory.class, - at.gv.util.xsd.mis.ObjectFactory.class, - at.gv.util.xsd.xmldsig.ObjectFactory.class -}) public interface MISSTORKType { - - /** - * - * @param misStorkRequest - * @return - * returns at.gv.util.xsd.misstork.MisStorkResponse - * @throws MisStorkError - */ - @WebMethod(operationName = "MISSTORKOperation", action = "ms:MISSTORKType#MISSTORKOperation") @WebResult(name = "MisStorkResponse", targetNamespace = "http://reference.e-government.gv.at/namespace/misstork/20131126/xsd", partName = "MisStorkResponse") - public MisStorkResponse misstorkOperation( - @WebParam(name = "MisStorkRequest", targetNamespace = "http://reference.e-government.gv.at/namespace/misstork/20131126/xsd", partName = "MisStorkRequest") - MisStorkRequest misStorkRequest) - throws MisStorkError - ; - + @WebMethod(operationName = "MISSTORKOperation", action = "ms:MISSTORKType#MISSTORKOperation") + public at.gv.util.xsd.misstork.MisStorkResponse misstorkOperation( + @WebParam(partName = "MisStorkRequest", name = "MisStorkRequest", targetNamespace = "http://reference.e-government.gv.at/namespace/misstork/20131126/xsd") + at.gv.util.xsd.misstork.MisStorkRequest misStorkRequest + ) throws MisStorkError; } diff --git a/src/main/java/at/gv/util/wsdl/misstork/MisStorkError.java b/src/main/java/at/gv/util/wsdl/misstork/MisStorkError.java index 6b3ecac..15d009d 100644 --- a/src/main/java/at/gv/util/wsdl/misstork/MisStorkError.java +++ b/src/main/java/at/gv/util/wsdl/misstork/MisStorkError.java @@ -5,50 +5,39 @@ import javax.xml.ws.WebFault; /** - * 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-28T17:28:32.584+01:00 + * Generated source version: 3.0.1 */ + @WebFault(name = "MisStorkError", targetNamespace = "http://reference.e-government.gv.at/namespace/misstork/20131126/xsd") -public class MisStorkError - extends Exception -{ - - /** - * Java type that goes as soapenv:Fault detail element. - * - */ - private at.gv.util.xsd.misstork.MisStorkError faultInfo; - - /** - * - * @param message - * @param faultInfo - */ - public MisStorkError(String message, at.gv.util.xsd.misstork.MisStorkError faultInfo) { +public class MisStorkError extends Exception { + + private at.gv.util.xsd.misstork.MisStorkError misStorkError; + + public MisStorkError() { + super(); + } + + public MisStorkError(String message) { super(message); - this.faultInfo = faultInfo; + } + + public MisStorkError(String message, Throwable cause) { + super(message, cause); } - /** - * - * @param message - * @param faultInfo - * @param cause - */ - public MisStorkError(String message, at.gv.util.xsd.misstork.MisStorkError faultInfo, Throwable cause) { + public MisStorkError(String message, at.gv.util.xsd.misstork.MisStorkError misStorkError) { + super(message); + this.misStorkError = misStorkError; + } + + public MisStorkError(String message, at.gv.util.xsd.misstork.MisStorkError misStorkError, Throwable cause) { super(message, cause); - this.faultInfo = faultInfo; + this.misStorkError = misStorkError; } - /** - * - * @return - * returns fault bean: at.gv.util.xsd.misstork.MisStorkError - */ public at.gv.util.xsd.misstork.MisStorkError getFaultInfo() { - return faultInfo; + return this.misStorkError; } - } |