本文整理汇总了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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例8: getServicesData
import org.wso2.carbon.service.mgt.stub.ServiceAdminException; //导入依赖的package包/类
public ServiceMetaData getServicesData(String serviceName)
throws ServiceAdminException, RemoteException {
return serviceAdminStub.getServiceData(serviceName);
}
示例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");
}
示例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");
}
示例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);
}
示例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);
}