aboutsummaryrefslogtreecommitdiff
path: root/DocumentService/src/eu/stork/documentservice/SPDocumentService.java
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2014-06-04 18:50:50 +0200
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2014-06-04 18:56:07 +0200
commitf81b3716ac27094ab1845668cb38a1fe6a2d5f8c (patch)
tree933cd9ae96e6c7c01b78aea37b904b31419b1b0f /DocumentService/src/eu/stork/documentservice/SPDocumentService.java
parent31c8bad4214bfee45eef0ca98faf3f6f32fe5b23 (diff)
downloadmoa-id-spss-f81b3716ac27094ab1845668cb38a1fe6a2d5f8c.tar.gz
moa-id-spss-f81b3716ac27094ab1845668cb38a1fe6a2d5f8c.tar.bz2
moa-id-spss-f81b3716ac27094ab1845668cb38a1fe6a2d5f8c.zip
added DocumentService
Diffstat (limited to 'DocumentService/src/eu/stork/documentservice/SPDocumentService.java')
-rw-r--r--DocumentService/src/eu/stork/documentservice/SPDocumentService.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/DocumentService/src/eu/stork/documentservice/SPDocumentService.java b/DocumentService/src/eu/stork/documentservice/SPDocumentService.java
new file mode 100644
index 000000000..35235c644
--- /dev/null
+++ b/DocumentService/src/eu/stork/documentservice/SPDocumentService.java
@@ -0,0 +1,35 @@
+package eu.stork.documentservice;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+import javax.jws.soap.SOAPBinding.Use;
+import javax.xml.ws.soap.MTOM;
+
+@MTOM
+@WebService(name = "SPDocumentService", targetNamespace = "http://stork.eu")
+@SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL)
+/**
+ *
+ * @author Advania
+ *
+ */
+public interface SPDocumentService {
+
+ /**
+ * Add document to temp layer
+ * @param document the document data to add
+ * @return the document temp id
+ */
+ @WebMethod(operationName = "addSPSignDocument")
+ public String addSPSignDocument(byte[] document, String spId, String mimeType, String receiverCert);
+
+ /**
+ * Get document from Temp layer
+ * @param docId the document id
+ * @return the document found
+ */
+ @WebMethod(operationName = "getSPDocument")
+ public byte[] getSPDocument(String docId, String spId);
+}