diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2014-11-05 08:07:15 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2014-11-05 08:07:15 +0100 |
commit | 7a5b350a93990956106d91679240b6e8326cb110 (patch) | |
tree | 138196b56fb04f186f05387f8f68be6bd91a0e85 /src/main/java/at/gv/util/wsdl/mis | |
parent | e2150f22562b4bc06307f4ac7b842687390e4856 (diff) | |
download | egovutils-7a5b350a93990956106d91679240b6e8326cb110.tar.gz egovutils-7a5b350a93990956106d91679240b6e8326cb110.tar.bz2 egovutils-7a5b350a93990956106d91679240b6e8326cb110.zip |
change more client implementations to APACHE CXF
Diffstat (limited to 'src/main/java/at/gv/util/wsdl/mis')
-rw-r--r-- | src/main/java/at/gv/util/wsdl/mis/usp/GetMandatesPortType.java | 34 | ||||
-rw-r--r-- | src/main/java/at/gv/util/wsdl/mis/usp/GetMandatesService.java | 78 |
2 files changed, 60 insertions, 52 deletions
diff --git a/src/main/java/at/gv/util/wsdl/mis/usp/GetMandatesPortType.java b/src/main/java/at/gv/util/wsdl/mis/usp/GetMandatesPortType.java index 22a970a..a31a546 100644 --- a/src/main/java/at/gv/util/wsdl/mis/usp/GetMandatesPortType.java +++ b/src/main/java/at/gv/util/wsdl/mis/usp/GetMandatesPortType.java @@ -1,4 +1,3 @@ - package at.gv.util.wsdl.mis.usp; import javax.jws.WebMethod; @@ -7,35 +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.mis.usp.GetMandatesRequest; -import at.gv.util.xsd.mis.usp.GetMandatesResponse; -import at.gv.util.xsd.mis.usp.ObjectFactory; - /** - * 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:50:38.720+01:00 + * Generated source version: 3.0.1 * */ -@WebService(name = "GetMandatesPortType", targetNamespace = "http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/wsdl") +@WebService(targetNamespace = "http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/wsdl", name = "GetMandatesPortType") +@XmlSeeAlso({at.gv.util.xsd.mis.usp.ObjectFactory.class}) @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) -@XmlSeeAlso({ - ObjectFactory.class -}) public interface GetMandatesPortType { - - /** - * - * @param getMandatesRequest - * @return - * returns at.gv.util.xsd.mis.usp.GetMandatesResponse - */ - @WebMethod(operationName = "GetMandatesOperation", action = "usp:GetMandatesPortType#GetMandatesOperation") @WebResult(name = "GetMandatesResponse", targetNamespace = "http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/xsd", partName = "GetMandatesResponse") - public GetMandatesResponse getMandatesOperation( - @WebParam(name = "GetMandatesRequest", targetNamespace = "http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/xsd", partName = "GetMandatesRequest") - GetMandatesRequest getMandatesRequest); - + @WebMethod(operationName = "GetMandatesOperation", action = "usp:GetMandatesPortType#GetMandatesOperation") + public at.gv.util.xsd.mis.usp.GetMandatesResponse getMandatesOperation( + @WebParam(partName = "GetMandatesRequest", name = "GetMandatesRequest", targetNamespace = "http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/xsd") + at.gv.util.xsd.mis.usp.GetMandatesRequest getMandatesRequest + ); } diff --git a/src/main/java/at/gv/util/wsdl/mis/usp/GetMandatesService.java b/src/main/java/at/gv/util/wsdl/mis/usp/GetMandatesService.java index 778922f..7e9e012 100644 --- a/src/main/java/at/gv/util/wsdl/mis/usp/GetMandatesService.java +++ b/src/main/java/at/gv/util/wsdl/mis/usp/GetMandatesService.java @@ -1,41 +1,42 @@ - package at.gv.util.wsdl.mis.usp; -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:50:38.761+01:00 + * Generated source version: 3.0.1 * */ -@WebServiceClient(name = "GetMandatesService", targetNamespace = "http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/wsdl", wsdlLocation = "file:/D:/eclipse/development/egovutils/src/main/resources/wsdl/mis/usp/mis-usp-1.0.2.wsdl") -public class GetMandatesService - extends Service -{ +@WebServiceClient(name = "GetMandatesService", + wsdlLocation = "./src/main/resources/wsdl/mis/usp/mis-usp-1.0.2.wsdl", + targetNamespace = "http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/wsdl") +public class GetMandatesService extends Service { - private final static URL GETMANDATESSERVICE_WSDL_LOCATION; - private final static Logger logger = Logger.getLogger(at.gv.util.wsdl.mis.usp.GetMandatesService.class.getName()); + public final static URL WSDL_LOCATION; + public final static QName SERVICE = new QName("http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/wsdl", "GetMandatesService"); + public final static QName GetMandatesPort = new QName("http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/wsdl", "GetMandatesPort"); static { - URL url = null; - try { - URL baseUrl; - baseUrl = at.gv.util.wsdl.mis.usp.GetMandatesService.class.getResource("."); - url = new URL(baseUrl, "file:/D:/eclipse/development/egovutils/src/main/resources/wsdl/mis/usp/mis-usp-1.0.2.wsdl"); - } catch (MalformedURLException e) { - logger.warning("Failed to create URL for the wsdl Location: 'file:/D:/eclipse/development/egovutils/src/main/resources/wsdl/mis/usp/mis-usp-1.0.2.wsdl', retrying as a local file"); - logger.warning(e.getMessage()); - } - GETMANDATESSERVICE_WSDL_LOCATION = url; + URL url = GetMandatesService.class.getResource("./src/main/resources/wsdl/mis/usp/mis-usp-1.0.2.wsdl"); + if (url == null) { + url = GetMandatesService.class.getClassLoader().getResource("./src/main/resources/wsdl/mis/usp/mis-usp-1.0.2.wsdl"); + } + if (url == null) { + java.util.logging.Logger.getLogger(GetMandatesService.class.getName()) + .log(java.util.logging.Level.INFO, + "Can not initialize the default wsdl from {0}", "./src/main/resources/wsdl/mis/usp/mis-usp-1.0.2.wsdl"); + } + WSDL_LOCATION = url; + } + + public GetMandatesService(URL wsdlLocation) { + super(wsdlLocation, SERVICE); } public GetMandatesService(URL wsdlLocation, QName serviceName) { @@ -43,17 +44,38 @@ public class GetMandatesService } public GetMandatesService() { - super(GETMANDATESSERVICE_WSDL_LOCATION, new QName("http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/wsdl", "GetMandatesService")); + 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 GetMandatesService(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 GetMandatesService(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 GetMandatesService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) { + super(wsdlLocation, serviceName, features); + } + /** - * + * * @return * returns GetMandatesPortType */ @WebEndpoint(name = "GetMandatesPort") public GetMandatesPortType getGetMandatesPort() { - return super.getPort(new QName("http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/wsdl", "GetMandatesPort"), GetMandatesPortType.class); + return super.getPort(GetMandatesPort, GetMandatesPortType.class); } /** @@ -65,7 +87,7 @@ public class GetMandatesService */ @WebEndpoint(name = "GetMandatesPort") public GetMandatesPortType getGetMandatesPort(WebServiceFeature... features) { - return super.getPort(new QName("http://reference.e-government.gv.at/namespace/mandates/mis/usp/1.0.2/wsdl", "GetMandatesPort"), GetMandatesPortType.class, features); + return super.getPort(GetMandatesPort, GetMandatesPortType.class, features); } } |