aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web-client/src/test/java/at/gv/egiz
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-05-14 11:39:31 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-05-14 11:39:31 +0200
commitcd7fb8b2ae3b11877007aef3dd0ee1e9c74a4e69 (patch)
tree18c3bcab5fddfa3e7857115df7f0694d45cdbb79 /pdf-as-web-client/src/test/java/at/gv/egiz
parentb0003ddc4bebc411c5a3296bf5f172b80b443525 (diff)
downloadpdf-as-4-cd7fb8b2ae3b11877007aef3dd0ee1e9c74a4e69.tar.gz
pdf-as-4-cd7fb8b2ae3b11877007aef3dd0ee1e9c74a4e69.tar.bz2
pdf-as-4-cd7fb8b2ae3b11877007aef3dd0ee1e9c74a4e69.zip
PDF-AS Wev Client Test changes
Diffstat (limited to 'pdf-as-web-client/src/test/java/at/gv/egiz')
-rw-r--r--pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java17
1 files changed, 9 insertions, 8 deletions
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 e7696ceb..8573b224 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
@@ -35,11 +35,16 @@ public class SimpleTest {
// URL endpoint = new
// URL("http://demo.egiz.gv.at/demoportal-pdf_as/wssign?wsdl");
+ //URL endpoint = new URL(
+ // "http://localhost:8080/pdf-as-web/wssign?wsdl");
URL endpoint = new URL(
- "http://localhost:8080/pdf-as-web/wssign?wsdl");
+ "http://192.168.56.10/pdf-as-web/wssign?wsdl");
RemotePDFSigner signer = new RemotePDFSigner(endpoint, false);
+ System.out.println("Simple Request:");
+ byte[] outputFile = signer.signPDFDokument(inputData, signParameters);
+
/*
* System.out.println("Simple Request:"); byte[] outputFile =
* signer.signPDFDokument(inputData, signParameters);
@@ -60,6 +65,7 @@ public class SimpleTest {
* response.getError()); }
*/
+ /*
List<PDFASSignRequest> bulk = new ArrayList<PDFASSignRequest>();
for (int i = 0; i < 10; i++) {
bulk.add(request);
@@ -77,12 +83,7 @@ public class SimpleTest {
PDFASSignResponse bulkresponse = responses
.getSignResponses().get(i);
System.out.println("ID: " + bulkresponse.getRequestID());
- /*
- * if (bulkresponse.getSignedPDF() != null) {
- * FileOutputStream fos2 = new FileOutputStream(
- * "/home/afitzek/simple_request_obj_signed_"+ i +".pdf");
- * fos2.write(bulkresponse.getSignedPDF()); fos2.close(); }
- */
+
if (bulkresponse.getError() != null) {
System.out.println("ERROR: " + bulkresponse.getError());
} else {
@@ -90,7 +91,7 @@ public class SimpleTest {
}
}
}
-
+ */
System.out.println("Done!");
} catch (Throwable e) {
e.printStackTrace();