Package com.redhat.gss.jaxws

Source Code of com.redhat.gss.jaxws.HelloWSImpl

/*
* 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";
    }
  }
}
TOP

Related Classes of com.redhat.gss.jaxws.HelloWSImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.