KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.objectweb.hello_world_soap_http;
2
3
4 //import java.util.logging.Logger;
5
import javax.xml.soap.SOAPMessage 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 HWSoapMessageProvider implements Provider<SOAPMessage JavaDoc> {
16
17     //private static final Logger LOG =
18
// Logger.getLogger(AnnotatedGreeterImpl.class.getName());
19

20     private int invokeCount;
21     
22     public HWSoapMessageProvider() {
23         //Complete
24
}
25
26     public SOAPMessage JavaDoc invoke(SOAPMessage JavaDoc source) {
27         invokeCount++;
28         return source;
29     }
30     
31     public int getInvokeCount() {
32         return invokeCount;
33     }
34 }
35
Popular Tags