Package org.apache.axis.client

Examples of org.apache.axis.client.AdminClient


        AxisServer server = new AxisServer(provider);
       
        Handler h1 = server.getHandler(HANDLER_NAME);
        assertNotNull("Couldn't get logger handler from engine!", h1);

        AdminClient client = new AdminClient();
        String doc = header + badHandler + footer;
        ByteArrayInputStream stream = new ByteArrayInputStream(doc.getBytes());
       
        LocalTransport transport = new LocalTransport(server);
        transport.setUrl("local:///AdminService");
        client.getCall().setTransport(transport);
        try {
            client.process(stream);
        } catch (Exception e) {
             return;
        }
       
        fail("Successfully processed bad WSDD!");
View Full Code Here


        AxisServer server = new AxisServer(provider);
       
        Handler handler = server.getHandler("other");
        assertNotNull("Couldn't get handler", handler);

        AdminClient client = new AdminClient();
        Call call = client.getCall();
        LocalTransport transport = new LocalTransport(server);
        transport.setRemoteService("AdminService");

        call.setTransport(transport);
        client.process(new ByteArrayInputStream(undeployDoc.getBytes()));

        server.refreshGlobalOptions();
       
        handler = server.getHandler("other");
        assertNull("Undeployed handler is still available", handler);
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

        AxisServer server = new AxisServer(provider);
       
        Handler h1 = server.getHandler(HANDLER_NAME);
        assertNotNull("Couldn't get logger handler from engine!", h1);

        AdminClient client = new AdminClient();
        String doc = header + badHandler + footer;
        ByteArrayInputStream stream = new ByteArrayInputStream(doc.getBytes());
       
        LocalTransport transport = new LocalTransport(server);
        transport.setUrl("local:///AdminService");
        client.getCall().setTransport(transport);
        try {
            client.process(stream);
        } catch (Exception e) {
             return;
        }
       
        fail("Successfully processed bad WSDD!");
View Full Code Here

        AxisServer server = new AxisServer(provider);
       
        Handler handler = server.getHandler("other");
        assertNotNull("Couldn't get handler", handler);

        AdminClient client = new AdminClient();
        Call call = client.getCall();
        LocalTransport transport = new LocalTransport(server);
        transport.setRemoteService("AdminService");

        call.setTransport(transport);
        client.process(new ByteArrayInputStream(undeployDoc.getBytes()));

        server.refreshGlobalOptions();
       
        handler = server.getHandler("other");
        assertNull("Undeployed handler is still available", handler);
View Full Code Here

        super(s);
    }

    protected void setUp() throws Exception {
        // Deploy the type mapping
        AdminClient client = new AdminClient();
        Options opts = new Options(null);
        ByteArrayInputStream bis =
                new ByteArrayInputStream(TYPEMAPPING_WSDD.getBytes());
        client.process(opts, bis);
    }
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

        URLClassLoader cl = new URLClassLoader(new URL[]{jarFile.toURL()});
        InputStream deplydd = cl.getResourceAsStream("deploy.wsdd");
        assertNotNull(deplydd);
        ClassLoader parentClassLoder = ClassUtils.getDefaultClassLoader();
        ClassUtils.setDefaultClassLoader(cl);
        AdminClient adminClient = new AdminClient();
        URL requestUrl = AxisGeronimoUtils.getURL("/axis/services/AdminService");
        Call call = adminClient.getCall();
        call.setTargetEndpointAddress(requestUrl);
        String result = adminClient.process(null, deplydd);
        URL wsdlrequestUrl = AxisGeronimoUtils.getURL("/axis/services/echoPort?wsdl");
        //+"/axis/services/AdminService?wsdl");
       
        HttpURLConnection connection = (HttpURLConnection) wsdlrequestUrl.openConnection();
        BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
View Full Code Here

     * @throws DeploymentException
     */
    public static void addEntryToAxisDD(InputStream deplydd) throws DeploymentException {
        try {
            if (deplydd != null) {
                AdminClient adminClient = new AdminClient();
                URL requestUrl = getURL("/axis/services/AdminService");
                Call call = adminClient.getCall();
                call.setTargetEndpointAddress(requestUrl);
                String result = adminClient.process(null, deplydd);
            } else {
                throw new DeploymentException("the deploy.wsdd can not be found");
            }
        } catch (DeploymentException e) {
            throw e;
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

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.