KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > hello_world_soap_http > HelloWorldServiceProvider


1 package org.objectweb.hello_world_soap_http;
2
3
4 //import java.util.logging.Logger;
5
import javax.xml.transform.dom.DOMSource JavaDoc;
6 import javax.xml.ws.Provider;
7 import javax.xml.ws.Service;
8 import javax.xml.ws.ServiceMode;
9 import javax.xml.ws.WebServiceProvider;
10
11 @WebServiceProvider(portName = "SoapPort", serviceName = "SOAPService",
12                       targetNamespace = "http://objectweb.org/hello_world_soap_http",
13                       wsdlLocation = "resources/wsdl/hello_world.wsdl")
14 @ServiceMode(value = Service.Mode.MESSAGE)
15 public class HelloWorldServiceProvider implements Provider<DOMSource JavaDoc> {
16
17     //private static final Logger LOG =
18
// Logger.getLogger(AnnotatedGreeterImpl.class.getName());
19
private int invokeCount;
20     
21     public HelloWorldServiceProvider() {
22         //Complete
23
}
24
25     public DOMSource JavaDoc invoke(DOMSource JavaDoc source) {
26         invokeCount++;
27         return source;
28     }
29     
30     public int getInvokeCount() {
31         return invokeCount;
32     }
33 }
34
Popular Tags