public class ServiceFactory
extends javax.xml.rpc.ServiceFactory
implements javax.naming.spi.ObjectFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAINTAIN_SESSION |
static java.lang.String |
SERVICE_CLASSNAME |
static java.lang.String |
SERVICE_IMPLEMENTATION_NAME_PROPERTY |
static java.lang.String |
SERVICE_LOCAL_PART |
static java.lang.String |
SERVICE_NAMESPACE |
static java.lang.String |
WSDL_LOCATION |
| Constructor and Description |
|---|
ServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
javax.xml.rpc.Service |
createService(javax.xml.namespace.QName serviceName)
Create a Service instance.
|
javax.xml.rpc.Service |
createService(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName)
Create a Service instance.
|
java.lang.Object |
getObjectInstance(java.lang.Object refObject,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment) |
static org.apache.axis.client.Service |
getService(java.util.Map environment)
Obtain an AxisClient reference, using JNDI if possible, otherwise
creating one using the standard Axis configuration pattern.
|
javax.xml.rpc.Service |
loadService(java.lang.Class serviceInterface)
Create an instance of the generated service implementation class
for a given service interface, if available.
|
javax.xml.rpc.Service |
loadService(java.net.URL wsdlDocumentLocation,
java.lang.Class serviceInterface,
java.util.Properties properties)
Create an instance of the generated service implementation class
for a given service interface, if available.
|
javax.xml.rpc.Service |
loadService(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName,
java.util.Properties properties)
Create an instance of the generated service implementation class
for a given service, if available.
|
static void |
setThreadDefaultConfig(EngineConfiguration config) |
public static final java.lang.String SERVICE_CLASSNAME
public static final java.lang.String WSDL_LOCATION
public static final java.lang.String MAINTAIN_SESSION
public static final java.lang.String SERVICE_NAMESPACE
public static final java.lang.String SERVICE_LOCAL_PART
public static final java.lang.String SERVICE_IMPLEMENTATION_NAME_PROPERTY
public static void setThreadDefaultConfig(EngineConfiguration config)
public static org.apache.axis.client.Service getService(java.util.Map environment)
environment - public java.lang.Object getObjectInstance(java.lang.Object refObject,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
throws java.lang.Exception
getObjectInstance in interface javax.naming.spi.ObjectFactoryjava.lang.Exceptionpublic javax.xml.rpc.Service createService(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName)
throws javax.xml.rpc.ServiceException
createService in class javax.xml.rpc.ServiceFactorywsdlDocumentLocation - URL for the WSDL document location
for the serviceserviceName - QName for the service.javax.xml.rpc.ServiceException - If any error in creation of the specified servicepublic javax.xml.rpc.Service createService(javax.xml.namespace.QName serviceName)
throws javax.xml.rpc.ServiceException
createService in class javax.xml.rpc.ServiceFactoryserviceName - QName for the servicejavax.xml.rpc.ServiceException - If any error in creation of the specified servicepublic javax.xml.rpc.Service loadService(java.lang.Class serviceInterface)
throws javax.xml.rpc.ServiceException
loadService in class javax.xml.rpc.ServiceFactoryserviceInterface - Service interfacejavax.xml.rpc.ServiceException - If there is any error while creating the specified service,
including the case where a generated service implementation class cannot be locatedpublic javax.xml.rpc.Service loadService(java.net.URL wsdlDocumentLocation,
java.lang.Class serviceInterface,
java.util.Properties properties)
throws javax.xml.rpc.ServiceException
loadService in class javax.xml.rpc.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 classjavax.xml.rpc.ServiceException - If there is any error while creating the specified service,
including the case where a generated service implementation class cannot be locatedpublic javax.xml.rpc.Service loadService(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName,
java.util.Properties properties)
throws javax.xml.rpc.ServiceException
loadService in class javax.xml.rpc.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 classjavax.xml.rpc.ServiceException - If there is any error while creating the specified service,
including the case where a generated service implementation class cannot be located