source: axis/MultiStatus.java @ 10f5e84

axis_examplecompt_changesinfo-ops
Last change on this file since 10f5e84 was 10f5e84, checked in by Ted Faber <faber@…>, 13 years ago

Create works!

  • Property mode set to 100644
File size: 1.4 KB
Line 
1import edu.isi.www.fedd_types.*;
2import edu.isi.www.fedd_wsdl.*;
3import java.net.URL;
4import net.deterlab.isi.XTrustProvider;
5import net.deterlab.isi.Fedid;
6
7class MultiStatus extends FeddCommand {
8
9    /**
10     * Dummy program to test an AXIS fedd implementation generated from the
11     * WSDL and run by axis.
12     * It just calls terminate with a dummy id as a local name (which can be
13     * supplied on the command line and reprints the localname that the server
14     * replies with.  A client certificate muct exist in the local keystore
15     * file with the given password.
16     */
17    public static void main(String args[]) throws 
18            javax.xml.rpc.ServiceException, java.net.MalformedURLException,
19            java.rmi.RemoteException {
20       
21        FeddPortType port = getPort("https://users.isi.deterlab.net:23235");
22        /*
23         * The various parts of the MultiInfo message and response
24         */
25
26        MultiInfoRequestType req = new MultiInfoRequestType();
27        MultiInfoResponseType resp = null;
28
29        try {
30            /* Build the message and make the call */
31            resp = port.multiInfo(req);
32        }
33        catch (Exception e) {
34            System.out.println(e);
35            System.exit(0);
36        }
37        if (resp.getInfo() != null) {
38            for (InfoResponseType info: resp.getInfo()) {
39                ExperimentLabels el = 
40                    new ExperimentLabels(info.getExperimentID());
41
42                System.out.println(el.getLocalname() + ":" + el.getFedid() 
43                        +":" + info.getExperimentStatus().getValue());
44            }
45        }
46        else 
47            System.out.println("No experiments");
48    }
49}
Note: See TracBrowser for help on using the repository browser.