diff options
author | (no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-08-06 14:26:08 +0000 |
---|---|---|
committer | (no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-08-06 14:26:08 +0000 |
commit | f25a072fd1c3b131d5f2f15689942ca7c55a62c0 (patch) | |
tree | bb9a27f99ebbb16c8513ec4bbd72f8f4912b3367 /spss.test/src/at/gv/egovernment/moa/spss | |
parent | 3c1368b8d7182973c15f10e9ade3c1a0bb4fbaa7 (diff) | |
download | moa-id-spss-f25a072fd1c3b131d5f2f15689942ca7c55a62c0.tar.gz moa-id-spss-f25a072fd1c3b131d5f2f15689942ca7c55a62c0.tar.bz2 moa-id-spss-f25a072fd1c3b131d5f2f15689942ca7c55a62c0.zip |
This commit was manufactured by cvs2svn to create tagtags/Build-ID-1_4_0
'Build-ID-1_4_0'.
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/Build-ID-1_4_0@907 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'spss.test/src/at/gv/egovernment/moa/spss')
3 files changed, 0 insertions, 89 deletions
diff --git a/spss.test/src/at/gv/egovernment/moa/spss/client/call/MOACaller.java b/spss.test/src/at/gv/egovernment/moa/spss/client/call/MOACaller.java deleted file mode 100644 index 13a06b2fb..000000000 --- a/spss.test/src/at/gv/egovernment/moa/spss/client/call/MOACaller.java +++ /dev/null @@ -1,38 +0,0 @@ -package at.gv.egovernment.moa.spss.client.call; - -import java.rmi.RemoteException; -import java.util.Vector; - -import javax.xml.namespace.QName; -import javax.xml.rpc.Call; -import javax.xml.rpc.Service; -import javax.xml.rpc.ServiceException; -import javax.xml.rpc.ServiceFactory; - -import org.apache.axis.message.SOAPBodyElement; -import org.w3c.dom.Element; - -/** - * @author Patrick Peck - * @version $Id$ - */ -public class MOACaller { - - protected Element doCall(QName serviceName, Element request, String endPoint) - throws RemoteException, ServiceException, Exception { - Service service = ServiceFactory.newInstance().createService(serviceName); - Call call = service.createCall(); - SOAPBodyElement body = - new SOAPBodyElement(request); - SOAPBodyElement[] params = new SOAPBodyElement[] {body}; - Vector responses; - SOAPBodyElement response; - - call.setTargetEndpointAddress(endPoint); - responses = (Vector) call.invoke(params); - response = (SOAPBodyElement) responses.get(0); - - return response.getAsDOM(); - } - -} diff --git a/spss.test/src/at/gv/egovernment/moa/spss/client/call/SignatureCreationCaller.java b/spss.test/src/at/gv/egovernment/moa/spss/client/call/SignatureCreationCaller.java deleted file mode 100644 index 0ca4a23c0..000000000 --- a/spss.test/src/at/gv/egovernment/moa/spss/client/call/SignatureCreationCaller.java +++ /dev/null @@ -1,23 +0,0 @@ -package at.gv.egovernment.moa.spss.client.call; - -import java.rmi.RemoteException; - -import javax.xml.namespace.QName; -import javax.xml.rpc.ServiceException; - -import org.w3c.dom.Element; - -/** - * @author Patrick Peck - * @version $Id$ - */ -public class SignatureCreationCaller extends MOACaller { - - private static final QName SERVICE_QNAME = new QName("SignatureCreation"); - - public Element createXMLSignature(Element request, String endPoint) - throws ServiceException, RemoteException, Exception { - return doCall(SERVICE_QNAME, request, endPoint); - } - -} diff --git a/spss.test/src/at/gv/egovernment/moa/spss/client/call/SignatureVerificationCaller.java b/spss.test/src/at/gv/egovernment/moa/spss/client/call/SignatureVerificationCaller.java deleted file mode 100644 index 612a1d345..000000000 --- a/spss.test/src/at/gv/egovernment/moa/spss/client/call/SignatureVerificationCaller.java +++ /dev/null @@ -1,28 +0,0 @@ -package at.gv.egovernment.moa.spss.client.call; - -import java.rmi.RemoteException; - -import javax.xml.namespace.QName; -import javax.xml.rpc.ServiceException; - -import org.w3c.dom.Element; - -/** - * @author Patrick Peck - * @version $Id$ - */ -public class SignatureVerificationCaller extends MOACaller { - - private static final QName SERVICE_QNAME = new QName("SignatureVerification"); - - public Element verifyCMSSignature(Element request, String endPoint) - throws ServiceException, RemoteException, Exception { - return doCall(SERVICE_QNAME, request, endPoint); - } - - public Element verifyXMLSignature(Element request, String endPoint) - throws ServiceException, RemoteException, Exception { - return doCall(SERVICE_QNAME, request, endPoint); - } - -} |