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