open class SimpleJaxWsServiceExporter : AbstractJaxWsServiceExporter
Simple exporter for JAX-WS services, autodetecting annotated service beans (through the JAX-WS javax.jws.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. This is the case with the JAX-WS runtime that's included in Sun's JDK 6 but not with the standalone JAX-WS 2.1 RI.
For explicit configuration of JAX-WS endpoints with Sun's JDK 6 HTTP server, consider using SimpleHttpServerJaxWsServiceExporter!
Author
Juergen Hoeller
Since
2.5
See Also
javax.jws.WebServicejavax.xml.ws.Endpoint#publish(String)SimpleHttpServerJaxWsServiceExporter
SimpleJaxWsServiceExporter()
Simple exporter for JAX-WS services, autodetecting annotated service beans (through the JAX-WS javax.jws.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. This is the case with the JAX-WS runtime that's included in Sun's JDK 6 but not with the standalone JAX-WS 2.1 RI. For explicit configuration of JAX-WS endpoints with Sun's JDK 6 HTTP server, consider using SimpleHttpServerJaxWsServiceExporter! |
static val DEFAULT_BASE_ADDRESS: String |
open fun setBaseAddress(baseAddress: String): Unit
Set the base address for exported services. Default is "http://localhost:8080/". For each actual publication address, the service name will be appended to this base address. E.g. service name "OrderService" -> "http://localhost:8080/OrderService". |
open fun afterPropertiesSet(): Unit
Immediately publish all endpoints when fully configured. |
|
open fun destroy(): Unit
Stops all published endpoints, taking the web services offline. |
|
open fun publishEndpoints(): Unit
Publish all javax.jws.WebService annotated beans in the containing BeanFactory. |
|
open fun setBeanFactory(beanFactory: BeanFactory): Unit
Obtains all web service beans and publishes them as JAX-WS endpoints. |
|
open fun setBindingType(bindingType: String): Unit
Specify the binding type to use, overriding the value of the JAX-WS javax.xml.ws.BindingType annotation. |
|
open fun setEndpointFeatures(vararg endpointFeatures: WebServiceFeature): Unit
Specify WebServiceFeature objects (e.g. as inner bean definitions) to apply to JAX-WS endpoint creation. |
|
open fun setEndpointProperties(endpointProperties: MutableMap<String, Any>): Unit
Set the property bag for the endpoint, including properties such as "javax.xml.ws.wsdl.service" or "javax.xml.ws.wsdl.port". |
|
open fun setExecutor(executor: Executor): Unit
Set the JDK concurrent executor to use for dispatching incoming requests to exported service instances. |