From 02ade71c2e77636bf5e7dcb08dbeb09ad143845f Mon Sep 17 00:00:00 2001 From: lijinxing Date: Fri, 27 Mar 2020 16:50:23 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM=20=E6=8F=90=E4=BA=A4=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=85=A8=E9=83=A8=E6=B8=85=E6=B4=97=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dptech/wsdl/getAllProtectDevices.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/test/java/com/cmcc/hy/phoenix/dptech/wsdl/getAllProtectDevices.java 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()); + } + + } +}