From af2d6dad0711f95c280621b94f7ca3da8f91632a Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 6 May 2014 15:55:34 +0200 Subject: SOAP Bulk Request --- .../at/gv/egiz/pdfas/api/ws/PDFASSignRequest.java | 44 ++++++++++++++++++++++ .../at/gv/egiz/pdfas/api/ws/PDFASSignResponse.java | 41 ++++++++++++++++++++ .../java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java | 6 +++ 3 files changed, 91 insertions(+) create mode 100644 pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignRequest.java create mode 100644 pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignResponse.java (limited to 'pdf-as-common') diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignRequest.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignRequest.java new file mode 100644 index 00000000..c875171d --- /dev/null +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignRequest.java @@ -0,0 +1,44 @@ +package at.gv.egiz.pdfas.api.ws; + +import java.io.Serializable; + +import javax.xml.bind.annotation.XmlElement; + +public class PDFASSignRequest implements Serializable { + + /** + * + */ + private static final long serialVersionUID = -5572093903422676582L; + + String requestID; + byte[] inputData; + PDFASSignParameters parameters; + + @XmlElement(required = true, nillable = false) + public String getRequestID() { + return requestID; + } + + public void setRequestID(String requestID) { + this.requestID = requestID; + } + + @XmlElement(required = true, nillable = false) + public byte[] getInputData() { + return inputData; + } + + public void setInputData(byte[] inputData) { + this.inputData = inputData; + } + + @XmlElement(required = true, nillable = false) + public PDFASSignParameters getParameters() { + return parameters; + } + + public void setParameters(PDFASSignParameters parameters) { + this.parameters = parameters; + } +} diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignResponse.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignResponse.java new file mode 100644 index 00000000..a27d1afe --- /dev/null +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignResponse.java @@ -0,0 +1,41 @@ +package at.gv.egiz.pdfas.api.ws; + +import java.io.Serializable; + +import javax.xml.bind.annotation.XmlElement; + +public class PDFASSignResponse implements Serializable { + + /** + * + */ + private static final long serialVersionUID = -6369697640117556071L; + + String requestID; + String error; + byte[] signedPDF; + + @XmlElement(required = true, nillable = false) + public String getRequestID() { + return requestID; + } + public void setRequestID(String requestID) { + this.requestID = requestID; + } + + @XmlElement(required = false, nillable = false) + public byte[] getSignedPDF() { + return signedPDF; + } + public void setSignedPDF(byte[] signedPDF) { + this.signedPDF = signedPDF; + } + + @XmlElement(required = false) + public String getError() { + return error; + } + public void setError(String error) { + this.error = error; + } +} diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java index aa37cf69..5d283cf7 100644 --- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java @@ -11,4 +11,10 @@ import javax.jws.soap.SOAPBinding.Style; public interface PDFASSigning { @WebMethod(operationName = "sign") public byte[] signPDFDokument(@WebParam(name = "pdfDocument")byte[] inputDocument, @WebParam(name = "parameters")PDFASSignParameters parameters); + + @WebMethod(operationName = "signSingle") + public PDFASSignResponse signPDFDokument(@WebParam(name = "signRequest") PDFASSignRequest request); + + @WebMethod(operationName = "signBulk") + public PDFASSignResponse[] signPDFDokument(@WebParam(name = "signRequests") PDFASSignRequest[] request); } -- cgit v1.2.3