org.autopipes.servlet
Interface DOMSOAP

All Known Implementing Classes:
DOMSOAPImp

public interface DOMSOAP

Helper class inended to provide SOAP marshaling. It could have been possible to use an implementation of saaj but the implementation found in Axis comes bundled with the rest of the toolkit and that appeared too heavy for what we needed here.


Field Summary
static java.lang.String SOAPENV
          namespace used by SOAP 1.1 envelope.
static java.lang.String XMLNS
          XMLConstants.XMLNS_ATTRIBUTE_NS_URI.
 
Method Summary
 org.w3c.dom.Document createErrorMessage(java.lang.Exception e)
          Creates SOAP Fault message containing text found in an exception.
 org.w3c.dom.Document createMessageDoc()
          Creates an empty SOAP message.
 org.w3c.dom.Document readMessage(java.io.Reader reader)
          Deserializes a stream into a node.
 void writeMessage(org.w3c.dom.Node msg, java.io.Writer writer)
          Serializes a node into a stream.
 

Field Detail

SOAPENV

static final java.lang.String SOAPENV
namespace used by SOAP 1.1 envelope.

See Also:
Constant Field Values

XMLNS

static final java.lang.String XMLNS
XMLConstants.XMLNS_ATTRIBUTE_NS_URI.

See Also:
Constant Field Values
Method Detail

createMessageDoc

org.w3c.dom.Document createMessageDoc()
Creates an empty SOAP message.

Returns:
the message

createErrorMessage

org.w3c.dom.Document createErrorMessage(java.lang.Exception e)
Creates SOAP Fault message containing text found in an exception.

Parameters:
e - the exception
Returns:
the message

writeMessage

void writeMessage(org.w3c.dom.Node msg,
                  java.io.Writer writer)
                  throws javax.servlet.ServletException
Serializes a node into a stream.

Parameters:
msg - the node
writer - the stream
Throws:
javax.servlet.ServletException - wrapped for use in a Servlet

readMessage

org.w3c.dom.Document readMessage(java.io.Reader reader)
                                 throws javax.xml.transform.TransformerException
Deserializes a stream into a node.

Parameters:
reader - the stream
Returns:
the node
Throws:
javax.xml.transform.TransformerException