aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-moa/src
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-22 09:39:52 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-22 09:39:52 +0200
commit295078772e6786b5ba1a6933133f977e2e93d3b5 (patch)
tree871607f5e50fd8fd7c99c21b700ccdb2e3417f2e /pdf-as-moa/src
parent9398b0f3ab7796ab37d465e243dc9eb38cebfd56 (diff)
downloadpdf-as-4-295078772e6786b5ba1a6933133f977e2e93d3b5.tar.gz
pdf-as-4-295078772e6786b5ba1a6933133f977e2e93d3b5.tar.bz2
pdf-as-4-295078772e6786b5ba1a6933133f977e2e93d3b5.zip
MOA performance improved. No live client generation from online service wsdl
Diffstat (limited to 'pdf-as-moa/src')
-rw-r--r--pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java6
-rw-r--r--pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java4
-rw-r--r--pdf-as-moa/src/main/resources/wsdl/MOA-SPSS-1.5.2.xsd4
3 files changed, 7 insertions, 7 deletions
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;
diff --git a/pdf-as-moa/src/main/resources/wsdl/MOA-SPSS-1.5.2.xsd b/pdf-as-moa/src/main/resources/wsdl/MOA-SPSS-1.5.2.xsd
index cc0a7c88..9b94d993 100644
--- a/pdf-as-moa/src/main/resources/wsdl/MOA-SPSS-1.5.2.xsd
+++ b/pdf-as-moa/src/main/resources/wsdl/MOA-SPSS-1.5.2.xsd
@@ -3,8 +3,8 @@
MOA SP/SS 2.0.0 Schema
-->
<xsd:schema xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://reference.e-government.gv.at/namespace/moa/20020822#" targetNamespace="http://reference.e-government.gv.at/namespace/moa/20020822#" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.2">
- <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd"/>
- <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+ <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="./xmldsig-core-schema.xsd"/>
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="./xml.xsd"/>
<!--########## Create CMS Signature ###-->
<!--### Create CMS Signature Request ###-->
<xsd:element name="CreateCMSSignatureRequest">