MesureDeviceWebServiceDAS
package com.accu.business.pms.webservice;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.encoding.XMLType;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import com.accu.common.util.FileUtils;
public class MesureDeviceWebServiceDAS {
public static String queryMesureDevice(String commond, String guidStationId){
String result = "";
try {
Service service = new Service();
Call call = (Call) service.createCall();
call.setOperationName(new QName("", "changeMesureDevice"));
call.addParameter("commond", XMLType.XSD_STRING, ParameterMode.IN);
call.setTargetEndpointAddress(new URL( FileUtils.getProperties("accuwebservice","mesureDeviceWebServiceDAS"+guidStationId)));
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
result=(String)call.invoke(new Object[] {commond});
} catch (Exception e) {
e.printStackTrace();
result = "error";
}
return result;
}
public static String queryMesureParam(String commond, String guidStationId){
String result = "";
try {
Service service = new Service();
Call call = (Call) service.createCall();
call.setOperationName(new QName("", "changeMesureParam"));
call.addParameter("commond", XMLType.XSD_STRING, ParameterMode.IN);
call.setTargetEndpointAddress(new URL( FileUtils.getProperties("accuwebservice","mesureDeviceWebServiceDAS"+guidStationId)));
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
result=(String)call.invoke(new Object[] {commond});
} catch (Exception e) {
e.printStackTrace();
result = "error";
}
return result;
}
/* public static Boolean queryMesureDevice(String stationId){
Boolean result = true;
MesureDeviceWebService rdrw = pws.getServiceClass();
try {
MetersMapper mmapper = SpringContextHolder.getBeanbyClass(MetersMapper.class);
List<Meters> metersList = mmapper.getMesureDeviceByStationId(stationId);
rdrw.changeMesureDevice(metersList);
} catch (Exception e) {
e.printStackTrace();
result = false;
}
return result;
}
public static Boolean queryMesureParam(String stationId){
Boolean result = true;
MesureDeviceWebService rdrw = pws.getServiceClass();
try {
MeasureParamMapper mpMapper = SpringContextHolder.getBeanbyClass(MeasureParamMapper.class);
List<MeasureParam> measureParamList = mpMapper.getMesureParamByStationId(stationId);
rdrw.changeMesureParam(measureParamList);
} catch (Exception e) {
e.printStackTrace();
result = false;
}
return result;
}*/
}
MesureDeviceWebServiceDAS的更多相关文章
随机推荐
- yii2的定时任务
php yii minsheng-cancel-account/cancel-applied-account
- FlashFXP 4.3.1 注册码
FlashFXP 4.3.1 注册码 --------start--------- FLASHFXPwQAOlhkgwQAAAAC6W5MNJwTnsl73nIraAU149tnCQS0hmZU3GG ...
- iOS安全系列之 HTTPS
作者:Jaminzzhang 如何打造一个安全的App?这是每一个移动开发者必须面对的问题.在移动App开发领域,开发工程师对于安全方面的考虑普遍比较欠缺,而由于iOS平台的封闭性,遭遇到的安全问题相 ...
- rsync的配置文件模板及简单介绍,命令及参数
必须知道推送有一个限速参数.--bwlimit=100 工作总必须要加.有三种模式,1.本地的模拟cp命令,在一个服务器2.远程的两个服务器之间,模拟scp3.以socket进程监听的方式启动rsyn ...
- hdu2853
题解: KM算法模板 然后我把另一边加了点 然后写了#define int long long 然后莫名挂... 然后去掉就过了 代码: #include<cstdio> #include ...
- 【Android测试】UI自动化代码优化之路
◆版权声明:本文出自胖喵~的博客,转载必须注明出处. 转载请注明出处:http://www.cnblogs.com/by-dream/p/5993622.html 关于UI自动化的抱怨 听过不少人这样 ...
- C语言实现的矩阵乘法运算器
需求 编写程序模拟矩阵乘法,一个m*n的矩阵,乘以一个 n*m 的矩阵, 并且输出结果. STEP 1 矩阵乘法的计算 一个m行n列的矩阵与一个n行p列的矩阵可以相乘,得到的结果是一个m行p列的矩阵 ...
- APUE学习笔记——10.18 system函数 与waitpid
system函数 system函数用方便在一个进程中执行命令行(一行shell命令). 用法如下: #include <stdio.h> #include <stdlib.h> ...
- make笔记
Makefile基本格式如下: target ... : prerequisites ... command ... ... 其中, target - 目标文件, 可以是 Object File, 也 ...
- asp页面快速找到菜单按钮转向的页面的方法
asp页面快速找到菜单按钮转向的页面的方法: 鼠标放在按钮上,右键属性即可查看