|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wsil.util.WSDLDocument
public class WSDLDocument
Provides an easy way to read and write information to and from WSDL documents.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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 located
WSDLException
- 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 document
WSDLException
- 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.Method Detail |
---|
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 resolved
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 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.Object
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |