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.ac.A_BES001;
- import com.miniframe.generate.comm.httpesapater.BES001Client;
- import com.miniframe.generate.business.ac.model.BES001BaseModel;
- public class BES001Test {
- private static final Logger logger = LoggerFactory.getLogger(BES001Test.class);
- /**
- * 基础字典查询,获取报文体
- * @return
- */
- public static A_BES001 getA_bes001() {
- A_BES001 a_bes001 = new A_BES001();
- // ----------以下增加【基础字典查询】上行体赋值-------------
- // ---------------------------------------------------
- return a_bes001;
- }
-
- /**
- * 运行客户端测试,基础字典查询
- *
- * @param args
- * @throws Exception
- */
- public static void main(String[] args) throws Exception {
- BES001BaseModel model = new BES001BaseModel();
- model.setA_achead(HttpesapaterUtil.getA_achead("BES001"));
- model.setA_bes001(BES001Test.getA_bes001());
- BES001Client client = new BES001Client();
- logger.error("客户端发送前总线:\r\n"+model);
- model = client.execute(model);
- logger.error("客户端发送后总线:\r\n"+model);
- }
- }
|