From f7c97e3423fa51f9f3d32f0285f2468d95d5987d Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Thu, 23 Jan 2020 13:47:25 +0100 Subject: add first version of SZR client v4.0 --- src/main/java/at/gv/util/wsdl/szr_v4/SZR.java | 139 +++++++++++++++++++++ .../java/at/gv/util/wsdl/szr_v4/SZRException.java | 43 +++++++ .../java/at/gv/util/wsdl/szr_v4/SZRService.java | 135 ++++++++++++++++++++ 3 files changed, 317 insertions(+) create mode 100644 src/main/java/at/gv/util/wsdl/szr_v4/SZR.java create mode 100644 src/main/java/at/gv/util/wsdl/szr_v4/SZRException.java create mode 100644 src/main/java/at/gv/util/wsdl/szr_v4/SZRService.java (limited to 'src/main/java/at/gv/util/wsdl/szr_v4') diff --git a/src/main/java/at/gv/util/wsdl/szr_v4/SZR.java b/src/main/java/at/gv/util/wsdl/szr_v4/SZR.java new file mode 100644 index 0000000..80879b8 --- /dev/null +++ b/src/main/java/at/gv/util/wsdl/szr_v4/SZR.java @@ -0,0 +1,139 @@ +package at.gv.util.wsdl.szr_v4; + +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; + +/** + * This class was generated by Apache CXF 3.1.10 + * 2020-01-23T08:35:58.916+01:00 + * Generated source version: 3.1.10 + * + */ +@WebService(targetNamespace = "urn:SZRServices", name = "SZR") +@XmlSeeAlso({at.gv.util.xsd.szr.pvp19.sec.ObjectFactory.class, at.gv.util.xsd.szr.xmldsig.ObjectFactory.class, at.gv.util.xsd.szr.pvp19.ObjectFactory.class, at.gv.util.xsd.szr.persondata.ObjectFactory.class, at.gv.util.xsd.szr.ecdsa.ObjectFactory.class, at.gv.util.xsd.szr_v4.ObjectFactory.class}) +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) +public interface SZR { + + @WebMethod(operationName = "GetBPK") + @WebResult(name = "GetBPKResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.GetBPKResponse getBPK( + @WebParam(partName = "parameters", name = "GetBPK", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.GetBPK parameters + ) throws SZRException; + + @WebMethod(operationName = "ZMRAnwendungsIntegration") + @WebResult(name = "ZMRAnwendungsIntegrationResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.ZMRAnwendungsIntegrationResponse zmrAnwendungsIntegration( + @WebParam(partName = "parameters", name = "ZMRAnwendungsIntegration", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.ZMRAnwendungsIntegration parameters + ) throws SZRException; + + @WebMethod(operationName = "GetStammzahlEncrypted") + @WebResult(name = "GetStammzahlEncryptedResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.GetStammzahlEncryptedResponse getStammzahlEncrypted( + @WebParam(partName = "parameters", name = "GetStammzahlEncrypted", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.GetStammzahlEncrypted parameters + ) throws SZRException; + + @WebMethod(operationName = "GetVKZPermission") + @WebResult(name = "GetVKZPermissionResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.GetVKZPermissionResponse getVKZPermission( + @WebParam(partName = "parameters", name = "GetVKZPermission", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.GetVKZPermission parameters + ) throws SZRException; + + @WebMethod(operationName = "SignContent") + @WebResult(name = "SignContentResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.SignContentResponse signContent( + @WebParam(partName = "parameters", name = "SignContent", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.SignContent parameters + ) throws SZRException; + + @WebMethod(operationName = "GetIdentityLink") + @WebResult(name = "GetIdentityLinkResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.GetIdentityLinkResponse getIdentityLink( + @WebParam(partName = "parameters", name = "GetIdentityLink", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.GetIdentityLink parameters + ) throws SZRException; + + @WebMethod(operationName = "BasiszahlZuBPK") + @WebResult(name = "BasiszahlZuBPKResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.BasiszahlZuBPKResponse basiszahlZuBPK( + @WebParam(partName = "parameters", name = "BasiszahlZuBPK", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.BasiszahlZuBPK parameters + ) throws SZRException; + + @WebMethod(operationName = "GetStammzahl") + @WebResult(name = "GetStammzahlResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.GetStammzahlResponse getStammzahl( + @WebParam(partName = "parameters", name = "GetStammzahl", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.GetStammzahl parameters + ) throws SZRException; + + @WebMethod(operationName = "ValidateIdentityLink") + @WebResult(name = "ValidateIdentityLinkResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.ValidateIdentityLinkResponse validateIdentityLink( + @WebParam(partName = "parameters", name = "ValidateIdentityLink", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.ValidateIdentityLink parameters + ) throws SZRException; + + @WebMethod(operationName = "BPKzuBasiszahl") + @WebResult(name = "BPKzuBasiszahlResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.BPKzuBasiszahlResponse bpKzuBasiszahl( + @WebParam(partName = "parameters", name = "BPKzuBasiszahl", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.BPKzuBasiszahl parameters + ) throws SZRException; + + @WebMethod(operationName = "GetIdentityLinkEidas") + @WebResult(name = "GetIdentityLinkEidasResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.GetIdentityLinkEidasResponse getIdentityLinkEidas( + @WebParam(partName = "parameters", name = "GetIdentityLinkEidas", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.GetIdentityLinkEidas parameters + ) throws SZRException; + + @WebMethod(operationName = "GetBPKs") + @WebResult(name = "GetBPKsResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.GetBPKsResponse getBPKs( + @WebParam(partName = "parameters", name = "GetBPKs", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.GetBPKs parameters + ) throws SZRException; + + @WebMethod(operationName = "TransformBPK") + @WebResult(name = "TransformBPKResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.TransformBPKResponse transformBPK( + @WebParam(partName = "parameters", name = "TransformBPK", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.TransformBPK parameters + ) throws SZRException; + + @WebMethod(operationName = "GetBPKFromStammzahlEncrypted") + @WebResult(name = "GetBPKFromStammzahlEncryptedResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.GetBPKFromStammzahlEncryptedResponse getBPKFromStammzahlEncrypted( + @WebParam(partName = "parameters", name = "GetBPKFromStammzahlEncrypted", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.GetBPKFromStammzahlEncrypted parameters + ) throws SZRException; + + @WebMethod(operationName = "GetBPKKombi") + @WebResult(name = "GetBPKKombiResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.GetBPKKombiResponse getBPKKombi( + @WebParam(partName = "parameters", name = "GetBPKKombi", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.GetBPKKombi parameters + ) throws SZRException; + + @WebMethod(operationName = "GetVersion") + @WebResult(name = "GetVersionResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.GetVersionResponse getVersion( + @WebParam(partName = "parameters", name = "GetVersion", targetNamespace = "urn:SZRServices") + java.lang.Object parameters + ) throws SZRException; + + @WebMethod(operationName = "GetBPKZPV") + @WebResult(name = "GetBPKZPVResponse", targetNamespace = "urn:SZRServices", partName = "parameters") + public at.gv.util.xsd.szr_v4.GetBPKZPVResponse getBPKZPV( + @WebParam(partName = "parameters", name = "GetBPKZPV", targetNamespace = "urn:SZRServices") + at.gv.util.xsd.szr_v4.GetBPKZPV parameters + ) throws SZRException; +} diff --git a/src/main/java/at/gv/util/wsdl/szr_v4/SZRException.java b/src/main/java/at/gv/util/wsdl/szr_v4/SZRException.java new file mode 100644 index 0000000..4fcbef3 --- /dev/null +++ b/src/main/java/at/gv/util/wsdl/szr_v4/SZRException.java @@ -0,0 +1,43 @@ + +package at.gv.util.wsdl.szr_v4; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 3.1.10 + * 2020-01-23T08:35:58.869+01:00 + * Generated source version: 3.1.10 + */ + +@WebFault(name = "SZRException", targetNamespace = "urn:SZRServices") +public class SZRException extends Exception { + + private at.gv.util.xsd.szr_v4.SZRException szrException; + + public SZRException() { + super(); + } + + public SZRException(String message) { + super(message); + } + + public SZRException(String message, Throwable cause) { + super(message, cause); + } + + public SZRException(String message, at.gv.util.xsd.szr_v4.SZRException szrException) { + super(message); + this.szrException = szrException; + } + + public SZRException(String message, at.gv.util.xsd.szr_v4.SZRException szrException, Throwable cause) { + super(message, cause); + this.szrException = szrException; + } + + public at.gv.util.xsd.szr_v4.SZRException getFaultInfo() { + return this.szrException; + } +} diff --git a/src/main/java/at/gv/util/wsdl/szr_v4/SZRService.java b/src/main/java/at/gv/util/wsdl/szr_v4/SZRService.java new file mode 100644 index 0000000..b8107d7 --- /dev/null +++ b/src/main/java/at/gv/util/wsdl/szr_v4/SZRService.java @@ -0,0 +1,135 @@ +package at.gv.util.wsdl.szr_v4; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +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 Apache CXF 3.1.10 + * 2020-01-23T08:35:58.938+01:00 + * Generated source version: 3.1.10 + * + */ +@WebServiceClient(name = "SZRService", + wsdlLocation = "file:./src/main/resources/wsdl/szr_v4/SZR_v4.0.wsdl", + targetNamespace = "urn:SZRServices") +public class SZRService extends Service { + + public final static URL WSDL_LOCATION; + + public final static QName SERVICE = new QName("urn:SZRServices", "SZRService"); + public final static QName SZRProduktionsumgebung = new QName("urn:SZRServices", "SZRProduktionsumgebung"); + public final static QName SZRTestumgebung = new QName("urn:SZRServices", "SZRTestumgebung"); + public final static QName SZRBusinesspartnerTestumgebung = new QName("urn:SZRServices", "SZRBusinesspartnerTestumgebung"); + static { + URL url = null; + try { + url = new URL("file:./src/main/resources/wsdl/szr_v4/SZR_v4.0.wsdl"); + } catch (MalformedURLException e) { + java.util.logging.Logger.getLogger(SZRService.class.getName()) + .log(java.util.logging.Level.INFO, + "Can not initialize the default wsdl from {0}", "file:./src/main/resources/wsdl/szr_v4/SZR_v4.0.wsdl"); + } + WSDL_LOCATION = url; + } + + public SZRService(URL wsdlLocation) { + super(wsdlLocation, SERVICE); + } + + public SZRService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public SZRService() { + super(WSDL_LOCATION, SERVICE); + } + + public SZRService(WebServiceFeature ... features) { + super(WSDL_LOCATION, SERVICE, features); + } + + public SZRService(URL wsdlLocation, WebServiceFeature ... features) { + super(wsdlLocation, SERVICE, features); + } + + public SZRService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) { + super(wsdlLocation, serviceName, features); + } + + + + + /** + * + * @return + * returns SZR + */ + @WebEndpoint(name = "SZRProduktionsumgebung") + public SZR getSZRProduktionsumgebung() { + return super.getPort(SZRProduktionsumgebung, SZR.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 SZR + */ + @WebEndpoint(name = "SZRProduktionsumgebung") + public SZR getSZRProduktionsumgebung(WebServiceFeature... features) { + return super.getPort(SZRProduktionsumgebung, SZR.class, features); + } + + + /** + * + * @return + * returns SZR + */ + @WebEndpoint(name = "SZRTestumgebung") + public SZR getSZRTestumgebung() { + return super.getPort(SZRTestumgebung, SZR.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 SZR + */ + @WebEndpoint(name = "SZRTestumgebung") + public SZR getSZRTestumgebung(WebServiceFeature... features) { + return super.getPort(SZRTestumgebung, SZR.class, features); + } + + + /** + * + * @return + * returns SZR + */ + @WebEndpoint(name = "SZRBusinesspartnerTestumgebung") + public SZR getSZRBusinesspartnerTestumgebung() { + return super.getPort(SZRBusinesspartnerTestumgebung, SZR.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 SZR + */ + @WebEndpoint(name = "SZRBusinesspartnerTestumgebung") + public SZR getSZRBusinesspartnerTestumgebung(WebServiceFeature... features) { + return super.getPort(SZRBusinesspartnerTestumgebung, SZR.class, features); + } + +} -- cgit v1.2.3