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
-
XmlUtils()
-
-
createDocument()
- Create a Document
-
dumpDOM(Document, StringBuffer)
-
-
extractMethodName(Envelope)
- Get the method name from the envelope.
-
extractServiceId(Envelope)
- Get the service id from the envelope.
-
parseXml(InputStream)
- Parse the contents of the XML InputStream and return the XML document.
-
parseXml(Reader)
- Parse the given XML source and return the XML document.
-
parseXml(String)
- Parse the given XML file and return the XML document.
XmlUtils
public XmlUtils()
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.
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.
dumpDOM
public static void dumpDOM(Document doc,
StringBuffer buf)
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.
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.
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
createDocument
public static Document createDocument() throws SOAPException
- Create a Document
- Throws: SOAPException
- Cannot create document.
All Packages Class Hierarchy This Package Previous Next Index