package com.miniframe.comm.httpesapater; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.miniframe.comm.httpesapater.HttpesapaterUtil; import com.miniframe.generate.comm.es.A_ES0004; import com.miniframe.generate.comm.httpesapater.ES0004Client; import com.miniframe.generate.business.es.model.ES0004BaseModel; public class ES0004Test { private static final Logger logger = LoggerFactory.getLogger(ES0004Test.class); /** * 项目添加组件,获取报文体 * @return */ public static A_ES0004 getA_es0004() { A_ES0004 a_es0004 = new A_ES0004(); // ----------以下增加【项目添加组件】上行体赋值------------- // --------------------------------------------------- return a_es0004; } /** * 运行客户端测试,项目添加组件 * * @param args * @throws Exception */ public static void main(String[] args) throws Exception { ES0004BaseModel model = new ES0004BaseModel(); model.setA_eshead(HttpesapaterUtil.getA_eshead("ES0004")); model.setA_es0004(ES0004Test.getA_es0004()); ES0004Client client = new ES0004Client(); logger.error("客户端发送前总线:\r\n"+model); model = client.execute(model); logger.error("客户端发送后总线:\r\n"+model); } }