diff --git a/src/test/java/com/cmcc/hy/phoenix/dptech/wsdl/getAllProtectDevices.java b/src/test/java/com/cmcc/hy/phoenix/dptech/wsdl/getAllProtectDevices.java new file mode 100644 index 00000000..d044db06 --- /dev/null +++ b/src/test/java/com/cmcc/hy/phoenix/dptech/wsdl/getAllProtectDevices.java @@ -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()); + } + + } +}