org.wso2.carbon.service.mgt.stub.ServiceAdminException Java Examples

The following examples show how to use org.wso2.carbon.service.mgt.stub.ServiceAdminException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FaultyDataServiceTestCase.java    From product-ei with Apache License 2.0 6 votes vote down vote up
@Test(groups = "wso2.dss", dependsOnMethods = {"serviceReDeployment"},
      description = "send requests to redeployed service")
@SetEnvironment(executionEnvironments = {ExecutionEnvironment.STANDALONE})
public void serviceInvocation()
        throws RemoteException, ServiceAdminException, XPathExpressionException {
    OMElement response;
    String serviceEndPoint = getServiceUrlHttp(serviceName) +"/";
    AxisServiceClient axisServiceClient = new AxisServiceClient();
    for (int i = 0; i < 5; i++) {
        response = axisServiceClient.sendReceive(getPayload(), serviceEndPoint, "showAllOffices");
        Assert.assertTrue(response.toString().contains("<Office>"), "Expected Result not Found");
        Assert.assertTrue(response.toString().contains("<officeCode>"), "Expected Result not Found");
        Assert.assertTrue(response.toString().contains("<city>"), "Expected Result not Found");
        Assert.assertTrue(response.toString().contains("<phone>"), "Expected Result not Found");
        Assert.assertTrue(response.toString().contains("</Office>"), "Expected Result not Found");
    }
    log.info("service invocation success");
}
 
Example #2
Source File: FaultyDataServiceTestCase.java    From micro-integrator with Apache License 2.0 6 votes vote down vote up
@Test(groups = "wso2.dss", dependsOnMethods = {
        "serviceReDeployment" }, description = "send requests to redeployed service")
@SetEnvironment(executionEnvironments = { ExecutionEnvironment.STANDALONE })
public void serviceInvocation() throws RemoteException, ServiceAdminException, XPathExpressionException {
    OMElement response;
    String serviceEndPoint = getServiceUrlHttp(serviceName) + "/";
    AxisServiceClient axisServiceClient = new AxisServiceClient();
    for (int i = 0; i < 5; i++) {
        response = axisServiceClient.sendReceive(getPayload(), serviceEndPoint, "showAllOffices");
        Assert.assertTrue(response.toString().contains("<Office>"), "Expected Result not Found");
        Assert.assertTrue(response.toString().contains("<officeCode>"), "Expected Result not Found");
        Assert.assertTrue(response.toString().contains("<city>"), "Expected Result not Found");
        Assert.assertTrue(response.toString().contains("<phone>"), "Expected Result not Found");
        Assert.assertTrue(response.toString().contains("</Office>"), "Expected Result not Found");
    }
    log.info("service invocation success");
}
 
Example #3
Source File: ServiceAdminClient.java    From micro-integrator with Apache License 2.0 2 votes vote down vote up
public void startService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.startService(serviceName);
        log.info("Service Started");

    }
 
Example #4
Source File: ServiceAdminClient.java    From product-es with Apache License 2.0 2 votes vote down vote up
public void stopService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.stopService(serviceName);
        log.info("Service Stopped");

    }
 
Example #5
Source File: ServiceAdminClient.java    From product-es with Apache License 2.0 2 votes vote down vote up
public void startService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.startService(serviceName);
        log.info("Service Started");

    }
 
Example #6
Source File: ServiceAdminClient.java    From product-es with Apache License 2.0 2 votes vote down vote up
public ServiceMetaData getServicesData(String serviceName)
        throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getServiceData(serviceName);

}
 
Example #7
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 2 votes vote down vote up
public void stopService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.stopService(serviceName);
        log.info("Service Stopped");

    }
 
Example #8
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 2 votes vote down vote up
public void startService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.startService(serviceName);
        log.info("Service Started");

    }
 
Example #9
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 2 votes vote down vote up
public ServiceMetaData getServicesData(String serviceName)
        throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getServiceData(serviceName);

}
 
