From 50c635e7fb1e7a0580e2cdc0350286002342aa91 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d> Date: Thu, 23 Jun 2005 14:41:17 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'Build-SPSS_1_2_1'. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/Build-SPSS_1_2_1@361 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../moa/spss/client/call/MOACaller.java | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 spss.test/src/at/gv/egovernment/moa/spss/client/call/MOACaller.java (limited to 'spss.test/src/at/gv/egovernment/moa/spss/client/call/MOACaller.java') 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(); - } - -} -- cgit v1.2.3