parent
752838088e
commit
02ade71c2e
|
@ -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());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue