public interface WSDLSource
Each concrete implementation of WSDLReader will have a concrete implementation
of WSDLSource that can handle the types of WSDL source formats that are
compatible with the WSDLReader implementation. For example, a DOM-based
implementation of WSDLReader will return a DOM-based implementation of
WSDLSource via its WSDLReader.createWSDLSource
method and this
DOM-based WSDLSource implemenation will accept as WSDL source an
org.w3c.dom.Element or org.w3c.dom.Document object via its
WSDLSource.setSource
method.
The WSDL source is set via the setSource(java.lang.Object)
method. Runtime type safety should be provided in the implementation of
the setSource
method, which should check that the Object
argument is of a type compatible with the WSDLReader implementation that
created the WSDLSource object.
Programming example:
//wsdlURI is the URI of the base wsdl document. //domReader is a DOM-based implementation of WSDLReader //domElement is an org.w3c.dom.Element representing a <wsdl:description> element. WSDLSource wsdlSource = domReader.createWSDLSource(); wsdlSource.setBaseURI(wsdlURI); wsdlSource.setSource(domElement); DescriptionElement desc = reader.readWSDL(wsdlSource);
Modifier and Type | Method and Description |
---|---|
URI |
getBaseURI() |
Object |
getSource()
Returns the implementation specific object representing the WSDL source
(for example, a DOM Element or Document or an Axiom OMElement).
|
void |
setBaseURI(URI baseURI)
Store the base URI of the WSDL source document.
|
void |
setSource(Object wsdlSource)
Store the specified source object representing the WSDL.
|
void setSource(Object wsdlSource)
wsdlSource
- the WSDL source objectIllegalArgumentException
- if the specified object type is not
recognized by the WSDLSource implementation.Object getSource()
void setBaseURI(URI baseURI)
baseURI
- the URI of the WSDL document.URI getBaseURI()
Copyright © 2005–2015 Apache Software Foundation. All rights reserved.