package org.socialhistoryservices.pid;

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;

/**
 * This class was generated by Apache CXF 2.5.2 2012-10-02T19:06:26.558+02:00 Generated source version: 2.5.2
 * 
 */
@WebServiceClient(name = "PidResourceService", wsdlLocation = "file:/Users/alessia/workspace/dnet/cnr-hope-pid-client/src/main/org/socialhistoryservices/pid/pid-new.wsdl", targetNamespace = "http://pid.socialhistoryservices.org/")
public class PidResourceService extends Service implements PidResourceServiceInterface {

	public final static URL WSDL_LOCATION;

	public final static QName SERVICE = new QName("http://pid.socialhistoryservices.org/", "PidResourceService");
	public final static QName PidResourceSoap11 = new QName("http://pid.socialhistoryservices.org/", "PidResourceSoap11");
	static {
		URL url = null;
		try {
			url = new URL("file:/Users/alessia/workspace/dnet/cnr-hope-pid-client/src/main/org/socialhistoryservices/pid/pid-new.wsdl");
		} catch (MalformedURLException e) {
			java.util.logging.Logger.getLogger(PidResourceService.class.getName()).log(java.util.logging.Level.INFO,
					"Can not initialize the default wsdl from {0}",
					"file:/Users/alessia/workspace/dnet/cnr-hope-pid-client/src/main/org/socialhistoryservices/pid/pid-new.wsdl");
		}
		WSDL_LOCATION = url;
	}

	public PidResourceService(URL wsdlLocation) {
		super(wsdlLocation, SERVICE);
	}

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

	public PidResourceService() {
		super(WSDL_LOCATION, SERVICE);
	}

	/**
	 * 
	 * @return returns PidResource
	 */
	@Override
	@WebEndpoint(name = "PidResourceSoap11")
	public PidResource getPidResourceSoap11() {
		return super.getPort(PidResourceSoap11, PidResource.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 PidResource
	 */
	@Override
	@WebEndpoint(name = "PidResourceSoap11")
	public PidResource getPidResourceSoap11(WebServiceFeature... features) {
		return super.getPort(PidResourceSoap11, PidResource.class, features);
	}

}
