/*
* To the extent possible under law, Red Hat, Inc. has dedicated all copyright
* to this software to the public domain worldwide, pursuant to the CC0 Public
* Domain Dedication. This software is distributed without any warranty. See
* <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
package com.redhat.gss.jaxws;
import javax.xml.ws.spi.Provider;
import org.jboss.logging.Logger;
@javax.jws.WebService(serviceName="HelloWS", portName="hello", wsdlLocation="/WEB-INF/wsdl/helloPort.wsdl")
@org.apache.cxf.feature.Features(features={"org.apache.cxf.feature.LoggingFeature"})
public class HelloWSImpl
{
private Logger log = Logger.getLogger(this.getClass().getName());
public String hello(String name)
{
try
{
Provider provider = Provider.provider();
log.info("WS Provider: " + provider.getClass().getName());
return "Hello, " + name;
}
catch(Exception e)
{
return "Fail";
}
}
}