public class SOAP extends Object
SOAP is the class which allows sending and receiving of soap messages.| Modifier and Type | Field and Description |
|---|---|
static int |
SOAP_BODY |
static int |
SOAP_ENVELOPE |
static int |
SOAP_FAULT |
static int |
SOAP_HEADER |
static int |
SOAP_UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static SOAP |
createFromXMLStreams(InputStream headerStream,
InputStream bodyStream,
String loadOptions)
Creates a Soap model from a header stream and a body stream.
|
static boolean |
exportContentsToXML(Element element,
OutputStream outputStream)
Export the contents of a SOAP node (and its descendants) to XML.
|
Element |
getBodyNode()
Gets the element which is the SOAP:Body element
|
Element |
getEnvelopeNode()
Gets the element which is the Envelope element
|
Node |
getFaultActor()
Return the fault actor node.
|
String |
getFaultCode()
Return the fault code string (value of faultcode element).
|
Node |
getFaultDetail()
Return the fault detail string (value of faultdetail element).
|
Element |
getFaultNode()
Return the SOAP fault node.
|
String |
getFaultString()
Return the fault string (value of faultstring element).
|
Element |
getHeaderNode()
Gets the element which is the SOAP:Header element
|
String |
getLastError()
Get an error string from the last operation.
|
static int |
getNodeType(Node node)
Return the SOAP type of a given DOM node.
|
static SOAP |
loadFromStream(InputStream stream,
String loadOptions)
Loads a Soap message into a model from a stream, and creates a
hierarchy for it.
|
void |
saveAs(OutputStream outputStream)
Writes the soap message into a stream.
|
SOAP |
sendRequest(String inSOAPAddress,
String inSOAPAction)
Sends a SOAP message and returns the response.
|
public static final int SOAP_UNKNOWN
public static final int SOAP_BODY
public static final int SOAP_ENVELOPE
public static final int SOAP_HEADER
public static final int SOAP_FAULT
public static SOAP createFromXMLStreams(InputStream headerStream, InputStream bodyStream, String loadOptions)
headerStream - - the stream that contains the XML data to load into the header.bodyStream - - the stream that contains the XML data to load into the Body.loadOptions - - (optional) loading options.public static boolean exportContentsToXML(Element element, OutputStream outputStream)
element - SOAP node (element) to export.outputStream - Output stream to receive the contents of the exported node.public static final int getNodeType(Node node)
node - Node for which the type is desired.public static SOAP loadFromStream(InputStream stream, String loadOptions)
stream - - the stream that contains the data to load.loadOptions - - (optional) loading options.public Element getBodyNode()
public Element getEnvelopeNode()
public Node getFaultActor()
public String getFaultCode()
public Node getFaultDetail()
public Element getFaultNode()
public String getFaultString()
public Element getHeaderNode()
public String getLastError()
public void saveAs(OutputStream outputStream)
outputStream - - the stream to which the message will be written.public SOAP sendRequest(String inSOAPAddress, String inSOAPAction)
inSOAPAddress - The HTTP address where this SOAP message will be sent.inSOAPAction - The SOAP Action.Copyright © 2010 - 2020 Adobe. All Rights Reserved