KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > demo > hw > server > HelloWorldPortTypeImpl


1 package demo.hw.server;
2
3 import java.util.logging.Logger JavaDoc;
4 import org.objectweb.hello_world_soap_http.HelloWorldPortType;
5
6
7 @javax.jws.WebService(name = "HelloWorldPortType", serviceName = "SOAPService",
8                       targetNamespace = "http://objectweb.org/hello_world_soap_http",
9                       wsdlLocation = "file:./wsdl/hello_world.wsdl")
10
11 public class HelloWorldPortTypeImpl implements HelloWorldPortType {
12
13     private static final Logger JavaDoc LOG =
14         Logger.getLogger(HelloWorldPortTypeImpl.class.getPackage().getName());
15
16
17     public java.lang.String JavaDoc sayHi() {
18         LOG.info("Executing operation sayHi");
19         System.out.println("Executing operation sayHi");
20         return "Bonjour";
21     }
22
23
24     public java.lang.String JavaDoc greetMe(
25         java.lang.String JavaDoc me
26     ) {
27         LOG.info("Executing operation greetMe");
28         System.out.println("Executing operation greetMe");
29         System.out.println("Message received" + me);
30         return me;
31     }
32
33 }
Popular Tags