All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.soap.util.xml.XmlUtils

java.lang.Object
   |
   +----oracle.soap.util.xml.XmlUtils

public class XmlUtils
extends Object

Constructor Index

 o XmlUtils()

Method Index

 o createDocument()
Create a Document
 o dumpDOM(Document, StringBuffer)
 o extractMethodName(Envelope)
Get the method name from the envelope.
 o extractServiceId(Envelope)
Get the service id from the envelope.
 o parseXml(InputStream)
Parse the contents of the XML InputStream and return the XML document.
 o parseXml(Reader)
Parse the given XML source and return the XML document.
 o parseXml(String)
Parse the given XML file and return the XML document.

Constructors

 o XmlUtils
 public XmlUtils()

Methods

 o extractServiceId
 public static String extractServiceId(Envelope envelope) throws SOAPException
Get the service id from the envelope. It is the namespace URI of the first body entry.

Throws: SOAPException
Unable to get service URI from envelope.
 o extractMethodName
 public static String extractMethodName(Envelope envelope) throws SOAPException
Get the method name from the envelope. It is the name of the first body entry.

Throws: SOAPException
Unable to get method name from envelope.
 o dumpDOM
 public static void dumpDOM(Document doc,
                            StringBuffer buf)
 o parseXml
 public static Document parseXml(String filename) throws SOAPException
Parse the given XML file and return the XML document.

Parameters:
filename - The full path to the XML file.
Throws: SOAPException
File not found or parse error.
 o parseXml
 public static Document parseXml(Reader reader) throws SOAPException
Parse the given XML source and return the XML document.

Parameters:
reader - Reader for XML
Throws: SOAPException
File not found or parse error.
 o parseXml
 public static Document parseXml(InputStream is) throws SOAPException
Parse the contents of the XML InputStream and return the XML document.

Parameters:
is - input stream source
Throws: SOAPException
if there are parse errors or IO errors
 o createDocument
 public static Document createDocument() throws SOAPException
Create a Document

Throws: SOAPException
Cannot create document.

All Packages  Class Hierarchy  This Package  Previous  Next  Index