package com.miniframe.comm.httpclientapater; import org.apache.log4j.Logger; import com.miniframe.comm.httpclientapater.HttpclientapaterUtil; import com.miniframe.generate.comm.system.A_HM0004; import com.miniframe.generate.comm.httpclientapater.HM0004Client; import com.miniframe.generate.business.system.model.HM0004BaseModel; public class HM0004Test { private static final Logger logger = Logger.getLogger(HM0004Test.class); /** * 密码重置,获取报文体 * @return */ public static A_HM0004 getA_hm0004() { A_HM0004 a_hm0004 = new A_HM0004(); // ----------以下增加【密码重置】上行体赋值------------- // --------------------------------------------------- return a_hm0004; } /** * 运行客户端测试,密码重置 * * @param args * @throws Exception */ public static void main(String[] args) throws Exception { HM0004BaseModel model = new HM0004BaseModel(); model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("HM0004")); model.setA_hm0004(HM0004Test.getA_hm0004()); HM0004Client client = new HM0004Client(); logger.error("客户端发送前总线:\r\n"+model); model = client.execute(model); logger.error("客户端发送后总线:\r\n"+model); } }