| 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_MDO0049;
- import com.miniframe.generate.comm.httpmdoapater.MDO0049Client;
- import com.miniframe.generate.business.mdo.model.MDO0049BaseModel;
- public class MDO0049Test {
- private static final Logger logger = LoggerFactory.getLogger(MDO0049Test.class);
- /**
- * ADFLOW参数查询,获取报文体
- * @return
- */
- public static A_MDO0049 getA_mdo0049() {
- A_MDO0049 a_mdo0049 = new A_MDO0049();
- // ----------以下增加【ADFLOW参数查询】上行体赋值-------------
- // ---------------------------------------------------
- return a_mdo0049;
- }
-
- /**
- * 运行客户端测试,ADFLOW参数查询
- *
- * @param args
- * @throws Exception
- */
- public static void main(String[] args) throws Exception {
- MDO0049BaseModel model = new MDO0049BaseModel();
- model.setA_mdohead(HttpmdoapaterUtil.getA_mdohead("MDO0049"));
- model.setA_mdo0049(MDO0049Test.getA_mdo0049());
- MDO0049Client client = new MDO0049Client();
- logger.error("客户端发送前总线:\r\n"+model);
- model = client.execute(model);
- logger.error("客户端发送后总线:\r\n"+model);
- }
- }
|