
package com.ruoyi.web.webservice.contract;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;


/**
 * This class was generated by the JAX-WS RI.
 * JAX-WS RI 2.2.9-b130926.1035
 * Generated source version: 2.2
 *
 */
@WebServiceClient(name = "SI_OASD_HTCX_OUTService", targetNamespace = "http://jncable.com/SD/HTCX", wsdlLocation = "http://poprd:50000/dir/wsdl?p=ic/e1fa44a11fe33076ae0186750b236995")
public class SIOASDHTCXOUTService
    extends Service
{
    private  static URL SIOASDHTCXOUTSERVICE_WSDL_LOCATION;
    private  static WebServiceException SIOASDHTCXOUTSERVICE_EXCEPTION;
    private  static QName SIOASDHTCXOUTSERVICE_QNAME = new QName("http://jncable.com/SD/HTCX", "SI_OASD_HTCX_OUTService");

    /**
     * 赋值host
     * @param host
     */
    /*static {
        URL url = null;
        WebServiceException e = null;
        try {
            System.out.println(getHost());
            url = new URL("http://"+host+":50000/dir/wsdl?p=ic/e1fa44a11fe33076ae0186750b236995");
        } catch (MalformedURLException ex) {
            e = new WebServiceException(ex);
        }
        SIOASDHTCXOUTSERVICE_WSDL_LOCATION = url;
        SIOASDHTCXOUTSERVICE_EXCEPTION = e;
    }*/
    public void setHost(String host) {
        URL url = null;
        WebServiceException e = null;
        try {
            url = new URL("http://"+host+":50000/dir/wsdl?p=ic/e1fa44a11fe33076ae0186750b236995");
        } catch (MalformedURLException ex) {
            e = new WebServiceException(ex);
        }
        SIOASDHTCXOUTSERVICE_WSDL_LOCATION = url;
        SIOASDHTCXOUTSERVICE_EXCEPTION = e;
    }

    public SIOASDHTCXOUTService() {
        super(__getWsdlLocation(), SIOASDHTCXOUTSERVICE_QNAME);
    }

    public SIOASDHTCXOUTService(WebServiceFeature... features) {
        super(__getWsdlLocation(), SIOASDHTCXOUTSERVICE_QNAME, features);
    }

    public SIOASDHTCXOUTService(URL wsdlLocation) {
        super(wsdlLocation, SIOASDHTCXOUTSERVICE_QNAME);
    }

    public SIOASDHTCXOUTService(URL wsdlLocation, WebServiceFeature... features) {
        super(wsdlLocation, SIOASDHTCXOUTSERVICE_QNAME, features);
    }

    public SIOASDHTCXOUTService(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public SIOASDHTCXOUTService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
        super(wsdlLocation, serviceName, features);
    }

    /**
     *
     * @return
     *     returns SIOASDHTCXOUT
     */
    @WebEndpoint(name = "HTTP_Port")
    public SIOASDHTCXOUT getHTTPPort() {
        return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTP_Port"), SIOASDHTCXOUT.class);
    }

    /**
     *
     * @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 SIOASDHTCXOUT
     */
    @WebEndpoint(name = "HTTP_Port")
    public SIOASDHTCXOUT getHTTPPort(WebServiceFeature... features) {
        return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTP_Port"), SIOASDHTCXOUT.class, features);
    }

    /**
     *
     * @return
     *     returns SIOASDHTCXOUT
     */
    @WebEndpoint(name = "HTTPS_Port")
    public SIOASDHTCXOUT getHTTPSPort() {
        return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTPS_Port"), SIOASDHTCXOUT.class);
    }

    /**
     *
     * @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 SIOASDHTCXOUT
     */
    @WebEndpoint(name = "HTTPS_Port")
    public SIOASDHTCXOUT getHTTPSPort(WebServiceFeature... features) {
        return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTPS_Port"), SIOASDHTCXOUT.class, features);
    }

    private static URL __getWsdlLocation() {
        if (SIOASDHTCXOUTSERVICE_EXCEPTION!= null) {
            throw SIOASDHTCXOUTSERVICE_EXCEPTION;
        }
        return SIOASDHTCXOUTSERVICE_WSDL_LOCATION;
    }

}