Example #10
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 2 votes vote down vote up
public void stopService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.stopService(serviceName);
        log.info("Service Stopped");

    }
 
Example #11
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 2 votes vote down vote up
public void startService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.startService(serviceName);
        log.info("Service Started");

    }
 
Example #12
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 2 votes vote down vote up
public ServiceMetaData getServicesData(String serviceName)
        throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getServiceData(serviceName);

}
 
Example #13
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 2 votes vote down vote up
public void stopService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.stopService(serviceName);
        log.info("Service Stopped");

    }
 
Example #14
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 2 votes vote down vote up
public void startService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.startService(serviceName);
        log.info("Service Started");

    }
 
Example #15
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 2 votes vote down vote up
public ServiceMetaData getServicesData(String serviceName)
        throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getServiceData(serviceName);

}
 
Example #16
Source File: ServiceAdminClient.java    From micro-integrator with Apache License 2.0 2 votes vote down vote up
public void stopService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.stopService(serviceName);
        log.info("Service Stopped");

    }
 
Example #17
Source File: ServiceAdminClient.java    From micro-integrator with Apache License 2.0 2 votes vote down vote up
public void startService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.startService(serviceName);
        log.info("Service Started");

    }
 
Example #18
Source File: ServiceAdminClient.java    From micro-integrator with Apache License 2.0 2 votes vote down vote up
public ServiceMetaData getServicesData(String serviceName) throws ServiceAdminException, RemoteException {

        return serviceAdminStub.getServiceData(serviceName);

    }
 
Example #19
Source File: ServiceAdminClient.java    From micro-integrator with Apache License 2.0 2 votes vote down vote up
public void stopService(String serviceName) throws ServiceAdminException, RemoteException {

        serviceAdminStub.stopService(serviceName);
        log.info("Service Stopped");

    }
 
Example #20
Source File: ServiceAdminClient.java    From micro-integrator with Apache License 2.0 2 votes vote down vote up
public ServiceMetaData getServicesData(String serviceName) throws ServiceAdminException, RemoteException {

        return serviceAdminStub.getServiceData(serviceName);

    }
 
Example #21
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 1 votes vote down vote up
/**
 *
 * @param serviceName
 * @return
 * @throws ServiceAdminException
 * @throws RemoteException
 */
public String[] getExposedTransports(String serviceName)
        throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getExposedTransports(serviceName);

}
 
Example #22
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 1 votes vote down vote up
/**
 *
 * @param serviceName
 * @return
 * @throws ServiceAdminException
 * @throws RemoteException
 */
public String[] getExposedTransports(String serviceName)
        throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getExposedTransports(serviceName);

}
 
Example #23
Source File: ServiceAdminClient.java    From product-ei with Apache License 2.0 1 votes vote down vote up
/**
 *
 * @param serviceName
 * @return
 * @throws ServiceAdminException
 * @throws java.rmi.RemoteException
 */
public String[] getExposedTransports(String serviceName)
        throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getExposedTransports(serviceName);

}
 
Example #24
Source File: ServiceAdminClient.java    From product-es with Apache License 2.0 1 votes vote down vote up
/**
 *
 * @param serviceName
 * @return
 * @throws ServiceAdminException
 * @throws java.rmi.RemoteException
 */
public String[] getExposedTransports(String serviceName)
        throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getExposedTransports(serviceName);

}
 
Example #25
Source File: ServiceAdminClient.java    From micro-integrator with Apache License 2.0 votes vote down vote up
/**
 * @param serviceName
 * @return
 * @throws ServiceAdminException
 * @throws RemoteException
 */
public String[] getExposedTransports(String serviceName) throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getExposedTransports(serviceName);

}
 
Example #26
Source File: ServiceAdminClient.java    From micro-integrator with Apache License 2.0 votes vote down vote up
/**
 * @param serviceName
 * @return
 * @throws ServiceAdminException
 * @throws java.rmi.RemoteException
 */
public String[] getExposedTransports(String serviceName) throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getExposedTransports(serviceName);

}