diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-05 15:37:29 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-05 15:37:29 +0200 |
commit | 260f5824b5713c8c56faca4e429337f09bb007c7 (patch) | |
tree | 923aedb31e24ad836b5752773d0f70536d24de46 /pdf-as-web-client/src/test/java/at | |
parent | da4c666bc905eb5e9378307c801da18795f233c9 (diff) | |
download | pdf-as-4-260f5824b5713c8c56faca4e429337f09bb007c7.tar.gz pdf-as-4-260f5824b5713c8c56faca4e429337f09bb007c7.tar.bz2 pdf-as-4-260f5824b5713c8c56faca4e429337f09bb007c7.zip |
Fixed SOAP Profile parameter
Diffstat (limited to 'pdf-as-web-client/src/test/java/at')
-rw-r--r-- | pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java | 17 |
1 files changed, 10 insertions, 7 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 e922c501..2d40f320 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 @@ -15,25 +15,27 @@ public class SimpleTest { public static void main(String[] args) { try { FileInputStream fis = new FileInputStream( - "/home/afitzek/Documents/arm_arm.pdf"); + "/home/afitzek/simple.pdf"); byte[] inputData = IOUtils.readFully(fis, -1, true); PDFASSignParameters signParameters = new PDFASSignParameters(); - signParameters.setConnector(Connector.ONLINEBKU); + signParameters.setConnector(Connector.BKU); signParameters.setPosition(null); - signParameters.setProfile("SIGNATURBLOCK_DE"); + signParameters.setProfile("SIGNATURBLOCK_SMALL_DE"); PDFASSignRequest request = new PDFASSignRequest(); request.setInputData(inputData); request.setParameters(signParameters); request.setRequestID("SOME TEST ID"); - URL endpoint = new - URL("http://demo.egiz.gv.at/demoportal-pdf_as/wssign?wsdl"); + //URL endpoint = new + //URL("http://demo.egiz.gv.at/demoportal-pdf_as/wssign?wsdl"); + //URL endpoint = new + // URL("http://www.buergerkarte.at/pdf-as-extern-4/wssign?wsdl"); //URL endpoint = new URL( // "http://localhost:8080/pdf-as-web/wssign?wsdl"); - //URL endpoint = new URL( - // "http://192.168.56.10/pdf-as-web/wssign?wsdl"); + URL endpoint = new URL( + "http://192.168.56.10/pdf-as-web/wssign?wsdl"); RemotePDFSigner signer = new RemotePDFSigner(endpoint, false); @@ -41,6 +43,7 @@ public class SimpleTest { signrequest.setInputData(inputData); signrequest.setParameters(signParameters); signParameters.setTransactionId("MYID ...."); + signParameters.setPosition("f:80;w:230;p:2"); System.out.println("Simple Request:"); PDFASSignResponse response = signer.signPDFDokument(signrequest); |