Changeset 6a03b9f for axis


Ignore:
Timestamp:
Mar 31, 2011 3:02:34 PM (9 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
56baf92
Parents:
6b25610
Message:

Make terminate work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • axis/Terminate.java

    r6b25610 r6a03b9f  
    44import net.deterlab.isi.XTrustProvider;
    55
    6 class Create extends FeddCommand {
     6class Terminate extends FeddCommand {
    77    /**
    88     * Dummy program to test an AXIS fedd implementation generated from the
     
    2727         */
    2828
    29         TerminateRequestType req = new TerminateRequestType(null,
     29        TerminateRequestType req = new TerminateRequestType(
    3030                new IDType(null, null, null, args[0], null),
    31                 null);
    32         NewResponseType resp = null;
     31                false);
     32        TerminateResponseType resp = null;
    3333
    3434
    3535        try {
    3636            /* Build the message and make the call */
    37             resp = port._new(req);
     37            resp = port.terminate(req);
    3838        }
    3939        catch (FaultType f) {
    40             System.err.println("Error in New: " + f);
     40            System.err.println("Error in Terminate: " + f);
    4141            System.exit(20);
    4242        }
    43         ExperimentLabels newLabels =
    44             new ExperimentLabels(resp.getExperimentID());
    45         System.out.println("New success: " + newLabels.getLocalname() + "(" +
    46             newLabels.getFedid() + ")");
     43        System.out.println("Terminate success: " +
     44                resp.getExperiment().getLocalname());
    4745    }
    4846}
Note: See TracChangeset for help on using the changeset viewer.