org.embl.ebi.escience.scuflworkers.soaplab
Class Soap

java.lang.Object
  extended by org.embl.ebi.escience.scuflworkers.soaplab.Soap

public class Soap
extends java.lang.Object

Convenience methods for simpler calling of SOAP services using the Axis client. Note that for complex scenarious you might want to construct the Call object yourself.

Author:
Stian Soiland

Constructor Summary
Soap()
           
 
Method Summary
static java.lang.Object callWebService(java.lang.String target, java.lang.String operation)
          Invoke the web service, passing no parameters, and return the result.
static java.lang.Object callWebService(java.lang.String target, java.lang.String operation, java.lang.Object[] parameters)
          Invoke the web service and return the result.
static java.lang.Object callWebService(java.lang.String target, java.lang.String operation, java.lang.String parameter)
          Invoke the web service, passing a single String parameter, and return the result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Soap

public Soap()
Method Detail

callWebService

public static java.lang.Object callWebService(java.lang.String target,
                                              java.lang.String operation)
                                       throws javax.xml.rpc.ServiceException,
                                              java.rmi.RemoteException
Invoke the web service, passing no parameters, and return the result.

Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException
See Also:
callWebService(String target, String operation, Object[] parameters)

callWebService

public static java.lang.Object callWebService(java.lang.String target,
                                              java.lang.String operation,
                                              java.lang.String parameter)
                                       throws javax.xml.rpc.ServiceException,
                                              java.rmi.RemoteException
Invoke the web service, passing a single String parameter, and return the result.

Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException
See Also:
callWebService(String target, String operation, Object[] parameters)

callWebService

public static java.lang.Object callWebService(java.lang.String target,
                                              java.lang.String operation,
                                              java.lang.Object[] parameters)
                                       throws javax.xml.rpc.ServiceException,
                                              java.rmi.RemoteException
Invoke the web service and return the result.

Parameters:
target - The full URL to the service, example "http://www.ebi.ac.uk/soaplab/services/AnalysisFactory"
operation - The operation name, example "getAvailableCategories"
parameters - A (possibly empty) list of parameters
Returns:
The result returned from calling the webservice operation
Throws:
javax.xml.rpc.ServiceException - If web service facilities are not available
java.rmi.RemoteException - If remote call failed