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_ES1001; import com.miniframe.generate.comm.httpesapater.ES1001Client; import com.miniframe.generate.business.es.model.ES1001BaseModel; public class ES1001Test { private static final Logger logger = LoggerFactory.getLogger(ES1001Test.class); /** * 组件查询,获取报文体 * @return */ public static A_ES1001 getA_es1001() { A_ES1001 a_es1001 = new A_ES1001(); // ----------以下增加【组件查询】上行体赋值------------- // --------------------------------------------------- return a_es1001; } /** * 运行客户端测试,组件查询 * * @param args * @throws Exception */ public static void main(String[] args) throws Exception { ES1001BaseModel model = new ES1001BaseModel(); model.setA_eshead(HttpesapaterUtil.getA_eshead("ES1001")); model.setA_es1001(ES1001Test.getA_es1001()); ES1001Client client = new ES1001Client(); logger.error("客户端发送前总线:\r\n"+model); model = client.execute(model); logger.error("客户端发送后总线:\r\n"+model); } }