
package com.hyl.wsclient;

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.6-2b01 
 * Generated source version: 2.2
 * 
 */
@WebServiceClient(name = "WeightCheck", targetNamespace = "http://hyl.com/", wsdlLocation = "file:/D:/WeightCheck.wsdl")
public class WeightCheck_Service
    extends Service
{

    private final static URL WEIGHTCHECK_WSDL_LOCATION;
    private final static WebServiceException WEIGHTCHECK_EXCEPTION;
    private final static QName WEIGHTCHECK_QNAME = new QName("http://hyl.com/", "WeightCheck");

    static {
        URL url = null;
        WebServiceException e = null;
        try {
            url = new URL("file:/D:/WeightCheck.wsdl");
        } catch (MalformedURLException ex) {
            e = new WebServiceException(ex);
        }
        WEIGHTCHECK_WSDL_LOCATION = url;
        WEIGHTCHECK_EXCEPTION = e;
    }

    public WeightCheck_Service() {
        super(__getWsdlLocation(), WEIGHTCHECK_QNAME);
    }

    public WeightCheck_Service(WebServiceFeature... features) {
        super(__getWsdlLocation(), WEIGHTCHECK_QNAME, features);
    }

    public WeightCheck_Service(URL wsdlLocation) {
        super(wsdlLocation, WEIGHTCHECK_QNAME);
    }

    public WeightCheck_Service(URL wsdlLocation, WebServiceFeature... features) {
        super(wsdlLocation, WEIGHTCHECK_QNAME, features);
    }

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

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

    /**
     * 
     * @return
     *     returns WeightCheck
     */
    @WebEndpoint(name = "WeightCheckPort")
    public WeightCheck getWeightCheckPort() {
        return super.getPort(new QName("http://hyl.com/", "WeightCheckPort"), WeightCheck.class);
    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
     * @return
     *     returns WeightCheck
     */
    @WebEndpoint(name = "WeightCheckPort")
    public WeightCheck getWeightCheckPort(WebServiceFeature... features) {
        return super.getPort(new QName("http://hyl.com/", "WeightCheckPort"), WeightCheck.class, features);
    }

    private static URL __getWsdlLocation() {
        if (WEIGHTCHECK_EXCEPTION!= null) {
            throw WEIGHTCHECK_EXCEPTION;
        }
        return WEIGHTCHECK_WSDL_LOCATION;
    }

}
