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.WebServiceProvider; 8 9 @WebServiceProvider(portName = "SoapPort", serviceName = "SOAPService", 10 targetNamespace = "http://objectweb.org/hello_world_soap_http", 11 wsdlLocation = "resources/wsdl/hello_world.wsdl") 12 public class HWSourcePayloadProvider implements Provider<DOMSource > { 13 14 17 private int invokeCount; 18 19 public HWSourcePayloadProvider() { 20 } 22 23 public DOMSource invoke(DOMSource source) { 24 invokeCount++; 25 return source; 26 } 27 28 public int getInvokeCount() { 29 return invokeCount; 30 } 31 } 32 | Popular Tags |