REM 提交获取全部清洗设备接口测试
This commit is contained in:
lijinxing 2020-03-27 16:50:23 +08:00
parent 752838088e
commit 02ade71c2e
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
package com.cmcc.hy.phoenix.dptech.wsdl;
public class getAllProtectDevices {
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.GetAllProtectDevices getPDevices = new AbnormalFlowCleaningServiceStub.GetAllProtectDevices();
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.GetAllProtectDevicesResponse response = stub.getAllProtectDevices(getPDevices);
System.out.println("allProtectDevices: " + response.getOut());
} catch (org.apache.axis2.AxisFault ex) {
System.out.println(ex.toString());
} catch (java.rmi.RemoteException ex2) {
System.out.println(ex2.toString());
}
}
}