Ignore:
Timestamp:
Mar 31, 2011 11:01:51 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
1294d29
Parents:
9f8dbc1
Message:

Commented and working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • axis/Terminate.java

    r9f8dbc1 r709306c  
     1// WSDL generated classes
    12import edu.isi.www.fedd_types.*;
    23import edu.isi.www.fedd_wsdl.*;
    3 import java.net.URL;
    4 import net.deterlab.isi.XTrustProvider;
     4
     5// The fault thrown by failed commands
     6import org.apache.axis.AxisFault;
    57
    68class Terminate extends FeddCommand {
    79    /**
    8      * Dummy program to test an AXIS fedd implementation generated from the
    9      * WSDL and run by axis.
    10      * It just calls terminate with a dummy id as a local name (which can be
    11      * supplied on the command line and reprints the localname that the server
    12      * replies with.  A client certificate muct exist in the local keystore
    13      * file with the given password.
     10     * Terminate the experiment with the menmonic name given on the command
     11     * line.
    1412     */
    1513    public static void main(String args[]) throws
    1614            javax.xml.rpc.ServiceException, java.net.MalformedURLException,
    1715            java.rmi.RemoteException {
    18        
    19         /*
    20          * Boilerplate web services access stuff.
    21          */
     16
     17        // Get the port and construct the (simple) request.
    2218        FeddPortType port = getPort("https://users.isi.deterlab.net:23235");
    23         setUpSecurity();
    24 
    25         /*
    26          * The various parts of the Terminate message and response
    27          */
    28 
    2919        TerminateRequestType req = new TerminateRequestType(
    3020                new IDType(null, null, null, args[0], null),
     
    3727            resp = port.terminate(req);
    3828        }
    39         catch (FaultType f) {
     29        catch (AxisFault f) {
    4030            System.err.println("Error in Terminate: " + f);
    4131            System.exit(20);
Note: See TracChangeset for help on using the changeset viewer.