|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.xml.rpc Interface Service
public interface Service
Service
class acts as a factory of the following:
- Dynamic proxy for the target service endpoint.
- Instance of the type
javax.xml.rpc.Call
for the dynamic invocation of a remote operation on the target service endpoint. - Instance of a generated stub class
方法摘要 | |
---|---|
Call |
createCall()
Creates a Call object not associated with
specific operation or target service endpoint. |
Call |
createCall(QName portName)
Creates a Call instance. |
Call |
createCall(QName portName,
QName operationName)
Creates a Call instance. |
Call |
createCall(QName portName,
String operationName)
Creates a Call instance. |
Call[] |
getCalls(QName portName)
Gets an array of preconfigured Call objects for
invoking operations on the specified port. |
HandlerRegistry |
getHandlerRegistry()
Returns the configured HandlerRegistry instance
for this Service instance. |
Remote |
getPort(Class serviceEndpointInterface)
The getPort method returns either an instance of a generated stub implementation class or a dynamic proxy. |
Remote |
getPort(QName portName,
Class serviceEndpointInterface)
The getPort method returns either an instance of a generated stub implementation class or a dynamic proxy. |
Iterator |
getPorts()
Returns an Iterator for the list of
QName s of service endpoints grouped by this
service |
QName |
getServiceName()
Gets the name of this service. |
TypeMappingRegistry |
getTypeMappingRegistry()
Gets the TypeMappingRegistry for this
Service object. |
URL |
getWSDLDocumentLocation()
Gets the location of the WSDL document for this Service. |
方法详细信息 |
---|
getPort
Remote getPort(QName portName, Class serviceEndpointInterface) throws ServiceException
- The getPort method returns either an instance of a generated
stub implementation class or a dynamic proxy. A service client
uses this dynamic proxy to invoke operations on the target
service endpoint. The
serviceEndpointInterface
specifies the service endpoint interface that is supported by the created dynamic proxy or stub instance. - 参数:
portName
- Qualified name of the service endpoint in the WSDL service descriptionserviceEndpointInterface
- Service endpoint interface supported by the dynamic proxy or stub instance- 返回:
- java.rmi.Remote Stub instance or dynamic proxy that supports the specified service endpoint interface
- 抛出异常:
ServiceException
- This exception is thrown in the following cases:- If there is an error in creation of the dynamic proxy or stub instance
- If there is any missing WSDL metadata as required by this method
- Optionally, if an illegal
serviceEndpointInterface
orportName
is specified
- 另请参见:
Proxy
,InvocationHandler
getPort
Remote getPort(Class serviceEndpointInterface) throws ServiceException
- The getPort method returns either an instance of a generated
stub implementation class or a dynamic proxy. The parameter
serviceEndpointInterface
specifies the service endpoint interface that is supported by the returned stub or proxy. In the implementation of this method, the JAX-RPC runtime system takes the responsibility of selecting a protocol binding (and a port) and configuring the stub accordingly. The returnedStub
instance should not be reconfigured by the client. - 参数:
serviceEndpointInterface
- Service endpoint interface- 返回:
- Stub instance or dynamic proxy that supports the specified service endpoint interface
- 抛出异常:
ServiceException
-- If there is an error during creation of stub instance or dynamic proxy
- If there is any missing WSDL metadata as required by this method
- Optionally, if an illegal
serviceEndpointInterface
is specified
getCalls
Call[] getCalls(QName portName) throws ServiceException
- Gets an array of preconfigured
Call
objects for invoking operations on the specified port. There is oneCall
object per operation that can be invoked on the specified port. EachCall
object is pre-configured and does not need to be configured using the setter methods onCall
interface.Each invocation of the
getCalls
method returns a new array of preconfiguredCall
objectsThis method requires the
Service
implementation class to have access to the WSDL related metadata. - 参数:
portName
- Qualified name for the target service endpoint- 返回:
- Call[] Array of pre-configured Call objects
- 抛出异常:
ServiceException
- If this Service class does not have access to the required WSDL metadata or if an illegalportName
is specified.
createCall
Call createCall(QName portName) throws ServiceException
- Creates a
Call
instance. - 参数:
portName
- Qualified name for the target service endpoint- 返回:
- Call instance
- 抛出异常:
ServiceException
- If any error in the creation of theCall
object
createCall
Call createCall(QName portName, QName operationName) throws ServiceException
- Creates a
Call
instance. - 参数:
portName
- Qualified name for the target service endpointoperationName
- Qualified Name of the operation for which thisCall
object is to be created.- 返回:
- Call instance
- 抛出异常:
ServiceException
- If any error in the creation of theCall
object
createCall
Call createCall(QName portName, String operationName) throws ServiceException
- Creates a
Call
instance. - 参数:
portName
- Qualified name for the target service endpointoperationName
- Name of the operation for which thisCall
object is to be created.- 返回:
- Call instance
- 抛出异常:
ServiceException
- If any error in the creation of theCall
object
createCall
Call createCall() throws ServiceException
- Creates a
Call
object not associated with specific operation or target service endpoint. ThisCall
object needs to be configured using the setter methods on theCall
interface. - 返回:
- Call object
- 抛出异常:
ServiceException
- If any error in the creation of theCall
object
getServiceName
QName getServiceName()
- Gets the name of this service.
- 返回:
- Qualified name of this service
getPorts
Iterator getPorts() throws ServiceException
- Returns an
Iterator
for the list ofQName
s of service endpoints grouped by this service - 返回:
- Returns
java.util.Iterator
with elements of typejavax.xml.namespace.QName
- 抛出异常:
ServiceException
- If this Service class does not have access to the required WSDL metadata
getWSDLDocumentLocation
URL getWSDLDocumentLocation()
- Gets the location of the WSDL document for this Service.
- 返回:
- URL for the location of the WSDL document for this service
getTypeMappingRegistry
TypeMappingRegistry getTypeMappingRegistry()
- Gets the
TypeMappingRegistry
for thisService
object. The returnedTypeMappingRegistry
instance is pre-configured to support the standard type mapping between XML and Java types types as required by the JAX-RPC specification. - 返回:
- The TypeMappingRegistry for this Service object.
- 抛出异常:
java.lang.UnsupportedOperationException
- if the
Service
class does not support the configuration ofTypeMappingRegistry
.
getHandlerRegistry
HandlerRegistry getHandlerRegistry()
- Returns the configured
HandlerRegistry
instance for thisService
instance. - 返回:
- HandlerRegistry
- 抛出异常:
java.lang.UnsupportedOperationException
- if theService
class does not support the configuration of aHandlerRegistry
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.