oracle.wsdl
Class WSDLDocument

java.lang.Object
  |
  +--oracle.wsdl.WSDLDocument

public class WSDLDocument
extends java.lang.Object

WSDLDocument represents a WSDL document as an object model, and can be used to read, write and validate a WSDL document.


Field Summary
TypeField
static int VALIDATE_EXTENSIONS
          Validation Mode: validate WSDL extensibility elements
static int VALIDATE_REFERENCES
          Validation Mode: validate WSDL QName references
 
Constructor Summary
WSDLDocument(Definitions definitions)
          Initialize with a Definitions element
WSDLDocument(java.io.Reader reader)
          Initialize with a reader for WSDL document
WSDLDocument(java.lang.String wsdlDoc)
          Initialize with a WSDL document content
WSDLDocument(java.net.URL url)
          Initialize with a WSDL document URL
 
Method Summary
TypeMethod
 Definitions getDefinitions()
          Get the top-level Definitions element of this WSDL document
 java.lang.String getSOAPNamespaceURI()
          Get SOAP namespaceURI
 java.lang.String getWSDLNamespaceURI()
          Get WSDL namespaceURI
 void setSOAPNamespaceURI(java.lang.String namespaceURI)
          Set SOAP namespaceURI
 void setWSDLNamespaceURI(java.lang.String namespaceURI)
          Set WSDL namespaceURI
 void validate()
          Validate this WSDL document including qname references and extensions.
 void validate(int validationMode)
          Validate this WSDL document.
 void write(java.io.PrintWriter writer)
          Write this WSDL document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATE_REFERENCES

public static final int VALIDATE_REFERENCES
Validation Mode: validate WSDL QName references

VALIDATE_EXTENSIONS

public static final int VALIDATE_EXTENSIONS
Validation Mode: validate WSDL extensibility elements
Constructor Detail

WSDLDocument

public WSDLDocument(java.io.Reader reader)
Initialize with a reader for WSDL document
Parameters:
reader - WSDL document reader

WSDLDocument

public WSDLDocument(java.net.URL url)
Initialize with a WSDL document URL
Parameters:
url - the wsdl document URL

WSDLDocument

public WSDLDocument(java.lang.String wsdlDoc)
Initialize with a WSDL document content
Parameters:
wsdlDoc - the content of WSDL document

WSDLDocument

public WSDLDocument(Definitions definitions)
Initialize with a Definitions element
Parameters:
definitions - the definitions element
Method Detail

getDefinitions

public Definitions getDefinitions()
                           throws WSDLException
Get the top-level Definitions element of this WSDL document
Returns:
definitions element

write

public void write(java.io.PrintWriter writer)
           throws WSDLException,
                  java.io.IOException
Write this WSDL document. The output does not include imported documents. Imported documents can be written out separately by Definition importedDef = ... WSDLDocument doc = new WSDLDocument(importedDef); doc.write(writer);

getWSDLNamespaceURI

public java.lang.String getWSDLNamespaceURI()
Get WSDL namespaceURI
Returns:
WSDL namespace URI

setWSDLNamespaceURI

public void setWSDLNamespaceURI(java.lang.String namespaceURI)
Set WSDL namespaceURI
Parameters:
namespaceURI - the namespaceURI to set

getSOAPNamespaceURI

public java.lang.String getSOAPNamespaceURI()
Get SOAP namespaceURI
Returns:
SOAP namespace URI

setSOAPNamespaceURI

public void setSOAPNamespaceURI(java.lang.String namespaceURI)
Set SOAP namespaceURI
Parameters:
namespaceURI - SOAP namespaceURI to set

validate

public void validate()
              throws WSDLException
Validate this WSDL document including qname references and extensions.
Throws:
WSDLExcepton - this wsdl document is not valid

validate

public void validate(int validationMode)
              throws WSDLException
Validate this WSDL document.
Parameters:
validationMode - can be VALIDATE_REFERENCES or VALIDATE_EXTENSIONS
Throws:
WSDLExcepton - this wsdl document is not valid


Copyright © 2001 Oracle SOAP. All Rights Reserved.