TIPTOPServiceGateWay_HY.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package beans.uploaderpdata.erpservice;
  2. import org.apache.cxf.frontend.ClientProxy;
  3. import org.apache.cxf.transport.http.HTTPConduit;
  4. import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
  5. import javax.xml.namespace.QName;
  6. import javax.xml.ws.*;
  7. import java.net.MalformedURLException;
  8. import java.net.URL;
  9. /**
  10. * This class was generated by the JAX-WS RI.
  11. * JAX-WS RI 2.2.9-b130926.1035
  12. * Generated source version: 2.2
  13. */
  14. @WebServiceClient(name = "TIPTOPServiceGateWay", targetNamespace = "http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay", wsdlLocation = "file:C://Users//Administrator//Desktop//aws_ttsrv2_HY.xml")
  15. public class TIPTOPServiceGateWay_HY
  16. extends Service {
  17. private final static URL TIPTOPSERVICEGATEWAY_WSDL_LOCATION;
  18. private final static WebServiceException TIPTOPSERVICEGATEWAY_EXCEPTION;
  19. private final static QName TIPTOPSERVICEGATEWAY_QNAME = new QName("http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay", "TIPTOPServiceGateWay");
  20. static {
  21. URL url = null;
  22. WebServiceException e = null;
  23. try {
  24. //url = new URL("http://192.168.10.115/web/ws/r/aws_ttsrv2_toptest?WSDL");
  25. //url = new URL("file:C://Users//Administrator//Desktop//aws_ttsrv2_toptest_HY.xml");
  26. url = new URL("file:C://Users//Administrator//Desktop//aws_ttsrv2_HY.xml");
  27. } catch (MalformedURLException ex) {
  28. e = new WebServiceException(ex);
  29. }
  30. TIPTOPSERVICEGATEWAY_WSDL_LOCATION = url;
  31. TIPTOPSERVICEGATEWAY_EXCEPTION = e;
  32. }
  33. public TIPTOPServiceGateWay_HY() {
  34. super(__getWsdlLocation(), TIPTOPSERVICEGATEWAY_QNAME);
  35. }
  36. public TIPTOPServiceGateWay_HY(WebServiceFeature... features) {
  37. super(__getWsdlLocation(), TIPTOPSERVICEGATEWAY_QNAME, features);
  38. }
  39. public TIPTOPServiceGateWay_HY(URL wsdlLocation) {
  40. super(wsdlLocation, TIPTOPSERVICEGATEWAY_QNAME);
  41. }
  42. public TIPTOPServiceGateWay_HY(URL wsdlLocation, WebServiceFeature... features) {
  43. super(wsdlLocation, TIPTOPSERVICEGATEWAY_QNAME, features);
  44. }
  45. public TIPTOPServiceGateWay_HY(URL wsdlLocation, QName serviceName) {
  46. super(wsdlLocation, serviceName);
  47. }
  48. public TIPTOPServiceGateWay_HY(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
  49. super(wsdlLocation, serviceName, features);
  50. }
  51. /**
  52. * @return returns TIPTOPServiceGateWayPortType
  53. */
  54. @WebEndpoint(name = "TIPTOPServiceGateWayPortType")
  55. public TIPTOPServiceGateWayPortType getTIPTOPServiceGateWayPortType() {
  56. TIPTOPServiceGateWayPortType portType = super.getPort(new QName("http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay", "TIPTOPServiceGateWayPortType"), TIPTOPServiceGateWayPortType.class);
  57. //���service ��������TIPTOPServiceGateWayPortType
  58. org.apache.cxf.endpoint.Client client = ClientProxy.getClient(portType);
  59. HTTPConduit http = (HTTPConduit) client.getConduit();
  60. HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
  61. httpClientPolicy.setConnectionTimeout(36000);
  62. httpClientPolicy.setAllowChunking(false);
  63. http.setClient(httpClientPolicy);
  64. return portType;
  65. }
  66. /**
  67. * @param features A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
  68. * @return returns TIPTOPServiceGateWayPortType
  69. */
  70. @WebEndpoint(name = "TIPTOPServiceGateWayPortType")
  71. public TIPTOPServiceGateWayPortType getTIPTOPServiceGateWayPortType(WebServiceFeature... features) {
  72. return super.getPort(new QName("http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay", "TIPTOPServiceGateWayPortType"), TIPTOPServiceGateWayPortType.class, features);
  73. }
  74. private static URL __getWsdlLocation() {
  75. if (TIPTOPSERVICEGATEWAY_EXCEPTION != null) {
  76. throw TIPTOPSERVICEGATEWAY_EXCEPTION;
  77. }
  78. return TIPTOPSERVICEGATEWAY_WSDL_LOCATION;
  79. }
  80. }