From 6ea2c1db26260c1f36e01c58fc6f8ef0220e577e Mon Sep 17 00:00:00 2001
From: Andreas Fitzek <andreas.fitzek@iaik.tugraz.at>
Date: Thu, 5 Jun 2014 10:46:34 +0200
Subject: SOAP Service for backend upload + transaction ID fixes

---
 .../main/java/at/gv/egiz/pdfas/web/client/RemotePDFSigner.java |  5 -----
 .../test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java | 10 ++++++++--
 2 files changed, 8 insertions(+), 7 deletions(-)

(limited to 'pdf-as-web-client/src')

diff --git a/pdf-as-web-client/src/main/java/at/gv/egiz/pdfas/web/client/RemotePDFSigner.java b/pdf-as-web-client/src/main/java/at/gv/egiz/pdfas/web/client/RemotePDFSigner.java
index 456a3aaa..7fd6a189 100644
--- a/pdf-as-web-client/src/main/java/at/gv/egiz/pdfas/web/client/RemotePDFSigner.java
+++ b/pdf-as-web-client/src/main/java/at/gv/egiz/pdfas/web/client/RemotePDFSigner.java
@@ -34,11 +34,6 @@ public class RemotePDFSigner implements PDFASSigning {
 		binding.setMTOMEnabled(useMTOM);
 	}
 
-	public byte[] signPDFDokument(byte[] inputDocument,
-			PDFASSignParameters parameters) {
-		return proxy.signPDFDokument(inputDocument, parameters);
-	}
-
 	public PDFASSignResponse signPDFDokument(PDFASSignRequest request) {
 		return proxy.signPDFDokument(request);
 	}
diff --git a/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java b/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java
index 8573b224..32c6dbad 100644
--- a/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java
+++ b/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java
@@ -24,7 +24,7 @@ public class SimpleTest {
 			byte[] inputData = IOUtils.readFully(fis, -1, true);
 
 			PDFASSignParameters signParameters = new PDFASSignParameters();
-			signParameters.setConnector(Connector.JKS);
+			signParameters.setConnector(Connector.BKU);
 			signParameters.setPosition(null);
 			signParameters.setProfile("SIGNATURBLOCK_DE");
 
@@ -42,8 +42,14 @@ public class SimpleTest {
 
 			RemotePDFSigner signer = new RemotePDFSigner(endpoint, false);
 
+			PDFASSignRequest signrequest = new PDFASSignRequest();
+			signrequest.setInputData(inputData);
+			signrequest.setParameters(signParameters);
+			signParameters.setTransactionId("MYID ....");
 			System.out.println("Simple Request:"); 
-			byte[] outputFile = signer.signPDFDokument(inputData, signParameters);
+			PDFASSignResponse response = signer.signPDFDokument(signrequest);
+			
+			System.out.println("User URL: " + response.getRedirectUrl());
 			
 			/*
 			 * System.out.println("Simple Request:"); byte[] outputFile =
-- 
cgit v1.2.3