From 6ea2c1db26260c1f36e01c58fc6f8ef0220e577e Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 5 Jun 2014 10:46:34 +0200 Subject: SOAP Service for backend upload + transaction ID fixes --- .../test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pdf-as-web-client/src/test') 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