Installation guide

Appendix A: FlashCONNECT SOAP Access
134 FlashCONNECT Administrators Guide
* For more information on the Apache Software Foundation,
* please see <http://www.apache.org/>.
*/
* This is a copy of axis/samples/stock/GetQuote.java modified
* to use FlashCONNECT.
*/
package samples.FCStock ;
import org.apache.axis.AxisFault;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.utils.Options;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import java.net.URL;
public class fc2 {
public String username = "";
public String password = "";
public String rulename = "";
public String serverpool = null; // defaults to "default"
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: fc2 getquote <symbol>" );
System.exit(1);
}
rulename = args[0] ;
parameternames = new String[1];
parametervalues = new String[1];
parameternames[0] = "SYMBOL";
parametervalues[0] = args[1];
String res = "";
/* Define the service QName and port QName */
/*******************************************/
QName servQN = new QName("flashconnect","flashconnect");
QName portQN = new QName("flashconnect","execute");
/* Now use those QNames as pointers into the WSDL doc */
/******************************************************/
Service service = new Service( new
URL("file:flashconnect.wsdl"), servQN );
Call call = (Call) service.createCall( portQN, "execute" );
/*