Changeset 709306c for axis/Terminate.java
- Timestamp:
- Mar 31, 2011 11:01:51 PM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 1294d29
- Parents:
- 9f8dbc1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
axis/Terminate.java
r9f8dbc1 r709306c 1 // WSDL generated classes 1 2 import edu.isi.www.fedd_types.*; 2 3 import edu.isi.www.fedd_wsdl.*; 3 import java.net.URL; 4 import net.deterlab.isi.XTrustProvider; 4 5 // The fault thrown by failed commands 6 import org.apache.axis.AxisFault; 5 7 6 8 class Terminate extends FeddCommand { 7 9 /** 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. 14 12 */ 15 13 public static void main(String args[]) throws 16 14 javax.xml.rpc.ServiceException, java.net.MalformedURLException, 17 15 java.rmi.RemoteException { 18 19 /* 20 * Boilerplate web services access stuff. 21 */ 16 17 // Get the port and construct the (simple) request. 22 18 FeddPortType port = getPort("https://users.isi.deterlab.net:23235"); 23 setUpSecurity();24 25 /*26 * The various parts of the Terminate message and response27 */28 29 19 TerminateRequestType req = new TerminateRequestType( 30 20 new IDType(null, null, null, args[0], null), … … 37 27 resp = port.terminate(req); 38 28 } 39 catch ( FaultTypef) {29 catch (AxisFault f) { 40 30 System.err.println("Error in Terminate: " + f); 41 31 System.exit(20);
Note: See TracChangeset
for help on using the changeset viewer.