OCT
REM: 1. 添加删除检测对象接口 2. 入参检测对象名称,根据检测对象名称删除对象,出参为执行结果描述和状态码
This commit is contained in:
commit
e756fc2514
|
@ -0,0 +1,39 @@
|
|||
package com.cmcc.hy.phoenix.dptech;
|
||||
|
||||
public class TestdeleteDetectionObjectForUMC {
|
||||
public static void main(String[] args) {
|
||||
try{
|
||||
org.apache.axis2.transport.http.impl.httpclient4.HttpTransportPropertiesImpl.Authenticator basicAuthentication =
|
||||
new org.apache.axis2.transport.http.impl.httpclient4.HttpTransportPropertiesImpl.Authenticator();
|
||||
|
||||
basicAuthentication.setUsername("admin");
|
||||
basicAuthentication.setPassword("UMCAdministrator");
|
||||
|
||||
AbnormalFlowCleaningServiceStub stub = new AbnormalFlowCleaningServiceStub();
|
||||
/*
|
||||
删除检测对象,删除指定名称的检测对象
|
||||
detectionName:检测对象名称
|
||||
*/
|
||||
AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMC DelDO = new AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMC();
|
||||
DelDO.setDetectionName("4");
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, basicAuthentication);
|
||||
|
||||
/*
|
||||
获取修改对象的response
|
||||
resultReVal:返回状态码
|
||||
ResultInfo:请求执行结果描述
|
||||
*/
|
||||
AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMCResponse DelDOresp = stub.deleteDetectionObjectForUMC(DelDO);
|
||||
|
||||
System.out.println("ResultInfo: " + DelDOresp.localOut.getResultInfo());
|
||||
System.out.println("resultReVal: " + DelDOresp.localOut.getResultRetVal());
|
||||
|
||||
} catch (org.apache.axis2.AxisFault ex) {
|
||||
System.out.println(ex.toString());
|
||||
} catch (java.rmi.RemoteException ex2) {
|
||||
System.out.println(ex2.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue