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