1 16 package javax.xml.rpc; 17 18 import javax.xml.namespace.QName ; 19 import java.net.URL ; 20 21 35 public abstract class ServiceFactory { 36 37 38 protected ServiceFactory() {} 39 40 45 public static final java.lang.String SERVICEFACTORY_PROPERTY = 46 "javax.xml.rpc.ServiceFactory"; 47 48 60 public static ServiceFactory newInstance() throws ServiceException { 61 62 try { 63 return (ServiceFactory ) FactoryFinder.find( 64 65 SERVICEFACTORY_PROPERTY, 66 67 "org.apache.axis.client.ServiceFactory"); 68 } catch (FactoryFinder.ConfigurationError e) { 69 throw new ServiceException (e.getException()); 70 } 71 } 72 73 82 public abstract Service createService( 83 URL wsdlDocumentLocation, QName serviceName) throws ServiceException ; 84 85 92 public abstract Service createService(QName serviceName) 93 throws ServiceException ; 94 95 public abstract Service loadService(java.lang.Class class1) 96 throws ServiceException ; 97 98 public abstract Service loadService(java.net.URL url, 99 java.lang.Class class1, 100 java.util.Properties properties) 101 throws ServiceException ; 102 103 public abstract Service loadService(java.net.URL url, 104 QName qname, 105 java.util.Properties properties) 106 throws ServiceException ; 107 } 108 109 | Popular Tags |