aboutsummaryrefslogtreecommitdiff
path: root/DocumentService/src/eu/stork/documentservice/SPDocumentService.java
diff options
context:
space:
mode:
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);
+}