Examples of updateConfiguration()


Examples of org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration()

    protected void updateESBConfiguration(String filePath) throws RemoteException {
        ConfigServiceAdminStub configServiceAdminStub =
                new ConfigServiceAdminStub(getAdminServiceURL("ConfigServiceAdmin"));
        authenticate(configServiceAdminStub);
        OMElement configElement = loadResource(filePath);
        configServiceAdminStub.updateConfiguration(configElement);
        configServiceAdminStub.cleanup();
    }

    protected OMElement loadResource(String path) {
        ArtifactReader artifactReader = new ArtifactReader();
View Full Code Here

Examples of org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration()

            AuthenticateStub authenticateStub = new AuthenticateStub();
            ConfigServiceAdminStub configServiceAdminStub = new ConfigServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ConfigServiceAdmin");
            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();
            OMElement omElement = artifactReader.getOMElement(Soap11FCodeClientTest.class.getResource("/soap11_fcode_client.xml").getPath());
            configServiceAdminStub.updateConfiguration(omElement);

            if (FrameworkSettings.STRATOS.equalsIgnoreCase("false")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT, null, "IBM");
            } else if (FrameworkSettings.STRATOS.equalsIgnoreCase("true")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/" + FrameworkSettings.TENANT_NAME + "/", null, "IBM");
View Full Code Here

Examples of org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration()

            AuthenticateStub authenticateStub = new AuthenticateStub();
            ConfigServiceAdminStub configServiceAdminStub = new ConfigServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ConfigServiceAdmin");
            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();
            OMElement omElement = artifactReader.getOMElement(Soap12FCodeVrTest.class.getResource("/soap12_fcode_vr.xml").getPath());
            configServiceAdminStub.updateConfiguration(omElement);

            if (FrameworkSettings.STRATOS.equalsIgnoreCase("false")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT, null, "IBM");
            } else if (FrameworkSettings.STRATOS.equalsIgnoreCase("true")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/" + FrameworkSettings.TENANT_NAME + "/", null, "IBM");
View Full Code Here

Examples of org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration()

            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();

            OMElement omElement = artifactReader.getOMElement(EventMediatorTest.class.getResource("/event.xml").getPath());

            configServiceAdminStub.updateConfiguration(omElement);

            OMElement result = StockQuoteClient.createCustomQuoteRequest("ant eventsubscriber");
            //<m0:CheckPriceRequest xmlns:m0="http://services.samples"><m0:Code>ant eventsubscriber</m0:Code></m0:CheckPriceRequest>

            System.out.println(result);
View Full Code Here

Examples of org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration()

            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();

            OMElement omElement = artifactReader.getOMElement(ChunkDisabledTest.class.getResource("/chunking_disabled.xml").getPath());

            configServiceAdminStub.updateConfiguration(omElement);

            String trpUrl = null;

            if (FrameworkSettings.STRATOS.equalsIgnoreCase("false")) {
                trpUrl = "http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT;
View Full Code Here

Examples of org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration()

            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();

            OMElement omElement = artifactReader.getOMElement(RestUrlPostFixTest.class.getResource("/sslConfig.xml").getPath());

            configServiceAdminStub.updateConfiguration(omElement);

            clientLog = Axis2Client.fireClient("ant stockquote -Dtrpurl=http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/SimpleStockQuoteService");

            System.out.println(clientLog);
View Full Code Here

Examples of org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration()

            AuthenticateStub authenticateStub = new AuthenticateStub();
            ConfigServiceAdminStub configServiceAdminStub = new ConfigServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ConfigServiceAdmin");
            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();
            OMElement omElement = artifactReader.getOMElement(ThrottleOnRejectSeqKeyTest.class.getResource("/throttleOnAcceptSeqKey.xml").getPath());
            configServiceAdminStub.updateConfiguration(omElement);

            /*Sending StockQuoteClient requests */
            for (int i = 0; i <= THROTTLE_MAX_MSG_COUNT; i++) {
                StockQuoteClient stockQuoteClient = new StockQuoteClient();
                if (FrameworkSettings.STRATOS.equalsIgnoreCase("false")) {
View Full Code Here

Examples of org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration()

            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();

            OMElement omElement = artifactReader.getOMElement(DBReportMediatorTest.class.getResource("/dbReport.xml").getPath());

            configServiceAdminStub.updateConfiguration(omElement);


            OMElement result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT, null, "IBM");
            log.info(result);
            System.out.println(result);
View Full Code Here

Examples of org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration()

            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();

            OMElement omElement = artifactReader.getOMElement(HeaderProtocol_10Test.class.getResource("/with_content_type_post.xml").getPath());

            configServiceAdminStub.updateConfiguration(omElement);

            String trpUrl = "http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT;
            OMElement result = stockQuoteClient.stockQuoteClientForHeaderProtocol10(trpUrl, null, "IBM");
            log.info(result);
            System.out.println(result);
View Full Code Here

Examples of org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration()

            ConfigServiceAdminStub configServiceAdminStub = new ConfigServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ConfigServiceAdmin");
            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();

            OMElement omElement = artifactReader.getOMElement(CloneMediatorTest.class.getResource("/clone.xml").getPath());
            configServiceAdminStub.updateConfiguration(omElement);

            if (FrameworkSettings.STRATOS.equalsIgnoreCase("false")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT, null, "IBM");
            } else if (FrameworkSettings.STRATOS.equalsIgnoreCase("true")) {
                result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/" + FrameworkSettings.TENANT_NAME + "/", null, "IBM");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.