当前位置: 首页>>代码示例>>Java>>正文


Java ServiceAdminException类代码示例

本文整理汇总了Java中org.wso2.carbon.service.mgt.stub.ServiceAdminException的典型用法代码示例。如果您正苦于以下问题:Java ServiceAdminException类的具体用法?Java ServiceAdminException怎么用?Java ServiceAdminException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ServiceAdminException类属于org.wso2.carbon.service.mgt.stub包,在下文中一共展示了ServiceAdminException类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: serviceInvocation

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
@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");
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:19,代码来源:FaultyDataServiceTestCase.java

示例2: serviceInvocation

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
@Test(groups = "wso2.dss", dependsOnMethods = {"serviceReDeployment"},
      description = "send requests to redeployed service")
@SetEnvironment(executionEnvironments = {ExecutionEnvironment.integration_all})
public void serviceInvocation() throws RemoteException, ServiceAdminException {
    OMElement response;
    String serviceEndPoint = dssServer.getServiceUrl()+"/" + 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");
}
 
开发者ID:wso2-attic,项目名称:product-dss,代码行数:18,代码来源:EditFaultyDataServiceTest.java

示例3: deleteService

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
@AfterClass(alwaysRun = true)
public void deleteService() throws ServiceAdminException, RemoteException {
    deleteService(serviceName);
    log.info(serviceName + " deleted");
}
 
开发者ID:wso2-attic,项目名称:product-dss,代码行数:6,代码来源:DataServiceSqlDriverTestCase.java

示例4: deleteService

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
@AfterClass(alwaysRun = true)
public void deleteService() throws ServiceAdminException, RemoteException {
    deleteService(SERVICE_NAME);
    log.info(SCHEMA_NAME + " deleted");
}
 
开发者ID:wso2-attic,项目名称:product-dss,代码行数:6,代码来源:SingleServiceGeneratorTestCase.java

示例5: deleteService

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
@AfterClass(alwaysRun = true)
public void deleteService() throws ServiceAdminException, RemoteException {
    deleteService(SERVICE_NAME_1);
    deleteService(SERVICE_NAME_2);
    log.info(SCHEMA_NAME + " deleted");
}
 
开发者ID:wso2-attic,项目名称:product-dss,代码行数:7,代码来源:MultipleServicesGeneratorTestCase.java

示例6: deleteService

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
@AfterClass(alwaysRun = true)
public void deleteService() throws ServiceAdminException, RemoteException {
    deleteService(serviceName);
    cleanup();
    log.info(serviceName + " deleted");
}
 
开发者ID:wso2-attic,项目名称:product-dss,代码行数:7,代码来源:SQLDriverGspreadSheetTestCase.java

示例7: deleteService

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
@AfterClass(alwaysRun = true)
public void deleteService() throws ServiceAdminException, RemoteException,
                                   InterruptedException {
    deleteService(serviceName);
    log.info(serviceName + " deleted");
}
 
开发者ID:wso2-attic,项目名称:product-dss,代码行数:7,代码来源:FaultyServiceTest.java

示例8: getServicesData

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
public ServiceMetaData getServicesData(String serviceName)
        throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getServiceData(serviceName);

}
 
开发者ID:wso2,项目名称:product-ei,代码行数:7,代码来源:ServiceAdminClient.java

示例9: startService

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
public void startService(String serviceName) throws ServiceAdminException, RemoteException {

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

    }
 
开发者ID:wso2,项目名称:product-ei,代码行数:7,代码来源:ServiceAdminClient.java

示例10: stopService

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
public void stopService(String serviceName) throws ServiceAdminException, RemoteException {

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

    }
 
开发者ID:wso2,项目名称:product-ei,代码行数:7,代码来源:ServiceAdminClient.java

示例11: getExposedTransports

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
/**
 *
 * @param serviceName
 * @return
 * @throws ServiceAdminException
 * @throws RemoteException
 */
public String[] getExposedTransports(String serviceName)
        throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getExposedTransports(serviceName);

}
 
开发者ID:wso2,项目名称:product-ei,代码行数:14,代码来源:ServiceAdminClient.java

示例12: getExposedTransports

import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
/**
 *
 * @param serviceName
 * @return
 * @throws ServiceAdminException
 * @throws java.rmi.RemoteException
 */
public String[] getExposedTransports(String serviceName)
        throws ServiceAdminException, RemoteException {

    return serviceAdminStub.getExposedTransports(serviceName);

}
 
开发者ID:wso2,项目名称:product-ei,代码行数:14,代码来源:ServiceAdminClient.java


注:本文中的org.wso2.carbon.service.mgt.stub.ServiceAdminException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。