java.lang.Objectjavax.xml.ws.Service
Service objects provide the client view of a Web service.
Service acts as a factory of the following:
javax.xml.ws.Dispatch for
dynamic message-oriented invocation of a remote
operation.
The ports available on a service can be enumerated using the
getPorts method. Alternatively, you can pass a
service endpoint interface to the unary getPort method
and let the runtime select a compatible port.
Handler chains for all the objects created by a Service
can be set by means of a HandlerResolver.
An Executor may be set on the service in order
to gain better control over the threads used to dispatch asynchronous
callbacks. For instance, thread pooling with certain parameters
can be enabled by creating a ThreadPoolExecutor and
registering it with the service.
JAX-WS - 2.0| Nested Class Summary: | ||
|---|---|---|
| public enum class | Service.Mode | The orientation of a dynamic client or service. MESSAGE provides access to entire protocol message, PAYLOAD to protocol message payload only. |
| Constructor: |
|---|
|
| Method from javax.xml.ws.Service Summary: |
|---|
| addPort, create, create, createDispatch, createDispatch, getExecutor, getHandlerResolver, getPort, getPort, getPorts, getServiceName, getWSDLDocumentLocation, setExecutor, setHandlerResolver |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.xml.ws.Service Detail: |
|---|
Dispatchinstances. |
Service instance. |
Service instance.
The specified WSDL document location and service qualified name must
uniquely identify a wsdl:service element. |
Dispatch instance for use with objects of
the users choosing. |
Dispatch instance for use with JAXB
generated objects. |
Serviceinstance.
The executor is used for all asynchronous invocations that
require callbacks. |
|
serviceEndpointInterface specifies the service
endpoint interface that is supported by the returned proxy.
In the implementation of this method, the JAX-WS
runtime system takes the responsibility of selecting a protocol
binding (and a port) and configuring the proxy accordingly.
The returned proxy should not be reconfigured by the client. |
serviceEndpointInterface
specifies the service endpoint interface that is supported by
the created dynamic proxy or stub instance. |
Iterator for the list of
QNames of service endpoints grouped by this
service |
|
|
Service instance.
The executor is used for all asynchronous invocations that
require callbacks. |
HandlerResolver for this Service
instance.
The handler resolver, if present, will be called once for each proxy or dispatch instance that is created, and the handler chain returned by the resolver will be set on the instance. |