From 295078772e6786b5ba1a6933133f977e2e93d3b5 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Wed, 22 Oct 2014 09:39:52 +0200 Subject: MOA performance improved. No live client generation from online service wsdl --- pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java | 6 +++--- pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'pdf-as-moa/src/main/java') diff --git a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java index d79320e3..a44d6ea5 100644 --- a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java +++ b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java @@ -136,13 +136,13 @@ public class MOAConnector implements ISignatureConnector, RequestedSignature requestedSignature) throws PdfAsException { logger.info("signing with MOA @ " + this.moaEndpoint); - URL moaUrl; + /*URL moaUrl; try { moaUrl = new URL(this.moaEndpoint+"?wsdl"); } catch (MalformedURLException e1) { throw new PdfAsException("Invalid MOA endpoint!", e1); - } - SignatureCreationService service = new SignatureCreationService(moaUrl); + }*/ + SignatureCreationService service = new SignatureCreationService(); SignatureCreationPortType creationPort = service.getSignatureCreationPort(); BindingProvider provider = (BindingProvider) creationPort; diff --git a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java index f71dceee..45f9a223 100644 --- a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java +++ b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java @@ -52,9 +52,9 @@ public class MOAVerifier implements IVerifier { try { logger.info("verification with MOA @ " + this.moaEndpoint); - URL moaUrl = new URL(this.moaEndpoint + "?wsdl"); + //URL moaUrl = new URL(this.moaEndpoint + "?wsdl"); - SignatureVerificationService service = new SignatureVerificationService(moaUrl); + SignatureVerificationService service = new SignatureVerificationService(); SignatureVerificationPortType verificationPort = service.getSignatureVerificationPort(); BindingProvider provider = (BindingProvider) verificationPort; -- cgit v1.2.3