public class WSDLDocument
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
className
Class name.
|
static java.lang.String |
NS_URI_WSDL_HTTP |
static java.lang.String |
NS_URI_WSDL_MIME |
static java.lang.String |
NS_URI_WSDL_SOAP |
static java.lang.String |
NS_URI_XSD
WSDL related namespaces.
|
static java.lang.String |
WSDL_FACTORY
WSDL factory class
|
protected static WSDLException |
wsdlException |
protected static WSDLFactory |
wsdlFactory |
| Constructor and Description |
|---|
WSDLDocument(Definition definition)
Constructs a new WSDL document from a UDDI businessService.
|
WSDLDocument(org.w3c.dom.Document document)
Constructs a new WSDL document from a Document DOM.
|
WSDLDocument(java.io.Reader reader)
Constructs a new WSDL document from the specified Reader.
|
WSDLDocument(java.lang.String fileName)
Constructs a new WSDL document from the specified file.
|
WSDLDocument(java.net.URL documentURL)
Constructs a new WSDL document from the specified URL.
|
| Modifier and Type | Method and Description |
|---|---|
WSDLDocument |
findServiceInterface()
Find the Service Interface document which this Service Implementation
document references.
|
Binding[] |
getBindings()
Get all the binding elements from the WSDL document.
|
Definition |
getDefinitions()
Get the definition element of the WSDL document.
|
Import[] |
getImports()
Get all the import elements from the WSDL document.
|
Message[] |
getMessages()
Get all the message elements from the WSDL document.
|
PortType[] |
getPortTypes()
Get all the portType elements from the WSDL document.
|
Service[] |
getServices()
Get all the service elements from the WSDL document.
|
static WSDLReader |
getWSDLReader()
Constructs a WSDLReader
Set verbose option off.
|
static WSDLReader |
getWSDLReader(boolean imports)
Constructs a WSDLReader
Set verbose option off.
|
static WSDLWriter |
getWSDLWriter()
Constructs a WSDLWriter
|
boolean |
isCompleteServiceDefinition()
Check if this document is both a service interface and a service implementation.
|
boolean |
isServiceImplementation()
Check if this document is a service implementation.
|
boolean |
isServiceInterface()
Check if this document is a service interface.
|
boolean |
isServiceInterfaceWithBindingsOnly()
Check if this document is a service interface with bindings only.
|
static void |
main(java.lang.String[] args)
Command line interface for validating WSDL documents.
|
void |
read(java.lang.String fileName)
Read the information contained in a WSDL file.
|
void |
read(java.lang.String fileName,
boolean imports)
Read the information contained in a WSDL file
|
java.lang.String |
serializeToXML()
Generate an XML string that represents the WSDL document content.
|
java.lang.String |
toString()
Return string representation of this object.
|
void |
write(java.lang.String fileName)
Write the WSDL document to the specified file.
|
void |
write(java.io.Writer writer)
Write the WSDL document content to the specified writer.
|
protected static final java.lang.String className
public static final java.lang.String NS_URI_XSD
public static final java.lang.String NS_URI_WSDL_SOAP
public static final java.lang.String NS_URI_WSDL_HTTP
public static final java.lang.String NS_URI_WSDL_MIME
public static final java.lang.String WSDL_FACTORY
protected static WSDLFactory wsdlFactory
protected static WSDLException wsdlException
public WSDLDocument(java.lang.String fileName)
throws WSDLException
fileName - The name of the WSDL file to be read. Specify either
the full path to the file, or a URL address.WSDLException - if the WSDL document cannot be created.public WSDLDocument(java.net.URL documentURL)
throws WSDLException
documentURL - the URL where the WSDL document is locatedWSDLException - if the WSDL document cannot be created.public WSDLDocument(java.io.Reader reader)
throws WSDLException
reader - the reader that will be used to get the contents
of the WSDL documentWSDLException - if the WSDL document cannot be created.public WSDLDocument(org.w3c.dom.Document document)
throws WSDLException
document - A parsed XML document that conforms to the WSDL schema.WSDLException - if the WSDL document cannot be created.public WSDLDocument(Definition definition)
throws WSDLException
definition - A WSDL definition element.WSDLException - if the WSDL document cannot be created.public static WSDLReader getWSDLReader()
throws WSDLException
WSDLException - if the WSDL document cannot be created.public static WSDLReader getWSDLReader(boolean imports)
throws WSDLException
imports - set to true if imports are to be reslolved, false if not.WSDLException - if the WSDL document cannot be created.public static WSDLWriter getWSDLWriter()
throws WSDLException
WSDLException - if the WSDL document cannot be created.public void read(java.lang.String fileName)
throws WSDLException
fileName - The name of the WSDL file to be read. Specify either
the full path to the file, or a URL address.WSDLException - if a error occurs processing the file.public void read(java.lang.String fileName,
boolean imports)
throws WSDLException
fileName - the name of the WSDL file to be read. Specify either
the full path to the file, or a URL address.imports - true if imports in the WSDL file should be resolvedWSDLException - if an error occurs processing the file.public void write(java.lang.String fileName)
fileName - The name of the file to write to.public void write(java.io.Writer writer)
writer - The Writer to use.public java.lang.String serializeToXML()
public Definition getDefinitions()
public Message[] getMessages()
public PortType[] getPortTypes()
public Binding[] getBindings()
public Import[] getImports()
public Service[] getServices()
public boolean isServiceInterface()
public boolean isServiceInterfaceWithBindingsOnly()
public boolean isServiceImplementation()
public boolean isCompleteServiceDefinition()
public WSDLDocument findServiceInterface() throws WSDLException
WSDLException - if an error occurs while reading
an imported document.public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
Copyright ? 2001 International Business Machines Corporation. All Rights Reserved.