01: package org.objectweb.hello_world_soap_http;
02:
03: //import java.util.logging.Logger;
04: import javax.xml.soap.SOAPMessage;
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 HWSoapMessageProvider implements Provider<SOAPMessage> {
13:
14: //private static final Logger LOG =
15: // Logger.getLogger(AnnotatedGreeterImpl.class.getName());
16:
17: private int invokeCount;
18:
19: public HWSoapMessageProvider() {
20: //Complete
21: }
22:
23: public SOAPMessage invoke(SOAPMessage source) {
24: invokeCount++;
25: return source;
26: }
27:
28: public int getInvokeCount() {
29: return invokeCount;
30: }
31: }
|