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 javax.wsdl.WSDLException |
wsdlException |
protected static javax.wsdl.factory.WSDLFactory |
wsdlFactory |
Constructor and Description |
---|
WSDLDocument(javax.wsdl.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.
|
javax.wsdl.Binding[] |
getBindings()
Get all the binding elements from the WSDL document.
|
javax.wsdl.Definition |
getDefinitions()
Get the definition element of the WSDL document.
|
javax.wsdl.Import[] |
getImports()
Get all the import elements from the WSDL document.
|
javax.wsdl.Message[] |
getMessages()
Get all the message elements from the WSDL document.
|
javax.wsdl.PortType[] |
getPortTypes()
Get all the portType elements from the WSDL document.
|
javax.wsdl.Service[] |
getServices()
Get all the service elements from the WSDL document.
|
static javax.wsdl.xml.WSDLReader |
getWSDLReader()
Constructs a WSDLReader
Set verbose option off.
|
static javax.wsdl.xml.WSDLReader |
getWSDLReader(boolean imports)
Constructs a WSDLReader
Set verbose option off.
|
static javax.wsdl.xml.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 javax.wsdl.factory.WSDLFactory wsdlFactory
protected static javax.wsdl.WSDLException wsdlException
public WSDLDocument(java.lang.String fileName) throws javax.wsdl.WSDLException
fileName
- The name of the WSDL file to be read. Specify either
the full path to the file, or a URL address.javax.wsdl.WSDLException
- if the WSDL document cannot be created.public WSDLDocument(java.net.URL documentURL) throws javax.wsdl.WSDLException
documentURL
- the URL where the WSDL document is locatedjavax.wsdl.WSDLException
- if the WSDL document cannot be created.public WSDLDocument(java.io.Reader reader) throws javax.wsdl.WSDLException
reader
- the reader that will be used to get the contents
of the WSDL documentjavax.wsdl.WSDLException
- if the WSDL document cannot be created.public WSDLDocument(org.w3c.dom.Document document) throws javax.wsdl.WSDLException
document
- A parsed XML document that conforms to the WSDL schema.javax.wsdl.WSDLException
- if the WSDL document cannot be created.public WSDLDocument(javax.wsdl.Definition definition) throws javax.wsdl.WSDLException
definition
- A WSDL definition element.javax.wsdl.WSDLException
- if the WSDL document cannot be created.public static javax.wsdl.xml.WSDLReader getWSDLReader() throws javax.wsdl.WSDLException
javax.wsdl.WSDLException
- if the WSDL document cannot be created.public static javax.wsdl.xml.WSDLReader getWSDLReader(boolean imports) throws javax.wsdl.WSDLException
imports
- set to true if imports are to be reslolved, false if not.javax.wsdl.WSDLException
- if the WSDL document cannot be created.public static javax.wsdl.xml.WSDLWriter getWSDLWriter() throws javax.wsdl.WSDLException
javax.wsdl.WSDLException
- if the WSDL document cannot be created.public void read(java.lang.String fileName) throws javax.wsdl.WSDLException
fileName
- The name of the WSDL file to be read. Specify either
the full path to the file, or a URL address.javax.wsdl.WSDLException
- if a error occurs processing the file.public void read(java.lang.String fileName, boolean imports) throws javax.wsdl.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 resolvedjavax.wsdl.WSDLException
- 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 javax.wsdl.Definition getDefinitions()
public javax.wsdl.Message[] getMessages()
public javax.wsdl.PortType[] getPortTypes()
public javax.wsdl.Binding[] getBindings()
public javax.wsdl.Import[] getImports()
public javax.wsdl.Service[] getServices()
public boolean isServiceInterface()
public boolean isServiceInterfaceWithBindingsOnly()
public boolean isServiceImplementation()
public boolean isCompleteServiceDefinition()
public WSDLDocument findServiceInterface() throws javax.wsdl.WSDLException
javax.wsdl.WSDLException
- if an error occurs while reading
an imported document.public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
Copyright ? 2001 International Business Machines Corporation. All Rights Reserved.