net.rim.device.api.io.parser.soap
Class SOAPParser

java.lang.Object
  extended by net.rim.device.api.io.parser.soap.SOAPParser

public class SOAPParser
extends Object

Parses a SOAP document and returns a SOAPEnvelope. It supports Document/Literal, RPC/Literal, and RPC/encoded styles of SOAP.

Since:
BlackBerry API 6.0.0

Constructor Summary
SOAPParser()
          Constructs a SOAPParser.
 
Method Summary
 SOAPEnvelope parse(InputStream in)
          Parses an InputStream that contains a SOAPEnvelope, and returns a SOAPEnvelope object.
 SOAPEnvelope parse(String soapString)
          Parses a String that contains a SOAP envelope, and returns a SOAPEnvelope.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

SOAPParser

public SOAPParser()
           throws ParserConfigurationException,
                  SAXException
Constructs a SOAPParser.

Throws:
ParserConfigurationException - If there is a configuration problem that prevents the creation of the SAX Parser.
SAXException - If there is a problem creating the underlying SAX Parser.
Since:
BlackBerry API 6.0.0


Method Detail

parse

public SOAPEnvelope parse(InputStream in)
                   throws IOException,
                          SAXException
Parses an InputStream that contains a SOAPEnvelope, and returns a SOAPEnvelope object.

Parameters:
in - InputSteam that contains a SOAP envelope.
Returns:
SOAPEnvelope Representation of SOAP document.
Throws:
IOException - If there is a problem reading the input.
SAXException - If there is a problem interpreting the XML.
Since:
BlackBerry API 6.0.0

parse

public SOAPEnvelope parse(String soapString)
                   throws IOException,
                          SAXException
Parses a String that contains a SOAP envelope, and returns a SOAPEnvelope.

Parameters:
soapString - A String that contains a SOAP document.
Returns:
SOAPEnvelope Representation of a SOAP document.
Throws:
IOException - If there is a problem reading the input.
SAXException - If there is a problem interpreting the XML.
Since:
BlackBerry API 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal