com.ibm.was.wssample.sei.cli
Class SampleClient

java.lang.Object
  extended by com.ibm.was.wssample.sei.cli.SampleClient

public class SampleClient
extends java.lang.Object

SampleClient main entry point for thinclient jar sample and worker class to communicate with the services


Constructor Summary
SampleClient()
           
 
Method Summary
 java.lang.String buildAsync(java.lang.String endpointURL, java.lang.String input, int waiting, java.lang.Boolean wireasync)
          buildAsync Call the Echo service (Async)
 java.lang.String buildAsync12(java.lang.String endpointURL, java.lang.String input, int waiting, java.lang.Boolean wireasync)
          buildAsync12 Call the Echo service (Async)
 java.lang.String buildEcho(java.lang.String endpointURL, java.lang.String input)
          buildEcho Call the Echo service (Sync)
 java.lang.String buildEcho12(java.lang.String endpointURL, java.lang.String input)
          buildEcho12 Call the Echo service (Sync)
 boolean buildPing(java.lang.String endpointURL, java.lang.String input)
          buildPing Call the ping service
 boolean buildPing12(java.lang.String endpointURL, java.lang.String input)
          buildPing12 Call the ping service
static void main(java.lang.String[] args)
          main() see printusage() for command-line arguments
 void parseArgs(java.lang.String[] args)
          parseArgs Read and interpret the command-line arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleClient

public SampleClient()
Method Detail

main

public static void main(java.lang.String[] args)
main() see printusage() for command-line arguments

Parameters:
args -

parseArgs

public void parseArgs(java.lang.String[] args)
parseArgs Read and interpret the command-line arguments

Parameters:
args -

buildPing

public boolean buildPing(java.lang.String endpointURL,
                         java.lang.String input)
buildPing Call the ping service

Parameters:
endpointURL - The Service endpoint URL
input - The message string
Returns:
Boolean true if the ping works

buildEcho

public java.lang.String buildEcho(java.lang.String endpointURL,
                                  java.lang.String input)
buildEcho Call the Echo service (Sync)

Parameters:
endpointURL - The Service endpoint URL
input - The message string
Returns:
String from the service

buildAsync

public java.lang.String buildAsync(java.lang.String endpointURL,
                                   java.lang.String input,
                                   int waiting,
                                   java.lang.Boolean wireasync)
buildAsync Call the Echo service (Async)

Parameters:
endpointURL - The Service endpoint URL
input - The message string
waiting - The Async timeout
wireasync - true to use Async on the wire
Returns:
String from the service

buildPing12

public boolean buildPing12(java.lang.String endpointURL,
                           java.lang.String input)
buildPing12 Call the ping service

Parameters:
endpointURL - The Service endpoint URL
input - The message string
Returns:
Boolean true if the ping works

buildEcho12

public java.lang.String buildEcho12(java.lang.String endpointURL,
                                    java.lang.String input)
buildEcho12 Call the Echo service (Sync)

Parameters:
endpointURL - The Service endpoint URL
input - The message string
Returns:
String from the service

buildAsync12

public java.lang.String buildAsync12(java.lang.String endpointURL,
                                     java.lang.String input,
                                     int waiting,
                                     java.lang.Boolean wireasync)
buildAsync12 Call the Echo service (Async)

Parameters:
endpointURL - The Service endpoint URL
input - The message string
waiting - The Async timeout
wireasync - true to use Async on the wire
Returns:
String from the service