Installation guide
Deploying the FlashCONNECT SOAP Interface
FlashCONNECT Administrator’s Guide 131
public String serverpool = null;
public String[] parameternames = null;
public String[] parametervalues = null;
// helper function; does all the real work
public String run (String args[]) throws Exception {
Options opts = new Options( args );
args = opts.getRemainingArgs();
if ( args == null ) {
System.err.println( "Usage: fc getquote <symbol>" );
System.exit(1);
}
rulename = args[0] ;
parameternames = new String[1];
parametervalues = new String[1];
parameternames[0] = "SYMBOL";
parametervalues[0] = args[1];
opts.setDefaultURL("http://<your hostname here>:8080/axis/
servlet/AxisServlet");
URL url = new URL(opts.getURL());
/*
String user = opts.getUser();
String passwd = opts.getPassword();
*/
Service service = new Service();
String res = "";
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( url );
call.setOperationName( new QName("flashconnect", "execute") );
call.addParameter( "username", XMLType.XSD_STRING,
ParameterMode.IN );
call.addParameter( "password", XMLType.XSD_STRING,
ParameterMode.IN );
call.addParameter( "rulename", XMLType.XSD_STRING,
ParameterMode.IN );
call.addParameter( "serverpool", XMLType.XSD_STRING,
ParameterMode.IN );
call.addParameter( "parameternames",
new javax.xml.namespace.QName("urn:flashconnect",
"ArrayOf_xsd_string"),
java.lang.String[].class,
ParameterMode.IN );
call.addParameter( "parametervalues",
new javax.xml.namespace.QName("urn:flashconnect",
"ArrayOf_xsd_string"),
java.lang.String[].class,
ParameterMode.IN );
call.setReturnType( XMLType.XSD_STRING );
// call.setUsername( user );
// call.setPassword( passwd );