public class ServiceFactory extends ServiceFactory implements ObjectFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
MAINTAIN_SESSION |
static String |
SERVICE_CLASSNAME |
static String |
SERVICE_IMPLEMENTATION_NAME_PROPERTY |
static String |
SERVICE_LOCAL_PART |
static String |
SERVICE_NAMESPACE |
static String |
WSDL_LOCATION |
SERVICEFACTORY_PROPERTY| Constructor and Description |
|---|
ServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
Service |
createService(QName serviceName)
Create a Service instance.
|
Service |
createService(URL wsdlDocumentLocation,
QName serviceName)
Create a Service instance.
|
Object |
getObjectInstance(Object refObject,
Name name,
Context nameCtx,
Hashtable environment) |
static Service |
getService(Map environment)
Obtain an AxisClient reference, using JNDI if possible, otherwise
creating one using the standard Axis configuration pattern.
|
Service |
loadService(Class serviceInterface)
Create an instance of the generated service implementation class
for a given service interface, if available.
|
Service |
loadService(URL wsdlDocumentLocation,
Class serviceInterface,
Properties properties)
Create an instance of the generated service implementation class
for a given service interface, if available.
|
Service |
loadService(URL wsdlDocumentLocation,
QName serviceName,
Properties properties)
Create an instance of the generated service implementation class
for a given service, if available.
|
static void |
setThreadDefaultConfig(EngineConfiguration config) |
newInstancepublic static final String SERVICE_CLASSNAME
public static final String WSDL_LOCATION
public static final String MAINTAIN_SESSION
public static final String SERVICE_NAMESPACE
public static final String SERVICE_LOCAL_PART
public static final String SERVICE_IMPLEMENTATION_NAME_PROPERTY
public static void setThreadDefaultConfig(EngineConfiguration config)
public static Service getService(Map environment)
environment - public Object getObjectInstance(Object refObject, Name name, Context nameCtx, Hashtable environment) throws Exception
getObjectInstance in interface ObjectFactoryExceptionpublic Service createService(URL wsdlDocumentLocation, QName serviceName) throws ServiceException
createService in class ServiceFactorywsdlDocumentLocation - URL for the WSDL document location
for the serviceserviceName - QName for the service.ServiceException - If any error in creation of the specified servicepublic Service createService(QName serviceName) throws ServiceException
createService in class ServiceFactoryserviceName - QName for the serviceServiceException - If any error in creation of the specified servicepublic Service loadService(Class serviceInterface) throws ServiceException
loadService in class ServiceFactoryserviceInterface - Service interfaceServiceException - If there is any error while creating the specified service,
including the case where a generated service implementation class cannot be locatedpublic Service loadService(URL wsdlDocumentLocation, Class serviceInterface, Properties properties) throws ServiceException
loadService in class ServiceFactorywsdlDocumentLocation - URL for the WSDL document location for the service or nullserviceInterface - Service interfaceproperties - A set of implementation-specific properties
to help locate the generated service implementation classServiceException - If there is any error while creating the specified service,
including the case where a generated service implementation class cannot be locatedpublic Service loadService(URL wsdlDocumentLocation, QName serviceName, Properties properties) throws ServiceException
loadService in class ServiceFactorywsdlDocumentLocation - URL for the WSDL document location for the service or nullserviceName - Qualified name for the serviceproperties - A set of implementation-specific properties
to help locate the generated service implementation classServiceException - If there is any error while creating the specified service,
including the case where a generated service implementation class cannot be locatedCopyright © The Apache Software Foundation. All Rights Reserved.