| java.lang.Object com.sun.jbi.wsdl2.impl.WsdlReader
WsdlReader | final class WsdlReader implements com.sun.jbi.wsdl2.WsdlReader(Code) | | This class provides the ability to read WSDL documents, converting them
into Description .
This is loosely based on the WSDLReaderImpl in the JSR-110 RI, in order
to preserve some sort of compatibility with 110-based code. The actual
implementation is quite different.
author: Sun Microsystems, Inc. |
Method Summary | |
public Logger | getLogger() Get the logger used by this WSDL reader. | static URL | getURL(URL contextURL, String specification) Get the URL, based on the specification string and context URL (if any).
Parameters: contextURL - The context in which to resolve the specification string. Parameters: specification - The URL specification string or filename. | public com.sun.jbi.wsdl2.Description | readDescription(String wsdlUri) Read the given WSDL document, converting it into a Description
object.
Parameters: wsdlUri - A URI pointing to the WSDL XML document resource to read. | public com.sun.jbi.wsdl2.Description | readDescription(String contextUri, String wsdlUri) Read the given WSDL2 document, in the given context URI, converting it into
a Description object.
Parameters: contextUri - The context to evaluate the wsdlUri in. Parameters: wsdlUri - A URI pointing to the WSDL XML document resource toread. | public com.sun.jbi.wsdl2.Description | readDescription(String documentBaseUri, Document document) Read the given document (we assume it is WSDL 2.0) into a
Description object.
Parameters: documentBaseUri - The base url for the WSDL document Parameters: document - The WSDL document as a DOM tree. | public com.sun.jbi.wsdl2.Description | readDescription(String documentBaseUri, Element element) Read the given document (we assume it is WSDL 2.0) into a
Description object.
Parameters: documentBaseUri - The base url for the WSDL document Parameters: element - The <definitions> element for the WSDL instance. | public com.sun.jbi.wsdl2.Description | readDescription(String documentBaseURI, InputSource inputSource) Read a WSDL document into a WSDL definition.
Parameters: documentBaseURI - The document base URI of the WSDL definitiondescribed by the document. | public com.sun.jbi.wsdl2.Definitions | readWsdl(String wsdlURI) | public com.sun.jbi.wsdl2.Definitions | readWsdl(String contextURI, String wsdlURI) | public com.sun.jbi.wsdl2.Definitions | readWsdl(String documentBaseURI, Document document) | public com.sun.jbi.wsdl2.Definitions | readWsdl(String documentBaseURI, Element definitionsElement) | public com.sun.jbi.wsdl2.Definitions | readWsdl(String documentBaseURI, InputSource inputSource) |
getLogger | public Logger getLogger()(Code) | | Get the logger used by this WSDL reader. This avoids exposing our
logger name, which may change.
Logger used by WSDL readers. |
getURL | static URL getURL(URL contextURL, String specification) throws MalformedURLException(Code) | | Get the URL, based on the specification string and context URL (if any).
Parameters: contextURL - The context in which to resolve the specification string. Parameters: specification - The URL specification string or filename. The URL corresponding the the given specification ,in the given context contextURL (if not null). exception: MalformedURLException - if the specification string is not a legal URL.This is based loosely on the JSR 110 RI StringUtil method of the same name. |
readDescription | public com.sun.jbi.wsdl2.Description readDescription(String contextUri, String wsdlUri) throws WsdlException, MalformedURLException, IOException(Code) | | Read the given WSDL2 document, in the given context URI, converting it into
a Description object.
Parameters: contextUri - The context to evaluate the wsdlUri in. Parameters: wsdlUri - A URI pointing to the WSDL XML document resource toread. This can be a URL or a filename. Description corresponding to the given WSDL document exception: WsdlException - If the WSDL document contains errors. exception: MalformedURLException - If one of the URIs given isn't a validURL or file name. exception: IOException - If an error occurs reading theresource given in wsdlUri . |
readDescription | public com.sun.jbi.wsdl2.Description readDescription(String documentBaseUri, Document document) throws WsdlException, IOException(Code) | | Read the given document (we assume it is WSDL 2.0) into a
Description object.
Parameters: documentBaseUri - The base url for the WSDL document Parameters: document - The WSDL document as a DOM tree. A WSDL Description component corresponding to the givenWSDL 2.0 document . exception: WsdlException - if an XML parsing error occurs. |
readDescription | public com.sun.jbi.wsdl2.Description readDescription(String documentBaseUri, Element element) throws WsdlException, IOException(Code) | | Read the given document (we assume it is WSDL 2.0) into a
Description object.
Parameters: documentBaseUri - The base url for the WSDL document Parameters: element - The <definitions> element for the WSDL instance. Description object representing the WSDL document read. exception: WsdlException - If a parsing or processing error occurs. |
readDescription | public com.sun.jbi.wsdl2.Description readDescription(String documentBaseURI, InputSource inputSource) throws WsdlException, IOException(Code) | | Read a WSDL document into a WSDL definition.
Parameters: documentBaseURI - The document base URI of the WSDL definitiondescribed by the document. Will be set as the documentBaseURI of the returned Definition. Can be null, in which case it will be ignored. Parameters: inputSource - An InputSource pointing to the WSDL document, an XML document obeying the WSDL schema. The WSDL document pointed to by the inputSource , as a Description component. exception: WsdlException - if an XML parsing error occurs. exception: IOException - if an error occurs reading inputSource . |
|
|