ZysqbpTestClient.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.jtgh.yjpt.client;
  2. import java.net.URL;
  3. import java.util.Locale;
  4. import java.util.ResourceBundle;
  5. //
  6. //import com.jtgh.yjpt.client.zysqbp.ZysqbpService;
  7. //import com.jtgh.yjpt.client.zysqbp.ZysqbpWebService;
  8. import com.jtgh.yjpt.entity.zysqbp.ZysqbpEntity;
  9. public class ZysqbpTestClient {
  10. public static void main(String[] args) {
  11. // URL wsdlLocation = ZysqbpService.getWsdlLocationByIp(
  12. // "localhost", "8088");
  13. // ZysqbpService zysqbpService = new ZysqbpService(wsdlLocation,
  14. // ZysqbpService.ZYSQBPSERVICE_QNAME);
  15. // ZysqbpWebService webService = zysqbpService.getZysqbpWebServicePort();
  16. //// // test findOne
  17. // Long a = 153250L;
  18. // ZysqbpEntity entity = webService.findOne(a);
  19. //
  20. // // test save
  21. // ZysqbpEntity newData = new ZysqbpEntity();
  22. // newData.setHmhc("test");
  23. // newData.setSlh("test");
  24. // ZysqbpEntity newData2 = webService.save(newData);
  25. // System.out.println("新增成功:"+newData2.getId());
  26. // test delete
  27. // ZysqbpEntity willDel = new ZysqbpEntity();
  28. // willDel.setId(141650L);
  29. // webService.delete(willDel);
  30. ResourceBundle resource = ResourceBundle.getBundle("select");
  31. String driverName = resource.getString("database.driver");
  32. }
  33. }