public class DOMWSDLReader extends BaseWSDLReader
features, fWsdlContext
FEATURE_CONTINUE_ON_ERROR, FEATURE_VALIDATION, FEATURE_VERBOSE, PROPERTY_TYPE_SYSTEM_API, PROPERTY_XML_PARSER_API, TYPE_XSD_2001
Modifier and Type | Method and Description |
---|---|
protected DocumentBuilder |
createDocumentBuilder(DocumentBuilderFactory factory,
EntityResolver entityResolver,
ErrorHandler errorHandler)
Create a JAXP DocumentBuilder will use for parsing XML documents.
|
protected DocumentBuilderFactory |
createDocumentBuilderFactory(boolean namespaceAware)
Create the JAXP DocumentBuilderFactory instance.Use JAXP 1.2 API for validation.
|
WSDLSource |
createWSDLSource()
Returns a WSDLSource object that is compatible with the WSDLReader implementation.
|
protected XMLElement |
createXMLElement(Object elem)
Returns an XMLElement object representing the specified element
object.
|
protected DescriptionElement |
getWSDLFromLocation(String locationURI,
DescriptionElement desc,
Map wsdlModules) |
protected void |
parseExtensionAttributes(XMLElement extEl,
Class wsdlClass,
WSDLElement wsdlObj,
DescriptionElement desc) |
protected void |
parseNamespaceDeclarations(XMLElement xmlElem,
WSDLElement wsdlElem) |
protected void |
parseSchemaForXMLSchema(DescriptionElement desc) |
protected Schema |
parseSchemaImport(XMLElement importEl,
DescriptionElement desc) |
protected Schema |
parseSchemaInline(XMLElement schemaEl,
DescriptionElement desc) |
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.
|
getErrorReporter, getExtensionRegistry, getFactory, getFactoryImplName, getFeature, getProperty, getURI, getURIResolver, parseDescription, parseDocumentation, parseExtensionElement, resolveURI, resolveURI, setExtensionRegistry, setFactoryImplName, setFeature, setProperty, setURIResolver
public WSDLSource createWSDLSource()
WSDLReader
This WSDLSource object can be used to encapsulate the WSDL and is then passed to the
WSDLReader as a parameter to its readWSDL
methods.
public Description readWSDL(String wsdlURI) throws WSDLException
WSDLReader
wsdlURI
- a URI (absolute filename or URL) pointing to a
WSDL document.WSDLException
- for terminating errors and as wrapper
for checked exceptions.public Description readWSDL(WSDLSource wsdlSource) throws WSDLException
WSDLReader
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 exceptionsprotected Schema parseSchemaInline(XMLElement schemaEl, DescriptionElement desc) throws WSDLException
parseSchemaInline
in class BaseWSDLReader
WSDLException
protected Schema parseSchemaImport(XMLElement importEl, DescriptionElement desc) throws WSDLException
parseSchemaImport
in class BaseWSDLReader
WSDLException
protected void parseExtensionAttributes(XMLElement extEl, Class wsdlClass, WSDLElement wsdlObj, DescriptionElement desc) throws WSDLException
parseExtensionAttributes
in class BaseWSDLReader
WSDLException
protected XMLElement createXMLElement(Object elem)
BaseWSDLReader
createXMLElement
in class BaseWSDLReader
protected void parseNamespaceDeclarations(XMLElement xmlElem, WSDLElement wsdlElem) throws WSDLException
parseNamespaceDeclarations
in class BaseWSDLReader
WSDLException
protected void parseSchemaForXMLSchema(DescriptionElement desc) throws WSDLException
parseSchemaForXMLSchema
in class BaseWSDLReader
WSDLException
protected DescriptionElement getWSDLFromLocation(String locationURI, DescriptionElement desc, Map wsdlModules) throws WSDLException
getWSDLFromLocation
in class BaseWSDLReader
WSDLException
protected DocumentBuilderFactory createDocumentBuilderFactory(boolean namespaceAware) throws ParserConfigurationException, WSDLException
namespaceAware
- whether the returned factory is to provide support for XML namespacesParserConfigurationException
- if we failed to build a proper DocumentBuilderFactoryWSDLException
protected DocumentBuilder createDocumentBuilder(DocumentBuilderFactory factory, EntityResolver entityResolver, ErrorHandler errorHandler) throws ParserConfigurationException
factory
- the JAXP DocumentBuilderFactory that the DocumentBuilder
should be created withentityResolver
- the SAX EntityResolver to useerrorHandler
- the SAX ErrorHandler to useParserConfigurationException
- if thrown by JAXP methodsCopyright © 2005–2013 Apache Software Foundation. All rights reserved.