public class SimpleJaxWsServiceExporter extends AbstractJaxWsServiceExporter
WebService
annotation) and exporting
them with a configured base address (by default "http://localhost:8080/")
using the JAX-WS provider's built-in publication support. The full address
for each service will consist of the base address with the service name
appended (e.g. "http://localhost:8080/OrderService").
Note that this exporter will only work if the JAX-WS runtime actually supports publishing with an address argument, i.e. if the JAX-WS runtime ships an internal HTTP server.
WebService
,
Endpoint.publish(String)
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BASE_ADDRESS
The default base address.
|
Constructor and Description |
---|
SimpleJaxWsServiceExporter() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
calculateEndpointAddress(Endpoint endpoint,
java.lang.String serviceName)
Calculate the full endpoint address for the given endpoint.
|
protected void |
publishEndpoint(Endpoint endpoint,
WebService annotation)
Actually publish the given endpoint.
|
protected void |
publishEndpoint(Endpoint endpoint,
WebServiceProvider annotation)
Actually publish the given provider endpoint.
|
void |
setBaseAddress(java.lang.String baseAddress)
Set the base address for exported services.
|
afterPropertiesSet, createEndpoint, destroy, publishEndpoints, setBeanFactory, setBindingType, setEndpointFeatures, setEndpointProperties, setExecutor
public static final java.lang.String DEFAULT_BASE_ADDRESS
public void setBaseAddress(java.lang.String baseAddress)
For each actual publication address, the service name will be appended to this base address. E.g. service name "OrderService" -> "http://localhost:8080/OrderService".
Endpoint.publish(String)
,
WebService.serviceName()
protected void publishEndpoint(Endpoint endpoint, WebService annotation)
AbstractJaxWsServiceExporter
publishEndpoint
in class AbstractJaxWsServiceExporter
endpoint
- the JAX-WS Endpoint objectannotation
- the service bean's WebService annotationprotected void publishEndpoint(Endpoint endpoint, WebServiceProvider annotation)
AbstractJaxWsServiceExporter
publishEndpoint
in class AbstractJaxWsServiceExporter
endpoint
- the JAX-WS Provider Endpoint objectannotation
- the service bean's WebServiceProvider annotationprotected java.lang.String calculateEndpointAddress(Endpoint endpoint, java.lang.String serviceName)
endpoint
- the JAX-WS Provider Endpoint objectserviceName
- the given service name