public interface WSDLReader
readWSDL methods that obtain the WSDL infoset from
the specified source, parse it into the Woden object model and return this as a WSDL
Description component containing the WSDL components derived from that infoset.
If the WSDL is comprised of a composite set of documents nested via wsdl:import
or wsdl:include, the Description component will represent the abstract, 'flattened' view
of the WSDL tree, containing all of the WSDL components derived from the various WSDL
documents, but without the document structure.| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_CONTINUE_ON_ERROR
Set to
true if parsing should continue after
encountering a non-fatal error in the WSDL which might result
in incomplete WSDL model being returned by the reader,
false otherwise. |
static String |
FEATURE_VALIDATION
Set to
true to enable the WSDL validation feature, false otherwise. |
static String |
FEATURE_VERBOSE
Set to
true to enable verbose diagnostic tracing, false otherwise. |
static String |
PROPERTY_TYPE_SYSTEM_API |
static String |
PROPERTY_XML_PARSER_API
Constants for reader configuration property names.
|
static String |
TYPE_XSD_2001
A constant representing the W3C XML Schema type system.
|
| Modifier and Type | Method and Description |
|---|---|
WSDLSource |
createWSDLSource()
Returns a WSDLSource object that is compatible with the WSDLReader implementation.
|
ErrorReporter |
getErrorReporter() |
ExtensionRegistry |
getExtensionRegistry() |
String |
getFactoryImplName() |
boolean |
getFeature(String name)
Returns the on/off setting of the named feature, represented as a boolean.
|
Object |
getProperty(String name)
Returns the value of the named property.
|
URIResolver |
getURIResolver()
Gets the URI Resolver currently in use
|
Description |
readWSDL(String wsdlURI)
Read the WSDL document at the specified URI and return a WSDL Description
component containing the WSDL components derived from that document.
|
Description |
readWSDL(WSDLSource wsdlSource)
Read the WSDL obtained from the specified WSDLSource object and return a WSDL Description
component containing the WSDL components derived from that WSDL source.
|
void |
setExtensionRegistry(ExtensionRegistry extReg)
Set the extension registry to the specified registry reference.
|
void |
setFactoryImplName(String factoryImplName)
Store the name of the WSDLFactory implementation class to be used for
any subsequent WSDLFactory requests.
|
void |
setFeature(String name,
boolean value)
Set a named feature on or off with a boolean.
|
void |
setProperty(String name,
Object value)
Set a named property to the specified object.
|
void |
setURIResolver(URIResolver resolver)
Sets the URI resolver to be used.
|
static final String FEATURE_VERBOSE
true to enable verbose diagnostic tracing, false otherwise.static final String FEATURE_VALIDATION
true to enable the WSDL validation feature, false otherwise.static final String FEATURE_CONTINUE_ON_ERROR
true if parsing should continue after
encountering a non-fatal error in the WSDL which might result
in incomplete WSDL model being returned by the reader,
false otherwise.static final String PROPERTY_XML_PARSER_API
static final String PROPERTY_TYPE_SYSTEM_API
static final String TYPE_XSD_2001
Description readWSDL(String wsdlURI) throws WSDLException
wsdlURI - a URI (absolute filename or URL) pointing to a
WSDL document.WSDLException - for terminating errors and as wrapper
for checked exceptions.Description readWSDL(WSDLSource wsdlSource) throws WSDLException
The WSDLSource object must represent the WSDL using a type that the WSDLReader implementation can understand. That is, the WSDLSource and WSDLReader implementations must be compatible. For example, a DOM-based WSDLReader implementation will likely require the WSDLSource object to represent the WSDL as a DOM Document or Element (org.w3c.dom.Document or org.w3c.dom.Element), both of which should be type compatible the DOM-based reader.
wsdlSource - contains an object representing the WSDLWSDLException - for terminating errors and as a wrapper
for checked exceptionsWSDLSource createWSDLSource()
This WSDLSource object can be used to encapsulate the WSDL and is then passed to the
WSDLReader as a parameter to its readWSDL methods.
ErrorReporter getErrorReporter()
void setFactoryImplName(String factoryImplName)
factoryImplName - the WSDLFactory implementation classnameString getFactoryImplName()
void setExtensionRegistry(ExtensionRegistry extReg)
extReg - an ExtensionRegistryNullPointerException - if extReg is nullExtensionRegistry getExtensionRegistry()
void setFeature(String name, boolean value)
All feature names should be fully-qualified, Java package style to avoid name clashes. All names starting with org.apache.woden. are reserved for features defined by the Woden implementation. Features specific to other implementations should be fully-qualified to match the package name structure of that implementation. For example: com.abc.featureName
name - the name of the feature to be setvalue - a boolean value where true sets the feature on, false sets it offIllegalArgumentException - if the feature name is not recognized.boolean getFeature(String name)
name - the name of the feature to get the value ofIllegalArgumentException - if the feature name is not recognized.void setProperty(String name, Object value)
All property names should be fully-qualified, Java package style to avoid name clashes. All names starting with org.apache.woden. are reserved for properties defined by the Woden implementation. Properties specific to other implementations should be fully-qualified to match the package name structure of that implementation. For example: com.abc.propertyName
name - the name of the property to be setvalue - an Object representing the value to set the property toIllegalArgumentException - if the property name is not recognized.Object getProperty(String name)
name - the name of the property to get the value ofIllegalArgumentException - if the property name is not recognized.void setURIResolver(URIResolver resolver)
resolver - URIResolver getURIResolver()
Copyright ? Apache Software Foundation. All Rights Reserved.