HM0006Test.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.miniframe.comm.httpclientapater;
  2. import org.apache.log4j.Logger;
  3. import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
  4. import com.miniframe.generate.comm.system.A_HM0006;
  5. import com.miniframe.generate.comm.httpclientapater.HM0006Client;
  6. import com.miniframe.generate.business.system.model.HM0006BaseModel;
  7. public class HM0006Test {
  8. private static final Logger logger = Logger.getLogger(HM0006Test.class);
  9. /**
  10. * 文件上传,获取报文体
  11. * @return
  12. */
  13. public static A_HM0006 getA_hm0006() {
  14. A_HM0006 a_hm0006 = new A_HM0006();
  15. // ----------以下增加【文件上传】上行体赋值-------------
  16. // ---------------------------------------------------
  17. return a_hm0006;
  18. }
  19. /**
  20. * 运行客户端测试,文件上传
  21. *
  22. * @param args
  23. * @throws Exception
  24. */
  25. public static void main(String[] args) throws Exception {
  26. HM0006BaseModel model = new HM0006BaseModel();
  27. model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("HM0006"));
  28. model.setA_hm0006(HM0006Test.getA_hm0006());
  29. HM0006Client client = new HM0006Client();
  30. logger.error("客户端发送前总线:\r\n"+model);
  31. model = client.execute(model);
  32. logger.error("客户端发送后总线:\r\n"+model);
  33. }
  34. }