package com.miniframe.comm.httpclientapater; import org.apache.log4j.Logger; import com.miniframe.comm.httpclientapater.HttpclientapaterUtil; import com.miniframe.generate.comm.system.A_HM0005; import com.miniframe.generate.comm.httpclientapater.HM0005Client; import com.miniframe.generate.business.system.model.HM0005BaseModel; public class HM0005Test { private static final Logger logger = Logger.getLogger(HM0005Test.class); /** * 批处理,获取报文体 * @return */ public static A_HM0005 getA_hm0005() { A_HM0005 a_hm0005 = new A_HM0005(); // ----------以下增加【批处理】上行体赋值------------- // --------------------------------------------------- return a_hm0005; } /** * 运行客户端测试,批处理 * * @param args * @throws Exception */ public static void main(String[] args) throws Exception { HM0005BaseModel model = new HM0005BaseModel(); model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("HM0005")); model.setA_hm0005(HM0005Test.getA_hm0005()); HM0005Client client = new HM0005Client(); logger.error("客户端发送前总线:\r\n"+model); model = client.execute(model); logger.error("客户端发送后总线:\r\n"+model); } }