package beans.uploaderpdata.erpservice; import org.apache.cxf.frontend.ClientProxy; import org.apache.cxf.transport.http.HTTPConduit; import org.apache.cxf.transports.http.configuration.HTTPClientPolicy; import javax.xml.namespace.QName; import javax.xml.ws.*; import java.net.MalformedURLException; import java.net.URL; /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.2.9-b130926.1035 * Generated source version: 2.2 */ @WebServiceClient(name = "TIPTOPServiceGateWay", targetNamespace = "http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay", wsdlLocation = "file:C://Users//Administrator//Desktop//aws_ttsrv2_HY.xml") public class TIPTOPServiceGateWay_HY extends Service { private final static URL TIPTOPSERVICEGATEWAY_WSDL_LOCATION; private final static WebServiceException TIPTOPSERVICEGATEWAY_EXCEPTION; private final static QName TIPTOPSERVICEGATEWAY_QNAME = new QName("http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay", "TIPTOPServiceGateWay"); static { URL url = null; WebServiceException e = null; try { //url = new URL("http://192.168.10.115/web/ws/r/aws_ttsrv2_toptest?WSDL"); //url = new URL("file:C://Users//Administrator//Desktop//aws_ttsrv2_toptest_HY.xml"); url = new URL("file:C://Users//Administrator//Desktop//aws_ttsrv2_HY.xml"); } catch (MalformedURLException ex) { e = new WebServiceException(ex); } TIPTOPSERVICEGATEWAY_WSDL_LOCATION = url; TIPTOPSERVICEGATEWAY_EXCEPTION = e; } public TIPTOPServiceGateWay_HY() { super(__getWsdlLocation(), TIPTOPSERVICEGATEWAY_QNAME); } public TIPTOPServiceGateWay_HY(WebServiceFeature... features) { super(__getWsdlLocation(), TIPTOPSERVICEGATEWAY_QNAME, features); } public TIPTOPServiceGateWay_HY(URL wsdlLocation) { super(wsdlLocation, TIPTOPSERVICEGATEWAY_QNAME); } public TIPTOPServiceGateWay_HY(URL wsdlLocation, WebServiceFeature... features) { super(wsdlLocation, TIPTOPSERVICEGATEWAY_QNAME, features); } public TIPTOPServiceGateWay_HY(URL wsdlLocation, QName serviceName) { super(wsdlLocation, serviceName); } public TIPTOPServiceGateWay_HY(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { super(wsdlLocation, serviceName, features); } /** * @return returns TIPTOPServiceGateWayPortType */ @WebEndpoint(name = "TIPTOPServiceGateWayPortType") public TIPTOPServiceGateWayPortType getTIPTOPServiceGateWayPortType() { TIPTOPServiceGateWayPortType portType = super.getPort(new QName("http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay", "TIPTOPServiceGateWayPortType"), TIPTOPServiceGateWayPortType.class); //���service ��������TIPTOPServiceGateWayPortType org.apache.cxf.endpoint.Client client = ClientProxy.getClient(portType); HTTPConduit http = (HTTPConduit) client.getConduit(); HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); httpClientPolicy.setConnectionTimeout(36000); httpClientPolicy.setAllowChunking(false); http.setClient(httpClientPolicy); return portType; } /** * @param features A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. * @return returns TIPTOPServiceGateWayPortType */ @WebEndpoint(name = "TIPTOPServiceGateWayPortType") public TIPTOPServiceGateWayPortType getTIPTOPServiceGateWayPortType(WebServiceFeature... features) { return super.getPort(new QName("http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay", "TIPTOPServiceGateWayPortType"), TIPTOPServiceGateWayPortType.class, features); } private static URL __getWsdlLocation() { if (TIPTOPSERVICEGATEWAY_EXCEPTION != null) { throw TIPTOPSERVICEGATEWAY_EXCEPTION; } return TIPTOPSERVICEGATEWAY_WSDL_LOCATION; } }