compbio.ws.client
Class WSTester

java.lang.Object
  extended by compbio.ws.client.WSTester

public class WSTester
extends Object

Class for testing web services

Version:
1.0 February 2010
Author:
pvtroshin

Constructor Summary
WSTester(String hostname, PrintWriter writer)
          Construct an instance of JABAWS tester
 
Method Summary
 boolean checkService(Services service)
          Test JABA web service
static
<T> void
main(String[] args)
          Test JWS2 web services
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSTester

public WSTester(String hostname,
                PrintWriter writer)
Construct an instance of JABAWS tester

Parameters:
hostname - - fully qualified host and context name of JABAWS e.g. http://nanna.cluster.lifesci.dundee.ac.uk:8080/jaba
writer - a PrintWriter instance to writer test log to.
Method Detail

main

public static <T> void main(String[] args)
                 throws IOException
Test JWS2 web services

Type Parameters:
T - web service type
Parameters:
args - -h= -s= which is optional. If service name is not provided then all known JWS2 web services are tested
Throws:
IOException

checkService

public boolean checkService(Services service)
                     throws ConnectException,
                            WebServiceException
Test JABA web service

Parameters:
service - the service to test
Returns:
true if the service works as expected, false otherwise
Throws:
WebServiceException
ConnectException