12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package com.miniframe.comm.httpclientapater;
- import org.apache.log4j.Logger;
- import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
- import com.miniframe.generate.comm.system.A_HM0000;
- import com.miniframe.generate.comm.httpclientapater.HM0000Client;
- import com.miniframe.generate.business.system.model.HM0000BaseModel;
- public class HM0000Test {
- private static final Logger logger = Logger.getLogger(HM0000Test.class);
- /**
- * 获取验证码,获取报文体
- * @return
- */
- public static A_HM0000 getA_hm0000() {
- A_HM0000 a_hm0000 = new A_HM0000();
- // ----------以下增加【获取验证码】上行体赋值-------------
- // ---------------------------------------------------
- return a_hm0000;
- }
-
- /**
- * 运行客户端测试,获取验证码
- *
- * @param args
- * @throws Exception
- */
- public static void main(String[] args) throws Exception {
- HM0000BaseModel model = new HM0000BaseModel();
- model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("HM0000"));
- model.setA_hm0000(HM0000Test.getA_hm0000());
- HM0000Client client = new HM0000Client();
- logger.error("客户端发送前总线:\r\n"+model);
- model = client.execute(model);
- logger.error("客户端发送后总线:\r\n"+model);
- }
- }
|