package com.miniframe.comm.httpclientapater; import org.apache.log4j.Logger; import com.miniframe.comm.httpclientapater.HttpclientapaterUtil; import com.miniframe.generate.comm.system.A_HM0002; import com.miniframe.generate.comm.httpclientapater.HM0002Client; import com.miniframe.generate.business.system.model.HM0002BaseModel; public class HM0002Test { private static final Logger logger = Logger.getLogger(HM0002Test.class); /** * 系统登出,获取报文体 * @return */ public static A_HM0002 getA_hm0002() { A_HM0002 a_hm0002 = new A_HM0002(); // ----------以下增加【系统登出】上行体赋值------------- // --------------------------------------------------- return a_hm0002; } /** * 运行客户端测试,系统登出 * * @param args * @throws Exception */ public static void main(String[] args) throws Exception { HM0002BaseModel model = new HM0002BaseModel(); model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("HM0002")); model.setA_hm0002(HM0002Test.getA_hm0002()); HM0002Client client = new HM0002Client(); logger.error("客户端发送前总线:\r\n"+model); model = client.execute(model); logger.error("客户端发送后总线:\r\n"+model); } }