| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package com.miniframe.comm.httpmdoapater;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import com.miniframe.comm.httpmdoapater.HttpmdoapaterUtil;
- import com.miniframe.generate.comm.mdo.A_MDO2007;
- import com.miniframe.generate.comm.httpmdoapater.MDO2007Client;
- import com.miniframe.generate.business.mdo.model.MDO2007BaseModel;
- public class MDO2007Test {
- private static final Logger logger = LoggerFactory.getLogger(MDO2007Test.class);
- /**
- * FLIGHT参数查询,获取报文体
- * @return
- */
- public static A_MDO2007 getA_mdo2007() {
- A_MDO2007 a_mdo2007 = new A_MDO2007();
- // ----------以下增加【FLIGHT参数查询】上行体赋值-------------
- // ---------------------------------------------------
- return a_mdo2007;
- }
-
- /**
- * 运行客户端测试,FLIGHT参数查询
- *
- * @param args
- * @throws Exception
- */
- public static void main(String[] args) throws Exception {
- MDO2007BaseModel model = new MDO2007BaseModel();
- model.setA_mdohead(HttpmdoapaterUtil.getA_mdohead("MDO2007"));
- model.setA_mdo2007(MDO2007Test.getA_mdo2007());
- MDO2007Client client = new MDO2007Client();
- logger.error("客户端发送前总线:\r\n"+model);
- model = client.execute(model);
- logger.error("客户端发送后总线:\r\n"+model);
- }
- }
|