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