Examples of ProxyServiceAdminStub


Examples of org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub

    public SendClient(ConfigurationContext configCtx, String backendServerURL,
                      String cookie, Locale locale) throws AxisFault {
        bundle = ResourceBundle.getBundle(BUNDLE, locale);
        String serviceURL = backendServerURL + "ProxyServiceAdmin";
        stub = new ProxyServiceAdminStub(configCtx, serviceURL);
        ServiceClient client = stub._getServiceClient();
        Options options = client.getOptions();
        options.setManageSession(true);
        options.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
    }
View Full Code Here

Examples of org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub

    public ProxyAdminClient(ConfigurationContext configCtx, String backendServerURL,
                      String cookie, Locale locale) throws AxisFault {
        bundle = ResourceBundle.getBundle(BUNDLE, locale);
        String serviceURL = backendServerURL + "ProxyServiceAdmin";
        stub = new ProxyServiceAdminStub(configCtx, serviceURL);
        ServiceClient client = stub._getServiceClient();
        Options options = client.getOptions();
        options.setManageSession(true);
        options.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
    }
View Full Code Here

Examples of org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub

        axis2Client = new StockQuoteClient();
    }

    @Override
    public void successfulScenario() throws RemoteException {
        ProxyServiceAdminStub proxyServiceAdminStub = new ProxyServiceAdminStub(getAdminServiceURL());
        authenticate(proxyServiceAdminStub);
        addWSDLBasedProxy(proxyServiceAdminStub);

        launchStockQuoteService();
View Full Code Here

Examples of org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub

        super("ProxyServiceAdmin");
    }

    @Override
    public void successfulScenario() throws RemoteException {
        ProxyServiceAdminStub proxyServiceAdminStub = new ProxyServiceAdminStub(getAdminServiceURL());
        authenticate(proxyServiceAdminStub);

        getTransportsTest(proxyServiceAdminStub);
        getSequencesTest(proxyServiceAdminStub);
        proxyManipulationTest(proxyServiceAdminStub);
View Full Code Here

Examples of org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub

        OMElement result = null;
        log.debug("Running AddProxy SuccessCase ");
        try {

            AuthenticateStub authenticateStub = new AuthenticateStub();
            ProxyServiceAdminStub proxyServiceAdminStub = new ProxyServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ProxyServiceAdmin");
            authenticateStub.authenticateAdminStub(proxyServiceAdminStub, sessionCookie);

            ThrottleAdminServiceStub throttleAdminServiceStub = new ThrottleAdminServiceStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ThrottleAdminService");
            authenticateStub.authenticateAdminStub(throttleAdminServiceStub, sessionCookie);

            proxyData = handler.getProxy(ThrottlleTest.class.getResource("/testdata/StockQuoteProxyTest.xml").getPath());

            //Add proxy Service test
            proxyServiceAdminStub.addProxy(proxyData);

            log.info("Proxy service added");


            ThrottlePolicy throttlePolicy = new ThrottlePolicy();
View Full Code Here

Examples of org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub

        axis2Client = new StockQuoteClient();
    }

    @Override
    public void successfulScenario() throws RemoteException {
        ProxyServiceAdminStub proxyServiceAdminStub = new ProxyServiceAdminStub(getAdminServiceURL());
        authenticate(proxyServiceAdminStub);
        createProxy(proxyServiceAdminStub);

        launchStockQuoteService();
View Full Code Here

Examples of org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub

    public ProxyServiceAdminClient(ConfigurationContext configCtx, String backendServerURL,
                                   String cookie, Locale locale) throws AxisFault {
        bundle = ResourceBundle.getBundle(BUNDLE, locale);
        String serviceURL = backendServerURL + "ProxyServiceAdmin";
        stub = new ProxyServiceAdminStub(configCtx, serviceURL);
        ServiceClient client = stub._getServiceClient();
        Options options = client.getOptions();
        options.setTimeOutInMilliSeconds(15 * 60 * 1000);
        options.setProperty(HTTPConstants.SO_TIMEOUT, 15 * 60 * 1000);
        options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, 15 * 60 * 1000);
 
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.