Constructor and Description |
---|
ServiceImpl(java.util.Map portToImplementationMap,
java.util.Map seiClassNameToFactoryMap) |
Modifier and Type | Method and Description |
---|---|
Call |
createCall()
Creates a
Call object not associated with
specific operation or target service endpoint. |
Call |
createCall(javax.xml.namespace.QName qName)
Creates a
Call instance. |
Call |
createCall(javax.xml.namespace.QName qName,
javax.xml.namespace.QName qName1)
Creates a
Call instance. |
Call |
createCall(javax.xml.namespace.QName qName,
java.lang.String s)
Creates a
Call instance. |
Call[] |
getCalls(javax.xml.namespace.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. |
java.rmi.Remote |
getPort(java.lang.Class portClass)
The getPort method returns either an instance of a generated
stub implementation class or a dynamic proxy.
|
java.rmi.Remote |
getPort(javax.xml.namespace.QName qName,
java.lang.Class portClass)
The getPort method returns either an instance of a generated
stub implementation class or a dynamic proxy.
|
java.util.Iterator |
getPorts()
Returns an
Iterator for the list of
QName s of service endpoints grouped by this
service |
javax.xml.namespace.QName |
getServiceName()
Gets the name of this service.
|
TypeMappingRegistry |
getTypeMappingRegistry()
Gets the
TypeMappingRegistry for this
Service object. |
java.net.URL |
getWSDLDocumentLocation()
Gets the location of the WSDL document for this Service.
|
public ServiceImpl(java.util.Map portToImplementationMap, java.util.Map seiClassNameToFactoryMap)
public java.rmi.Remote getPort(javax.xml.namespace.QName qName, java.lang.Class portClass) throws ServiceException
Service
serviceEndpointInterface
specifies the service endpoint interface that is supported by
the created dynamic proxy or stub instance.getPort
in interface Service
qName
- Qualified name of the service endpoint in
the WSDL service descriptionportClass
- Service endpoint interface
supported by the dynamic proxy or stub
instanceServiceException
- This exception is thrown in the
following cases:
serviceEndpointInterface
or portName
is specified
Proxy
,
InvocationHandler
public java.rmi.Remote getPort(java.lang.Class portClass) throws ServiceException
Service
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 returned Stub
instance should not be
reconfigured by the client.getPort
in interface Service
portClass
- Service endpoint interfaceServiceException
- serviceEndpointInterface
is specified
public Call[] getCalls(javax.xml.namespace.QName portName) throws ServiceException
Service
Call
objects for
invoking operations on the specified port. There is one
Call
object per operation that can be invoked
on the specified port. Each Call
object is
pre-configured and does not need to be configured using
the setter methods on Call
interface.
Each invocation of the getCalls
method
returns a new array of preconfigured Call
objects
This method requires the Service
implementation
class to have access to the WSDL related metadata.
getCalls
in interface Service
portName
- Qualified name for the target service endpointServiceException
- If this Service class does not
have access to the required WSDL metadata
or if an illegal portName
is
specified.public Call createCall(javax.xml.namespace.QName qName) throws ServiceException
Service
Call
instance.createCall
in interface Service
qName
- Qualified name for the target service endpointServiceException
- If any error in the creation of
the Call
objectpublic Call createCall(javax.xml.namespace.QName qName, javax.xml.namespace.QName qName1) throws ServiceException
Service
Call
instance.createCall
in interface Service
qName
- Qualified name for the target service
endpointqName1
- Qualified Name of the operation for
which this Call
object is to
be created.ServiceException
- If any error in the creation of
the Call
objectpublic Call createCall(javax.xml.namespace.QName qName, java.lang.String s) throws ServiceException
Service
Call
instance.createCall
in interface Service
qName
- Qualified name for the target service
endpoints
- Name of the operation for which this
Call
object is to be
created.ServiceException
- If any error in the creation of
the Call
objectpublic Call createCall() throws ServiceException
Service
Call
object not associated with
specific operation or target service endpoint. This
Call
object needs to be configured using the
setter methods on the Call
interface.createCall
in interface Service
ServiceException
- If any error in the creation of
the Call
objectpublic javax.xml.namespace.QName getServiceName()
Service
getServiceName
in interface Service
public java.util.Iterator getPorts() throws ServiceException
Service
Iterator
for the list of
QName
s of service endpoints grouped by this
servicegetPorts
in interface Service
java.util.Iterator
with elements
of type javax.xml.namespace.QName
ServiceException
- If this Service class does not
have access to the required WSDL metadatapublic java.net.URL getWSDLDocumentLocation()
Service
getWSDLDocumentLocation
in interface Service
public TypeMappingRegistry getTypeMappingRegistry()
Service
TypeMappingRegistry
for this
Service
object. The returned
TypeMappingRegistry
instance is pre-configured
to support the standard type mapping between XML and Java
types types as required by the JAX-RPC specification.getTypeMappingRegistry
in interface Service
public HandlerRegistry getHandlerRegistry()
Service
HandlerRegistry
instance
for this Service
instance.getHandlerRegistry
in interface Service