axis_examplecompt_changesinfo-ops
Last change
on this file since 2b6e66e7 was
709306c,
checked in by Ted Faber <faber@…>, 14 years ago
|
Commented and working.
|
-
Property mode set to
100644
|
File size:
1019 bytes
|
Line | |
---|
1 | // WSDL generated classes |
---|
2 | import edu.isi.www.fedd_types.*; |
---|
3 | import edu.isi.www.fedd_wsdl.*; |
---|
4 | |
---|
5 | // The fault thrown by failed commands |
---|
6 | import org.apache.axis.AxisFault; |
---|
7 | |
---|
8 | class Terminate extends FeddCommand { |
---|
9 | /** |
---|
10 | * Terminate the experiment with the menmonic name given on the command |
---|
11 | * line. |
---|
12 | */ |
---|
13 | public static void main(String args[]) throws |
---|
14 | javax.xml.rpc.ServiceException, java.net.MalformedURLException, |
---|
15 | java.rmi.RemoteException { |
---|
16 | |
---|
17 | // Get the port and construct the (simple) request. |
---|
18 | FeddPortType port = getPort("https://users.isi.deterlab.net:23235"); |
---|
19 | TerminateRequestType req = new TerminateRequestType( |
---|
20 | new IDType(null, null, null, args[0], null), |
---|
21 | false); |
---|
22 | TerminateResponseType resp = null; |
---|
23 | |
---|
24 | |
---|
25 | try { |
---|
26 | /* Build the message and make the call */ |
---|
27 | resp = port.terminate(req); |
---|
28 | } |
---|
29 | catch (AxisFault f) { |
---|
30 | System.err.println("Error in Terminate: " + f); |
---|
31 | System.exit(20); |
---|
32 | } |
---|
33 | System.out.println("Terminate success: " + |
---|
34 | resp.getExperiment().getLocalname()); |
---|
35 | } |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.