12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package com.miniframe.comm.httpclientapater;
- import org.apache.log4j.Logger;
- import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
- import com.miniframe.generate.comm.system.A_HS0000;
- import com.miniframe.generate.comm.httpclientapater.HS0000Client;
- import com.miniframe.generate.business.system.model.HS0000BaseModel;
- public class HS0000Test {
- private static final Logger logger = Logger.getLogger(HS0000Test.class);
- /**
- * 通用查询,获取报文体
- * @return
- */
- public static A_HS0000 getA_hs0000() {
- A_HS0000 a_hs0000 = new A_HS0000();
- // ----------以下增加【通用查询】上行体赋值-------------
- // ---------------------------------------------------
- return a_hs0000;
- }
-
- /**
- * 运行客户端测试,通用查询
- *
- * @param args
- * @throws Exception
- */
- public static void main(String[] args) throws Exception {
- HS0000BaseModel model = new HS0000BaseModel();
- model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("HS0000"));
- model.setA_hs0000(HS0000Test.getA_hs0000());
- HS0000Client client = new HS0000Client();
- logger.error("客户端发送前总线:\r\n"+model);
- model = client.execute(model);
- logger.error("客户端发送后总线:\r\n"+model);
- }
- }
|