From 7c4b5b31f1e0c7366ecc4c869b64d535817c0630 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:41:27 +0000 Subject: Changed local BKU communication to BASE64 encoding (Asign Client has not released the fix for BASE64 encoding yet) git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@450 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../at/asit/pdfover/gui/workflow/states/LocalBKUState.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java index 68dd60bb..54c24abc 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java @@ -84,8 +84,8 @@ public class LocalBKUState extends State { SLRequest request = this.state.signingState .getSignatureRequest(); - //String sl_request = request.getBase64Request(); - String sl_request = request.getFileUploadRequest(); + String sl_request = request.getBase64Request(); + //String sl_request = request.getFileUploadRequest(); HttpClient client = new HttpClient(); @@ -95,17 +95,17 @@ public class LocalBKUState extends State { StringPart xmlpart = new StringPart( "XMLRequest", sl_request, "UTF-8"); //$NON-NLS-1$ //$NON-NLS-2$ - FilePart filepart = new FilePart("fileupload", //$NON-NLS-1$ + /*FilePart filepart = new FilePart("fileupload", //$NON-NLS-1$ new FileUploadSource(request.getSignatureData())); Part[] parts = { xmlpart, filepart }; method.setRequestEntity(new MultipartRequestEntity(parts, method - .getParams())); + .getParams()));*/ //log.debug("SL REQUEST: " + sl_request); //$NON-NLS-1$ - //method.addParameter("XMLRequest", sl_request); //$NON-NLS-1$ + method.addParameter("XMLRequest", sl_request); //$NON-NLS-1$ int returnCode = client.executeMethod(method); -- cgit v1.2.3