Package io.wcm.caravan.jaxws.consumer
Interface JaxWsClientFactory
-
@ProviderType public interface JaxWsClientFactory
Factory for creating initializing JAX-WS SOAP clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
create(Class<T> clazz, String portUrl)
Create webservice port via JAXWS proxy factory.<T> T
create(Class<T> clazz, String portUrl, JaxWsClientInitializer initializer)
Create webservice port via JAXWS proxy factory.<T> T
create(Class<T> clazz, String portUrl, JaxWsClientInitializer initializer, String cacheKeySuffix)
Create webservice port via JAXWS proxy factory.
-
-
-
Method Detail
-
create
<T> T create(Class<T> clazz, String portUrl)
Create webservice port via JAXWS proxy factory. This method fixes numerous problems with 3rdparty libs used by CXF and CXF itself and classloader issues with OSGI. Using this method the initialization phase of JAXB mapping is wrapped in an OSGI-aware classloader. Furthermore each client instances is wrapped in an OSGI-aware subclass (seeOsgiAwareClientImpl
), which ensures that each invoke call on a webservice method is itself executed within an OSGI-aware classloader context.- Type Parameters:
T
- Port class- Parameters:
clazz
- Port class with JAXWS annotationportUrl
- Port url (this is not the WSDL location)- Returns:
- Port object
-
create
<T> T create(Class<T> clazz, String portUrl, JaxWsClientInitializer initializer)
Create webservice port via JAXWS proxy factory. This method fixes numerous problems with 3rdparty libs used by CXF and CXF itself and classloader issues with OSGI. Using this method the initialization phase of JAXB mapping is wrapped in an OSGI-aware classloader. Furthermore each client instances is wrapped in an OSGI-aware subclass (seeOsgiAwareClientImpl
), which ensures that each invoke call on a webservice method is itself executed within an OSGI-aware classloader context.- Type Parameters:
T
- Port class- Parameters:
clazz
- Port class with JAXWS annotationportUrl
- Port url (this is not the WSDL location)initializer
- Client proxy initializer- Returns:
- Port object
-
create
<T> T create(Class<T> clazz, String portUrl, JaxWsClientInitializer initializer, String cacheKeySuffix)
Create webservice port via JAXWS proxy factory. This method fixes numerous problems with 3rdparty libs used by CXF and CXF itself and classloader issues with OSGI. Using this method the initialization phase of JAXB mapping is wrapped in an OSGI-aware classloader. Furthermore each client instances is wrapped in an OSGI-aware subclass (seeOsgiAwareClientImpl
), which ensures that each invoke call on a webservice method is itself executed within an OSGI-aware classloader context.- Type Parameters:
T
- Port class- Parameters:
clazz
- Port class with JAXWS annotationportUrl
- Port url (this is not the WSDL location)initializer
- Client proxy initializercacheKeySuffix
- Optional: If different configurations are required for the port class/port url combination it is possible to specify a cache key suffix (e.g. pool entry name). This is appended to the cache key.- Returns:
- Port object
-
-