Interface JaxWsClientFactory


  • @ProviderType
    public interface JaxWsClientFactory
    Factory for creating initializing JAX-WS SOAP clients.
    • 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 (see OsgiAwareClientImpl), 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 annotation
        portUrl - 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 (see OsgiAwareClientImpl), 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 annotation
        portUrl - 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 (see OsgiAwareClientImpl), 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 annotation
        portUrl - Port url (this is not the WSDL location)
        initializer - Client proxy initializer
        cacheKeySuffix - 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