KickJava   Java API By Example, From Geeks To Geeks.

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


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.WebServiceProvider;
8
9 @WebServiceProvider(portName = "SoapPort", serviceName = "SOAPService",
10                       targetNamespace = "http://objectweb.org/hello_world_soap_http",
11                       wsdlLocation = "resources/wsdl/hello_world.wsdl")
12 public class HWSourcePayloadProvider implements Provider<DOMSource JavaDoc> {
13
14     //private static final Logger LOG =
15
// Logger.getLogger(AnnotatedGreeterImpl.class.getName());
16

17     private int invokeCount;
18
19     public HWSourcePayloadProvider() {
20         //Complete
21
}
22
23     public DOMSource JavaDoc invoke(DOMSource JavaDoc source) {
24         invokeCount++;
25         return source;
26     }
27
28     public int getInvokeCount() {
29         return invokeCount;
30     }
31 }
32
Popular Tags