01: package org.objectweb.hello_world_soap_http;
02:
03: //import java.util.logging.Logger;
04: import javax.xml.transform.dom.DOMSource;
05: import javax.xml.ws.Provider;
06: import javax.xml.ws.Service;
07: import javax.xml.ws.ServiceMode;
08: import javax.xml.ws.WebServiceProvider;
09:
10: @WebServiceProvider(portName="SoapPort",serviceName="SOAPService",targetNamespace="http://objectweb.org/hello_world_soap_http",wsdlLocation="resources/wsdl/hello_world.wsdl")
11: @ServiceMode(value=Service.Mode.MESSAGE)
12: public class HelloWorldServiceProvider implements Provider<DOMSource> {
13:
14: //private static final Logger LOG =
15: // Logger.getLogger(AnnotatedGreeterImpl.class.getName());
16: private int invokeCount;
17:
18: public HelloWorldServiceProvider() {
19: //Complete
20: }
21:
22: public DOMSource invoke(DOMSource source) {
23: invokeCount++;
24: return source;
25: }
26:
27: public int getInvokeCount() {
28: return invokeCount;
29: }
30: }
|