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.WebServiceProvider;
07:
08: @WebServiceProvider(portName="SoapPort",serviceName="SOAPService",targetNamespace="http://objectweb.org/hello_world_soap_http",wsdlLocation="resources/wsdl/hello_world.wsdl")
09: public class HWSourcePayloadProvider implements Provider<DOMSource> {
10:
11: //private static final Logger LOG =
12: // Logger.getLogger(AnnotatedGreeterImpl.class.getName());
13:
14: private int invokeCount;
15:
16: public HWSourcePayloadProvider() {
17: //Complete
18: }
19:
20: public DOMSource invoke(DOMSource source) {
21: invokeCount++;
22: return source;
23: }
24:
25: public int getInvokeCount() {
26: return invokeCount;
27: }
28: }
|