AjjTest.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.jtgh.yjpt.client;
  2. import java.net.URL;
  3. import java.util.List;
  4. import com.jtgh.yjpt.client.ajj.AjjService;
  5. import com.jtgh.yjpt.client.ajj.AjjWebService;
  6. import com.jtgh.yjpt.entity.ajj.HylbtjEntity;
  7. import com.jtgh.yjpt.entity.ajj.QyjbxxEntity;
  8. import com.jtgh.yjpt.entity.ajj.YhgktjEntity;
  9. import com.jtgh.yjpt.entity.ajj.YhjbtjEntity;
  10. import com.jtgh.yjpt.entity.ajj.YhlbtjEntity;
  11. public class AjjTest {
  12. public static void main(String[] args) {
  13. URL wsdlLocation = AjjService.getWsdlLocationByIp("192.168.0.19",
  14. "8088");
  15. AjjService ajjService = new AjjService(wsdlLocation,
  16. AjjService.AJJSERVICE_QNAME);
  17. AjjWebService webService = ajjService.getAjjWebServicePort();
  18. List<QyjbxxEntity> list = webService.queryQyjbxx(null, "公司",
  19. "10000656", null, null);
  20. list.get(0).toString();
  21. List<YhgktjEntity> gkList = webService.queryYhgk("2013-03", null);
  22. gkList.size();
  23. List<YhlbtjEntity> lbList = webService.queryYhlb(null, "2015-01");
  24. lbList.size();
  25. List<YhjbtjEntity> jbList = webService.queryYhjb("2014-03", "2014-05");
  26. jbList.size();
  27. List<HylbtjEntity> hyList = webService.queryHylb(null, null);
  28. hyList.size();
  29. }
  30. }