Class LocalJaxWsServiceFactory
- java.lang.Object
- org.springframework.remoting.jaxws.LocalJaxWsServiceFactory
- Direct Known Subclasses:
JaxWsPortClientInterceptor,LocalJaxWsServiceFactoryBean
public class LocalJaxWsServiceFactory extends Object
Factory for locally defined JAX-WSjavax.xml.ws.Servicereferences. Uses the JAX-WSjavax.xml.ws.Service#createfactory API underneath.Serves as base class for
LocalJaxWsServiceFactoryBeanas well asJaxWsPortClientInterceptorandJaxWsPortProxyFactoryBean.- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
javax.xml.ws.Service,LocalJaxWsServiceFactoryBean,JaxWsPortClientInterceptor,JaxWsPortProxyFactoryBean
Constructor Summary
Constructors Constructor Description LocalJaxWsServiceFactory()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServicecreateJaxWsService()Create a JAX-WS Service according to the parameters of this factory.StringgetNamespaceUri()Return the namespace URI of the service.protected QNamegetQName(String name)Return a QName for the given name, relative to the namespace URI of this factory, if given.StringgetServiceName()Return the name of the service.URLgetWsdlDocumentUrl()Return the URL of the WSDL document that describes the service.voidsetExecutor(Executor executor)Set the JDK concurrent executor to use for asynchronous executions that require callbacks.voidsetHandlerResolver(HandlerResolver handlerResolver)Set the JAX-WS HandlerResolver to use for all proxies and dispatchers created through this factory.voidsetNamespaceUri(String namespaceUri)Set the namespace URI of the service.voidsetServiceFeatures(WebServiceFeature... serviceFeatures)Specify WebServiceFeature objects (e.g.voidsetServiceName(String serviceName)Set the name of the service to look up.voidsetWsdlDocumentResource(Resource wsdlDocumentResource)Set the WSDL document URL as aResource.voidsetWsdlDocumentUrl(URL wsdlDocumentUrl)Set the URL of the WSDL document that describes the service.
Constructor Detail
LocalJaxWsServiceFactory
public LocalJaxWsServiceFactory()
Method Detail
setWsdlDocumentUrl
public void setWsdlDocumentUrl(URL wsdlDocumentUrl)
Set the URL of the WSDL document that describes the service.- See Also:
setWsdlDocumentResource(Resource)
setWsdlDocumentResource
public void setWsdlDocumentResource(Resource wsdlDocumentResource) throws IOException
Set the WSDL document URL as aResource.- Throws:
IOException- Since:
- 3.2
getWsdlDocumentUrl
public URL getWsdlDocumentUrl()
Return the URL of the WSDL document that describes the service.
setNamespaceUri
public void setNamespaceUri(String namespaceUri)
Set the namespace URI of the service. Corresponds to the WSDL "targetNamespace".
getNamespaceUri
public String getNamespaceUri()
Return the namespace URI of the service.
setServiceName
public void setServiceName(String serviceName)
Set the name of the service to look up. Corresponds to the "wsdl:service" name.
getServiceName
public String getServiceName()
Return the name of the service.
setServiceFeatures
public void setServiceFeatures(WebServiceFeature... serviceFeatures)
Specify WebServiceFeature objects (e.g. as inner bean definitions) to apply to JAX-WS service creation.Note: This mechanism requires JAX-WS 2.2 or higher.
- Since:
- 4.0
- See Also:
Service#create(QName, WebServiceFeature...)
setExecutor
public void setExecutor(Executor executor)
Set the JDK concurrent executor to use for asynchronous executions that require callbacks.- See Also:
javax.xml.ws.Service#setExecutor
setHandlerResolver
public void setHandlerResolver(HandlerResolver handlerResolver)
Set the JAX-WS HandlerResolver to use for all proxies and dispatchers created through this factory.- See Also:
javax.xml.ws.Service#setHandlerResolver
createJaxWsService
@UsesJava7 public Service createJaxWsService()
Create a JAX-WS Service according to the parameters of this factory.
getQName
protected QName getQName(String name)
Return a QName for the given name, relative to the namespace URI of this factory, if given.- See Also:
setNamespaceUri(java.lang.String)