Package org.apache.axis.client

Examples of org.apache.axis.client.AdminClient


            }
        }
        axisServer.setServerSocket(socket);
        try {
            axisServer.start(true);
            AdminClient admin = new AdminClient();
            Options opts = new Options(new String[] {"-p", Integer.toString(AXIS_PORT)});
            InputStream is = getClass().getResourceAsStream("resources/echoDeploy.wsdd");
            String result = admin.process(opts, is);
            if (null == result || result.contains("AxisFault")) {
                throw new Exception("Failed to start axis server");
            }
        } catch (Exception ex) {
            System.err.println("Failed to deploy echo axis server.");
View Full Code Here


            serverConfig.delete();
        }
    }

    protected boolean verify(Logger l) {
        AdminClient admin = new AdminClient();
        try {
            Options opts = new Options(new String[] {"-p", Integer.toString(AXIS_PORT)});
            InputStream is = getClass().getResourceAsStream("resources/echoUndeploy.wsdd");
            String result = admin.process(opts, is);
            if (null == result || result.contains("AxisFault")) {
                return false;
            }
            admin.quit(opts);
        } catch (Exception ex) {
            return false;
        }
        return true;
    }
View Full Code Here

            args[counter] = arg;
            counter++;
        }

        //now create a client and invoke it
        AdminClient admin = new AdminClient();
        String result = null;
        try {
            result = admin.process(args);
            if (result != null) {
                log(result);
            } else {
                logOrThrow(getTaskName() + " got a null response");
            }
View Full Code Here

            args[counter] = arg;
            counter++;
        }

        //now create a client and invoke it
        AdminClient admin = new AdminClient();
        String result = null;
        try {
            result = admin.process(args);
            if (result != null) {
                log(result);
            } else {
                logOrThrow(getTaskName() + " got a null response");
            }
View Full Code Here

            counter++;
        }

        //now create a client and invoke it
        try {
            AdminClient admin = new AdminClient();
            String result = admin.process(args);

            if (result != null) {
                log(result);
            } else {
                String text = "Something seems to have gone wrong";
View Full Code Here

      JMXServiceURL temp = new JMXServiceURL(address.getProtocol(), address.getHost(), address.getPort(), deployPath);
      String deployEndpoint = getEndpoint(temp, environment);

      try
      {
         AdminClient deployer = new AdminClient();
         Options options = new Options(null);
         options.setDefaultURL(deployEndpoint);
         InputStream wsdd = getClass().getResourceAsStream(SERVER_DEPLOY_WSDD);
         if (wsdd == null) throw new IOException("Could not find AXIS deployment descriptor");
         deployer.process(options, wsdd);
      }
      catch (RuntimeException x)
      {
         throw x;
      }
View Full Code Here

      JMXServiceURL temp = new JMXServiceURL(address.getProtocol(), address.getHost(), address.getPort(), undeployPath);
      String undeployEndpoint = getEndpoint(temp, environment);

      try
      {
         AdminClient deployer = new AdminClient();
         Options options = new Options(null);
         options.setDefaultURL(undeployEndpoint);
         InputStream wsdd = getClass().getResourceAsStream(SERVER_UNDEPLOY_WSDD);
         if (wsdd == null) throw new IOException("Could not find AXIS deployment descriptor " + SERVER_UNDEPLOY_WSDD);
         deployer.process(options, wsdd);
      }
      catch (Exception x)
      {
         Logger logger = getLogger();
         if (logger.isEnabledFor(Logger.INFO)) logger.info("Exception while undeploying AXIS service", x);
View Full Code Here

    AdminClient client;
    Options opts = null;

    public TestMiscSample(String name) throws Exception {
        super(name);
        client = new AdminClient();
        opts = new Options(new String [] {
            "-lhttp://localhost:8080/axis/services/AdminService" } );
    }
View Full Code Here

            args[counter] = arg;
            counter++;
        }

        //now create a client and invoke it
        AdminClient admin = new AdminClient();
        String result = null;
        try {
            result = admin.process(args);
            if (result != null) {
                log(result);
            } else {
                logOrThrow(getTaskName() + " got a null response");
            }
View Full Code Here

            } catch (FileNotFoundException e) {
                is = null;
            }
        }
        assertNotNull("Unable to find " + INPUT_FILE + ". Make sure it is on the classpath or in the current directory.", is);
        AdminClient admin = new AdminClient();
        try {
            Options opts = new Options( null );
            opts.setDefaultURL("http://localhost:8080/axis/services/AdminService");
            admin.process(opts, is);
        } catch (Exception e) {
            assertTrue("Unable to deploy " + INPUT_FILE + ". ERROR: " + e, false);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis.client.AdminClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.