1 package org.codehaus.xfire.service; 2 3 import javax.wsdl.WSDLException; 4 import org.codehaus.xfire.fault.FaultHandler; 5 import org.codehaus.xfire.handler.Handler; 6 import org.codehaus.xfire.wsdl.WSDL; 7 8 /*** 9 * A service descriptor. This class must be thread safe. 10 * 11 * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a> 12 */ 13 public interface Service 14 { 15 String ROLE = Service.class.getName(); 16 17 WSDL getWSDL() throws WSDLException; 18 19 Handler getServiceHandler(); 20 21 FaultHandler getFaultHandler(); 22 23 /*** 24 * Return the service style. Can be document, rpc, wrapped, or message. 25 * @return 26 */ 27 String getStyle(); 28 29 /*** 30 * Return the Use. Messages can be encoded or literal. 31 * @return 32 */ 33 String getUse(); 34 35 /*** 36 * The name of the service. 37 */ 38 String getName(); 39 40 /*** 41 * The namespace of the service. 42 * 43 * @return 44 */ 45 String getDefaultNamespace(); 46 47 void setProperty(String name, Object value); 48 49 Object getProperty(String name); 50 51 String getSoapVersion(); 52 }