/*******************************************************************************
 * Copyright (c) 2020 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

//
// Generated By:JAX-WS RI IBM 2.1.1 in JDK 6 (JAXB RI IBM JAXB 2.1.3 in JDK 1.6)
//

package com.ibm.was.wssample.sei.ping;

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.WebServiceFeature;

@WebServiceClient(name = "PingService", targetNamespace = "http://com/ibm/was/wssample/sei/ping/", wsdlLocation = "WEB-INF/wsdl/Ping.wsdl")
public class PingService extends Service {

    private final static URL PINGSERVICE_WSDL_LOCATION;

    static {
        URL url = null;
        try {
            url = com.ibm.was.wssample.sei.ping.PingService.class.getResource("/WEB-INF/wsdl/Ping.wsdl");
            if (url == null)
                throw new MalformedURLException("/WEB-INF/wsdl/Ping.wsdl does not exist in the module.");
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
        PINGSERVICE_WSDL_LOCATION = url;
    }

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

    public PingService() {
        super(PINGSERVICE_WSDL_LOCATION, new QName("http://com/ibm/was/wssample/sei/ping/", "PingService"));
    }

    /**
     *
     * @return
     *         returns PingServicePortType
     */
    @WebEndpoint(name = "PingServicePort")
    public PingServicePortType getPingServicePort() {
        return super.getPort(new QName("http://com/ibm/was/wssample/sei/ping/", "PingServicePort"), PingServicePortType.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 PingServicePortType
     */
    @WebEndpoint(name = "PingServicePort")
    public PingServicePortType getPingServicePort(WebServiceFeature... features) {
        return super.getPort(new QName("http://com/ibm/was/wssample/sei/ping/", "PingServicePort"), PingServicePortType.class, features);
    }

}
