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);
}