All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.esec.icpm.mss.ws.SignatureServiceWS Maven / Gradle / Ivy

The newest version!
/**
 * @see UC.01
 */
package br.com.esec.icpm.mss.ws;

import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * Provide the client view of {@link br.com.esec.icpm.mss.ws.SignaturePortType}.
 *
 * @author Tales Porto
 * @version $Id: $Id
 */
public class SignatureServiceWS extends Service {

	private static final Log log = LogFactory.getLog(SignatureServiceWS.class);

	/** Constant HOST_SYSTEM_PROP="br.com.esec.icpm.mss.ws.host" */
	public static final String HOST_SYSTEM_PROP = "br.com.esec.icpm.mss.ws.host";
	/** Constant WSDL_LOCATION */
	public static final URL WSDL_LOCATION;

	static {
		String host = System.getProperty(HOST_SYSTEM_PROP, "localhost");
		try {
			WSDL_LOCATION = new URL("http://" + host + ":8080/mss_signature-ws/service?wsdl");
		} catch (MalformedURLException e) {
			if (log.isErrorEnabled()) {
				log.error("Failed to create URL for the wsdl Location.", e);
			}
			throw new IllegalStateException(e);
		}
		if (log.isInfoEnabled()) {
			log.info("WSDL location: " + WSDL_LOCATION);
		}
	}

	/**
	 * 

Constructor for SignatureServiceWS.

* * @param wsdlLocation a {@link java.net.URL} object. * @param serviceName a {@link javax.xml.namespace.QName} object. */ public SignatureServiceWS(URL wsdlLocation, QName serviceName) { super(wsdlLocation, serviceName); } /** *

Constructor for SignatureServiceWS.

*/ public SignatureServiceWS() { super(WSDL_LOCATION, SignaturePortType.QNAME); } /** *

getSignaturePort.

* * @return a {@link br.com.esec.icpm.mss.ws.SignaturePortType} object. */ @WebEndpoint(name = "SignaturePort") public SignaturePortType getSignaturePort() { return super.getPort(SignaturePortType.class); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy