aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-moa/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-moa/src/main')
-rw-r--r--pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java2
-rw-r--r--pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java5
2 files changed, 3 insertions, 4 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 1b4064a5..405c02a6 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,7 +136,7 @@ public class MOAConnector implements ISignatureConnector,
logger.info("signing with MOA @ " + this.moaEndpoint);
URL moaUrl;
try {
- moaUrl = new URL(this.moaEndpoint);
+ moaUrl = new URL(this.moaEndpoint+"?wsdl");
} catch (MalformedURLException e1) {
throw new PdfAsException("Invalid MOA endpoint!", e1);
}
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 42af02f7..f71dceee 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
@@ -18,8 +18,6 @@ import org.slf4j.LoggerFactory;
import org.w3._2000._09.xmldsig.KeyInfoType;
import org.w3._2000._09.xmldsig.X509DataType;
-import com.sun.org.apache.xerces.internal.dom.ElementNSImpl;
-
import at.gv.e_government.reference.namespace.moa._20020822.CMSContentBaseType;
import at.gv.e_government.reference.namespace.moa._20020822.CMSDataObjectOptionalMetaType;
import at.gv.e_government.reference.namespace.moa._20020822.CheckResultType;
@@ -53,7 +51,8 @@ public class MOAVerifier implements IVerifier {
List<VerifyResult> resultList = new ArrayList<VerifyResult>();
try {
logger.info("verification with MOA @ " + this.moaEndpoint);
- URL moaUrl = new URL(this.moaEndpoint);
+
+ URL moaUrl = new URL(this.moaEndpoint + "?wsdl");
SignatureVerificationService service = new SignatureVerificationService(moaUrl);