Package org.apache.cxf.endpoint.dynamic
Class DynamicClientFactory
java.lang.Object
org.apache.cxf.endpoint.dynamic.DynamicClientFactory
This class reads a WSDL and creates a dynamic client from it.
Use
newInstance(org.apache.cxf.Bus)
to obtain an instance, and then
createClient(String)
(or other overloads) to create a client.
It uses the JAXB data binding. It does not set up complex interceptors for
features such as attachments.
See org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory
for an alternative that sets up JAX-WS endpoints.
This class may be subclassed to allow for other endpoints or behaviors.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
applySchemaCompilerOptions
(org.apache.cxf.common.jaxb.JAXBUtils.SchemaCompiler compiler) protected boolean
compileJavaSrc
(String classPath, List<File> srcList, String dest) org.apache.cxf.endpoint.Client
createClient
(String wsdlUrl) Create a newClient
instance using the WSDL to be loaded from the specified URL and using the current classloading context.org.apache.cxf.endpoint.Client
createClient
(String wsdlUrl, ClassLoader classLoader) Create a newClient
instance using the WSDL to be loaded from the specified URL and with the specifiedClassLoader
as parent.org.apache.cxf.endpoint.Client
createClient
(String wsdlUrl, ClassLoader classLoader, List<String> bindingFiles) org.apache.cxf.endpoint.Client
createClient
(String wsdlUrl, List<String> bindingFiles) org.apache.cxf.endpoint.Client
createClient
(String wsdlUrl, QName service) org.apache.cxf.endpoint.Client
createClient
(String wsdlUrl, QName service, ClassLoader classLoader, QName port) org.apache.cxf.endpoint.Client
createClient
(String wsdlUrl, QName service, ClassLoader classLoader, QName port, List<String> bindingFiles) org.apache.cxf.endpoint.Client
createClient
(String wsdlUrl, QName service, List<String> bindingFiles) org.apache.cxf.endpoint.Client
createClient
(String wsdlUrl, QName service, QName port) org.apache.cxf.endpoint.Client
org.apache.cxf.endpoint.Client
createClient
(URL wsdlUrl) Create a newClient
instance using the WSDL to be loaded from the specified URL and using the current classloading context.org.apache.cxf.endpoint.Client
createClient
(URL wsdlUrl, ClassLoader classLoader) Create a newClient
instance using the WSDL to be loaded from the specified URL and with the specifiedClassLoader
as parent.org.apache.cxf.endpoint.Client
createClient
(URL wsdlUrl, ClassLoader classLoader, List<String> bindingFiles) org.apache.cxf.endpoint.Client
createClient
(URL wsdlUrl, List<String> bindingFiles) org.apache.cxf.endpoint.Client
createClient
(URL wsdlUrl, QName service) org.apache.cxf.endpoint.Client
createClient
(URL wsdlUrl, QName service, ClassLoader classLoader, QName port) org.apache.cxf.endpoint.Client
createClient
(URL wsdlUrl, QName service, ClassLoader classLoader, QName port, List<String> bindingFiles) org.apache.cxf.endpoint.Client
createClient
(URL wsdlUrl, QName service, List<String> bindingFiles) org.apache.cxf.endpoint.Client
createClient
(URL wsdlUrl, QName service, QName port) org.apache.cxf.endpoint.Client
protected org.apache.cxf.common.jaxb.JAXBUtils.SchemaCompiler
protected org.apache.cxf.endpoint.EndpointImplFactory
Return the map of JAXB context properties used at the time that we create new contexts.boolean
static DynamicClientFactory
Create a new instance using a default Bus.static DynamicClientFactory
newInstance
(org.apache.cxf.Bus b) Create a new instance using a specific Bus.void
setAllowElementReferences
(boolean b) void
setJaxbContextProperties
(Map<String, Object> jaxbContextProperties) Set the map of JAXB context properties used at the time that we create new contexts.void
setSchemaCompilerOptions
(String[] options) void
setSimpleBindingEnabled
(boolean simpleBindingEnabled) void
-
Constructor Details
-
DynamicClientFactory
protected DynamicClientFactory(org.apache.cxf.Bus bus)
-
-
Method Details
-
getEndpointImplFactory
protected org.apache.cxf.endpoint.EndpointImplFactory getEndpointImplFactory() -
setTemporaryDirectory
-
setAllowElementReferences
public void setAllowElementReferences(boolean b) -
setSchemaCompilerOptions
-
newInstance
Create a new instance using a specific Bus.- Parameters:
b
- the Bus to use in subsequent operations with the instance- Returns:
- the new instance
-
newInstance
Create a new instance using a default Bus.- Returns:
- the new instance
- See Also:
-
BusFactory.getDefaultBus()
-
createClient
Create a newClient
instance using the WSDL to be loaded from the specified URL and using the current classloading context.- Parameters:
wsdlUrl
- the URL to load- Returns:
- a new Client loaded using the wsdlUrl parameter
-
createClient
-
createClient
Create a newClient
instance using the WSDL to be loaded from the specified URL and using the current classloading context.- Parameters:
wsdlUrl
- the URL to load- Returns:
- a new Client loaded using the wsdlUrl parameter
-
createClient
-
createClient
Create a newClient
instance using the WSDL to be loaded from the specified URL and with the specifiedClassLoader
as parent.- Parameters:
wsdlUrl
-classLoader
-- Returns:
-
createClient
public org.apache.cxf.endpoint.Client createClient(String wsdlUrl, ClassLoader classLoader, List<String> bindingFiles) -
createClient
-
createClient
-
createClient
-
createClient
-
createClient
public org.apache.cxf.endpoint.Client createClient(String wsdlUrl, QName service, ClassLoader classLoader, QName port) -
createClient
Create a newClient
instance using the WSDL to be loaded from the specified URL and with the specifiedClassLoader
as parent.- Parameters:
wsdlUrl
-classLoader
-- Returns:
-
createClient
public org.apache.cxf.endpoint.Client createClient(URL wsdlUrl, ClassLoader classLoader, List<String> bindingFiles) -
createClient
-
createClient
-
createClient
-
createClient
-
createClient
public org.apache.cxf.endpoint.Client createClient(URL wsdlUrl, QName service, ClassLoader classLoader, QName port) -
createClient
-
createClient
-
allowWrapperOps
protected boolean allowWrapperOps() -
createSchemaCompiler
protected org.apache.cxf.common.jaxb.JAXBUtils.SchemaCompiler createSchemaCompiler() -
applySchemaCompilerOptions
protected void applySchemaCompilerOptions(org.apache.cxf.common.jaxb.JAXBUtils.SchemaCompiler compiler) -
isSimpleBindingEnabled
public boolean isSimpleBindingEnabled() -
setSimpleBindingEnabled
public void setSimpleBindingEnabled(boolean simpleBindingEnabled) -
compileJavaSrc
-
getJaxbContextProperties
Return the map of JAXB context properties used at the time that we create new contexts.- Returns:
- the map
-
setJaxbContextProperties
Set the map of JAXB context properties used at the time that we create new contexts.- Parameters:
jaxbContextProperties
-
-
cloneNode
- Throws:
DOMException
-