| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- 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 <code>features</code> 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;
- }
- }
|