1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 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_ES0007;
- import com.miniframe.generate.comm.httpesapater.ES0007Client;
- import com.miniframe.generate.business.es.model.ES0007BaseModel;
- public class ES0007Test {
- private static final Logger logger = LoggerFactory.getLogger(ES0007Test.class);
- /**
- * 项目组件连线删除,获取报文体
- * @return
- */
- public static A_ES0007 getA_es0007() {
- A_ES0007 a_es0007 = new A_ES0007();
- // ----------以下增加【项目组件连线删除】上行体赋值-------------
- // ---------------------------------------------------
- return a_es0007;
- }
-
- /**
- * 运行客户端测试,项目组件连线删除
- *
- * @param args
- * @throws Exception
- */
- public static void main(String[] args) throws Exception {
- ES0007BaseModel model = new ES0007BaseModel();
- model.setA_eshead(HttpesapaterUtil.getA_eshead("ES0007"));
- model.setA_es0007(ES0007Test.getA_es0007());
- ES0007Client client = new ES0007Client();
- logger.error("客户端发送前总线:\r\n"+model);
- model = client.execute(model);
- logger.error("客户端发送后总线:\r\n"+model);
- }
- }
|