OCT
REM: 1. 调试添加检测对象接口 2. 对应添加检测设备列表、清洗设备列表、检测对象名、检测IP、IP类型和清洗类型 出参为状态码和结果描述
This commit is contained in:
parent
48b6ec0e50
commit
4e0d9c539b
|
@ -0,0 +1,34 @@
|
|||
package com.cmcc.hy.phoenix.dptech;
|
||||
|
||||
public class TestaddDetectionObjectForUMC {
|
||||
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();
|
||||
AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMC AddDO = new AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMC();
|
||||
AddDO.setDetectionDevices("192.168.1.1");
|
||||
AddDO.setCleaningDevices("10.88.76.41");
|
||||
AddDO.setDetectionName("4");
|
||||
AddDO.setIpSegment("10.88.78.20-10.88.78.22");
|
||||
AddDO.setIpType(0);
|
||||
AddDO.setCleaningType(3);
|
||||
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);
|
||||
|
||||
AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMCResponse AddDOresp = stub.addDetectionObjectForUMC(AddDO);
|
||||
|
||||
System.out.println("ResultInfo: " + AddDOresp.localOut.getResultInfo());
|
||||
System.out.println("resultReVal: " + AddDOresp.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