12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package com.miniframe.comm.httpclientapater;
- import org.apache.log4j.Logger;
- import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
- import com.miniframe.generate.comm.system.A_HM0003;
- import com.miniframe.generate.comm.httpclientapater.HM0003Client;
- import com.miniframe.generate.business.system.model.HM0003BaseModel;
- public class HM0003Test {
- private static final Logger logger = Logger.getLogger(HM0003Test.class);
- /**
- * 密码修改,获取报文体
- * @return
- */
- public static A_HM0003 getA_hm0003() {
- A_HM0003 a_hm0003 = new A_HM0003();
- // ----------以下增加【密码修改】上行体赋值-------------
- // ---------------------------------------------------
- return a_hm0003;
- }
-
- /**
- * 运行客户端测试,密码修改
- *
- * @param args
- * @throws Exception
- */
- public static void main(String[] args) throws Exception {
- HM0003BaseModel model = new HM0003BaseModel();
- model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("HM0003"));
- model.setA_hm0003(HM0003Test.getA_hm0003());
- HM0003Client client = new HM0003Client();
- logger.error("客户端发送前总线:\r\n"+model);
- model = client.execute(model);
- logger.error("客户端发送后总线:\r\n"+model);
- }
- }
|