123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package com.miniframe.comm.httpclientapater;
- import org.apache.log4j.Logger;
- import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
- import com.miniframe.generate.comm.system.A_HM0001;
- import com.miniframe.generate.comm.httpclientapater.HM0001Client;
- import com.miniframe.generate.business.system.model.HM0001BaseModel;
- public class HM0001Test {
- private static final Logger logger = Logger.getLogger(HM0001Test.class);
- /**
- * 系统登录,获取报文体
- * @return
- */
- public static A_HM0001 getA_hm0001() {
- A_HM0001 a_hm0001 = new A_HM0001();
- // ----------以下增加【系统登录】上行体赋值-------------
-
- a_hm0001.setLogintype("1");
- a_hm0001.setPassword("2176216712");
- a_hm0001.setVerifygraph("1234");
-
- // ---------------------------------------------------
- return a_hm0001;
- }
-
- /**
- * 运行客户端测试,系统登录
- *
- * @param args
- * @throws Exception
- */
- public static void main(String[] args) throws Exception {
- HM0001BaseModel model = new HM0001BaseModel();
- model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("HM0001"));
- model.setA_hm0001(HM0001Test.getA_hm0001());
- HM0001Client client = new HM0001Client();
- logger.error("客户端发送前总线:\r\n"+model);
- model = client.execute(model);
- logger.error("客户端发送后总线:\r\n"+model);
- }
- }
|