1 package org.objectweb.hello_world_soap_http; 2 3 4 import javax.xml.soap.SOAPMessage ; 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 > { 16 17 20 private int invokeCount; 21 22 public HWSoapMessageProvider() { 23 } 25 26 public SOAPMessage invoke(SOAPMessage source) { 27 invokeCount++; 28 return source; 29 } 30 31 public int getInvokeCount() { 32 return invokeCount; 33 } 34 } 35 | Popular Tags |