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 /*** 22 * The fault handler which handles exception which occurr during the 23 * invocation of the Service Handler. 24 * @return 25 */ 26 FaultHandler getFaultHandler(); 27 28 /*** 29 * Return the service style. Can be document, rpc, wrapped, or message. 30 * @return 31 */ 32 String getStyle(); 33 34 /*** 35 * Return the Use. Messages can be encoded or literal. 36 * @return 37 */ 38 String getUse(); 39 40 /*** 41 * The name of the service. 42 */ 43 String getName(); 44 45 /*** 46 * The namespace of the service. 47 * 48 * @return 49 */ 50 String getDefaultNamespace(); 51 52 void setProperty(String name, Object value); 53 54 Object getProperty(String name); 55 56 String getSoapVersion(); 57 }