org.optimizationservices.oscommon.util
Class WSUtil

java.lang.Object
  extended by org.optimizationservices.oscommon.util.WSUtil

public class WSUtil
extends java.lang.Object

The WSUtil class contains methods for performing common web services related operations, such as soap construction/web services invocation, used by various components in the Optimization Services (OS) framework.

Since:
OS 1.0
Version:
1.0, 03/14/2004
Author:
Robert Fourer, Jun Ma, Kipp Martin
See Also:
org.optimizationservices.ossolver.api.IOSSolver

Constructor Summary
WSUtil()
           
 
Method Summary
static java.lang.String invokeOptimizationServices(java.lang.String address, java.lang.String methodName, java.lang.String[] arguments, java.lang.String[] argumentNames, java.lang.String returnName, java.lang.String soapAction)
          Invoke Optimization Services, whose arguments are string based.
static void main(java.lang.String[] args)
          main for test purposes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSUtil

public WSUtil()
Method Detail

invokeOptimizationServices

public static java.lang.String invokeOptimizationServices(java.lang.String address,
                                                          java.lang.String methodName,
                                                          java.lang.String[] arguments,
                                                          java.lang.String[] argumentNames,
                                                          java.lang.String returnName,
                                                          java.lang.String soapAction)
Invoke Optimization Services, whose arguments are string based.

Parameters:
address - holds where the Optimization Service is.
methodName - holds the name of the method that is invoked.
arguments - holds an array of String arguments as the input for the invoked method.
argumentNames - holds the name of teh the argements. If null will use default.
returnName - holds the return name of the method
soapAction - holds the SOAP action in the HTTP header file.
Returns:
the output of the Optimization Service invokation. If arguments are incorrect or inconsistent, returns null.

main

public static void main(java.lang.String[] args)
main for test purposes.

Parameters:
argv - command line arguments.