Was this page helpful?

XSoap Class

    Table of contents
    1. 1. Members
      1. 1.1. Constructors
      2. 1.2. Fields
      3. 1.3. Properties
      4. 1.4. Methods
    Table of Contents
    public class XSoap
    Namespace: MindTouch.Xml
    Assembly: mindtouch.dream
    Type Hierarchy:
    Implements:
    • IEnumerable<XDoc>
    • IEnumerable
    • ICloneable
    Simple soap envelope extension on top of XDoc for building Soap messages.

    Members

    Constructors

    Visibility Description
    Public XSoap(XDoc doc) Create a version of an Xml document with the soap namespaces and prefixes imported.
    Public XSoap(string tag) Create a new empty soap envelope.
    Public XSoap() Create a new empty envelope.

    Fields

    Visibility Description
    Public SOAP_NAMESPACE Soap envelope namespace uri.
    Public SOAP_ENCODING_NAMESPACE Soap encoding namespace uri.
    Public XSI_NAMESPACE Xml Schema instance namespace uri.
    Public XSD_NAMESPACE Xml Schema namespace uri.

    Properties

    Visibility Description
    Public Header Accesss the envelope header.
    Public Body Access the envelope body.
    Public Fault Access the body fault message (if one exists).
    Public this[int index] Returns the XDoc at the given index of the root XDoc or an empty instance if the index is out of bounds. (Inherited from XDoc)
    Public this[string path] Returns a new rooted XDoc instance based on the supplied XPath. The selection starts at the first result. (Inherited from XDoc)
    Public this[XmlNode node] Returns a new rooted XDoc instance representing the given XmlNode instance. The XmlNode instance must belong to the same XmlDocument instance as the XDoc instance. (Inherited from XDoc)
    Public Doc Returns the XDoc instance representing the root element of XmlDocument instance. (Inherited from XDoc)
    Public Root Returns the root XDoc instance, which is either the XmlDocument element or the original node returned by an XPath expression. (Inherited from XDoc)
    Public ListLength Returns the number of items in the XDoc set. (Inherited from XDoc)
    Public Contents Returns the textual contents of the XDoc instance, including text and inner XML nodes. (Inherited from XDoc)
    Public Elements Returns an XDoc selection that includes all child elements. (Inherited from XDoc)
    Public First Returns the first XDoc instance of the selection. (Inherited from XDoc)
    Public Next Returns the next XDoc instance in the selection. (Inherited from XDoc)
    Public IsEmpty Returns true if the XDoc instance is empty. (Inherited from XDoc)
    Public IsText Returns true if the XDoc instance is an XmlText node. (Inherited from XDoc)
    Public Name Returns the element or attribute name of the current XDoc instance. (Inherited from XDoc)
    Public NamespaceURI Returns the element or attribute namespace URI of the current XDoc instance. (Inherited from XDoc)
    Public Prefix Returns the element or attribute prefix of the current XDoc instance. (Inherited from XDoc)
    Public QualifiedName Returns the element or attribute qualified name containing the namespace URI, prefix, and name of the current XDoc instance. (Inherited from XDoc)
    Public AsXmlNode Return the XmlNode wrappter by the XDoc instance. Use with caution and only if absolutely nessecary. (Inherited from XDoc)
    Public AsText Returns the value of all contained text nodes that are immediate children. (Inherited from XDoc)
    Public AsInnerText Returns the value of all contained text nodes including nested ones. (Inherited from XDoc)
    Public AsBool Returns the contents as boolean or null if contents could not be converted. (Inherited from XDoc)
    Public AsByte Returns the contents as byte or null if contents could not be converted. (Inherited from XDoc)
    Public AsSByte Returns the contents as signed byte or null if contents could not be converted. (Inherited from XDoc)
    Public AsShort Returns the contents as short integer or null if contents could not be converted. (Inherited from XDoc)
    Public AsUShort Returns the contents as unsigned short integer or null if contents could not be converted. (Inherited from XDoc)
    Public AsInt Returns the contents as integer or null if contents could not be converted. (Inherited from XDoc)
    Public AsUInt Returns the contents as unsigned integer or null if contents could not be converted. (Inherited from XDoc)
    Public AsLong Returns the contents as long integer or null if contents could not be converted. (Inherited from XDoc)
    Public AsULong Returns the contents as unsigned long integer or null if contents could not be converted. (Inherited from XDoc)
    Public AsFloat Returns the contents as floating-point number or null if contents could not be converted. (Inherited from XDoc)
    Public AsDouble Returns the contents as double floating-point number or null if contents could not be converted. (Inherited from XDoc)
    Public AsDecimal Returns the contents as decimal number or null if contents could not be converted. (Inherited from XDoc)
    Public AsDate Returns the contents as date/time or null if contents could not be converted. (Inherited from XDoc)
    Public AsUri Returns the contents as uri or null if contents could not be converted. (Inherited from XDoc)
    Public AsBytes Returns the contents as byte array or null if contents could not be converted. (Inherited from XDoc)
    Public Parent Returns the parent XDoc instance or Empty if none exists. (Inherited from XDoc)
    Public Language Gets/sets the value of the xml:lang attribute. Returns null if no such attribute exists. Set null to clear out the attribute. (Inherited from XDoc)
    Public EmptyNamespaceUri Gets the namespace URI associated with the empty prefix (Inherited from XDoc)

    Methods

    Visibility Description
    Public Value(Byte[] value) Adds a text node. (Inherited from XDoc)
    Public Value(XUri value) Adds a text node. (Inherited from XDoc)
    Public Value(object value) Adds a text node. (Inherited from XDoc)
    Public ReplaceValue(bool value) Replaces the text node with a new text node. (Inherited from XDoc)
    Public ReplaceValue(Byte[] value) Replaces the text node with a new text node. (Inherited from XDoc)
    Public ReplaceValue(DateTime value) Replaces the text node with a new text node. (Inherited from XDoc)
    Public ReplaceValue(object value) Replaces the text node with a new text node. (Inherited from XDoc)
    Public ReplaceValue(XUri value) Replaces the text node with a new text node. (Inherited from XDoc)
    Public ReplaceValue(string value) Replaces the text node with a new text node. (Inherited from XDoc)
    Public InsertValueAt(string xpath, string value) Inserts a text or attribute node at the given XPath expression, creating elements as needed. (Inherited from XDoc)
    Public CDataSection(string value) Adds a CDATA section. (Inherited from XDoc)
    Public Comment(string value) Adds an XML comment node. (Inherited from XDoc)
    Public ConditionalComment(string condition, XDoc contents) Adds a conditional XML comment node. (Inherited from XDoc)
    Public End() Ends a child element. (e.g. </foo>) (Inherited from XDoc)
    Public EndAll() Ends all child elements until the root XDoc instance is reached. (Inherited from XDoc)
    Public Remove() Removes this XDoc instance from the containing document. (Inherited from XDoc)
    Public RemoveAttr(string name) Removes an attriute. (Inherited from XDoc)
    Public RemoveAll() Removes all XDoc instances in current selection. (Inherited from XDoc)
    Public RemoveNodes() Removes all child nodes. (Inherited from XDoc)
    Public Replace(XDoc doc) Replaces this XDoc instance with another one. (Inherited from XDoc)
    Public ReplaceWithNodes(XDoc doc) Replaces this XDoc instance with the child nodes of another one. (Inherited from XDoc)
    Public Replace(string value) Replaces this XDoc instance with a text node. (Inherited from XDoc)
    Public Replace(DateTime value) Replaces this XDoc instance with a text node. (Inherited from XDoc)
    Public Replace(Byte[] value) Replaces this XDoc instance with a text node. (Inherited from XDoc)
    Public Replace(object value) Replaces this XDoc instance with a text node. (Inherited from XDoc)
    Public Rename(string name) Change the name of the current element node. (Inherited from XDoc)
    Public AddNodesInFront(XDoc doc) Prepend child nodes from another XDoc instance. (Inherited from XDoc)
    Public AddNodesBefore(XDoc doc) Add child nodes from another XDoc instance before this one. (Inherited from XDoc)
    Public AddNodesAfter(XDoc doc) Add child nodes from another XDoc instance after this one. (Inherited from XDoc)
    Public AddNodes(XDoc doc) Adds child nodes from another XDoc instance. (Inherited from XDoc)
    Public Add(XDoc doc) Adds an XDoc instance. (Inherited from XDoc)
    Public AddAfter(string value) Adds a value after this XDoc instance. (Inherited from XDoc)
    Public AddAfter(DateTime value) Adds a value after this XDoc instance. (Inherited from XDoc)
    Public AddAfter(bool value) Adds a value after this XDoc instance. (Inherited from XDoc)
    Public AddAfter(Byte[] value) Adds a value after this XDoc instance. (Inherited from XDoc)
    Public AddAfter(XUri value) Adds a value after this XDoc instance. (Inherited from XDoc)
    Public AddAfter(object value) Adds a value after this XDoc instance. (Inherited from XDoc)
    Public AddAfter(XDoc doc) Adds an XDoc instance after this one. (Inherited from XDoc)
    Public AddBefore(string value) Adds a value before this XDoc instance. (Inherited from XDoc)
    Public AddBefore(DateTime value) Adds a value before this XDoc instance. (Inherited from XDoc)
    Public AddBefore(bool value) Adds a value before this XDoc instance. (Inherited from XDoc)
    Public AddBefore(Byte[] value) Adds a value before this XDoc instance. (Inherited from XDoc)
    Public AddBefore(XUri value) Adds a value before this XDoc instance. (Inherited from XDoc)
    Public AddBefore(object value) Adds a value before this XDoc instance. (Inherited from XDoc)
    Public AddBefore(XDoc doc) Adds an XDoc instance before this one. (Inherited from XDoc)
    Public AddAll(XDoc doc) Adds all XDoc instances in selection to this one. (Inherited from XDoc)
    Public AddAllBefore(XDoc doc) Adds all XDoc instances in selection before this one. (Inherited from XDoc)
    Public AddAllAfter(XDoc doc) Adds all XDoc instances in selection after this one. (Inherited from XDoc)
    Public AddAll(IEnumerable<XDoc> collection) Adds all XDoc instances in collection to this one. (Inherited from XDoc)
    Public GetContentsAsStrings() Returns the contents text for each XDoc instance in the selection. (Inherited from XDoc)
    Public ForEach(Action<XDoc> call) Invokes the given method for each XDoc instance in the selection. (Inherited from XDoc)
    Public Sort(Comparison<XDoc> comparer) Sorts the child elements using the given comparer. (Inherited from XDoc)
    Public Filter(Predicate<XDoc> filter) Filters the child nodes using the given filter. (Inherited from XDoc)
    Public UsePrefix(string prefix, string namespace) Adds prefix-namespace combination to the XML namespace manager. (Inherited from XDoc)
    Public WithXslTransform(string href) Adds an XML stylesheet processing node. (Inherited from XDoc)
    Public TransformAsText(XslCompiledTransform xslt) Converts this XDoc instance into a string using the given XSLT. (Inherited from XDoc)
    Public TransformAsXml(XslCompiledTransform xslt) Converts this XDoc instance into a new XDoc instances using the givne XSLT. (Inherited from XDoc)
    Public Save(string filename) Stores this XDoc instance into a file. (Inherited from XDoc)
    Public ToXml() Creates a copy as an XmlDocument instance. (Inherited from XDoc)
    Public ToXHtml() Renders the XDoc instance using XHTML entities. (Inherited from XDoc)
    Public ToInnerXHtml() Renders the XDoc instance using XHTML entities, but omitting the outermost element. (Inherited from XDoc)
    Public ToObject(XmlSerializer serializer) Converts the XDoc instance into an object instance using the given XmlSerializer instance. (Inherited from XDoc)
    Public ToString() Renders the XDoc instance as an XML document using UTF-8 encoding. (Inherited from XDoc)
    Public ToString(Encoding encoding) Renders the XDoc instance as an XML document using the given encoding. (Inherited from XDoc)
    Public ToString(Encoding encoding, bool declaration) Renders the XDoc instance as an XML document using the given encoding. (Inherited from XDoc)
    Public WriteTo(Stream stream) Renders the XDoc instance as an XML document using UTF-8 encoding. (Inherited from XDoc)
    Public WriteTo(Stream stream, Encoding encoding) Renders the XDoc instance as an XML document using the given encoding. (Inherited from XDoc)
    Public WriteTo(Stream stream, Encoding encoding, bool declaration) Renders the XDoc instance as an XML document using the given encoding. (Inherited from XDoc)
    Public ToPrettyString() Renders the XDoc instance as an indented XML document using UTF-8 encoding. (Inherited from XDoc)
    Public ToList() Converts the XDoc selection into a list of XDoc instances. (Inherited from XDoc)
    Public ToBytes() Converts the XDoc instance into a byte array using UTF-8 encoding. (Inherited from XDoc)
    Public ToBytes(Encoding encoding) Converts the XDoc instance into a byte array using the given encoding. (Inherited from XDoc)
    Public ToKeyValuePairs() Converts the XDoc instance into an array of XPath expressions and text values. (Inherited from XDoc)
    Public Equals(object other) Compares this XDoc instance to another one. (Inherited from XDoc)
    Public GetHashCode() Computes the hashcode. (Inherited from XDoc)
    Public Sign(RSACryptoServiceProvider rsa) Append XML digital signature to XDoc instance. (Inherited from XDoc)
    Public HasValidSignature(RSACryptoServiceProvider rsa) Check if XDoc instance has an XML digital signature. (Inherited from XDoc)
    Public Unsign() Remove XML digital signature from XDoc instance. (Inherited from XDoc)
    Public ReverseList() Return a new selection in reverse order. (Inherited from XDoc)
    Protected Initialize(XmlDocument doc, XmlNode[] list, int index, XmlNode root, XmlNamespaceManager nsManager) Protected initializer for XDoc inheritors for setting the state of an existing instance. (Inherited from XDoc)
    Public AtPath(string path, XmlNamespaceManager namespaces) Returns a new rooted XDoc instance based on the supplied XPath. The selection starts at the given index position. (Inherited from XDoc)
    Public As() Returns XDoc contents converted into given type. (Inherited from XDoc)
    Public HasName(string name) Check the element/attribute name of the current XDoc. (Inherited from XDoc)
    Public HasName(string name, string namespaceUri) Check the element/attribute name of the current XDoc. (Inherited from XDoc)
    Public Clone() Returns a deep clone of the XDoc instance starting at the root XDoc instance. (Inherited from XDoc)
    Public MarkExclusive() Mark the current XDoc instance as exclusive. This will skip the next Clone() operation when it occurs. (Inherited from XDoc)
    Public Copy() Returns a shallow copy of current XDoc instance. (Inherited from XDoc)
    Public AtPosition(int index) Returns the XDoc instance at the index position in the selection. (Inherited from XDoc)
    Public Attr(string tag, string value) Add an attribute to the XDoc instance. (Inherited from XDoc)
    Public Attr(string tag, string namespaceUri, string value) Add an attribute to the XDoc instance. (Inherited from XDoc)
    Public Attr(string tag, XUri value) Add an attribute to the XDoc instance. (Inherited from XDoc)
    Public Attr(string tag, int value) Add an attribute to the XDoc instance. (Inherited from XDoc)
    Public Attr(string tag, uint value) Add an attribute to the XDoc instance. (Inherited from XDoc)
    Public Attr(string tag, long value) Add an attribute to the XDoc instance. (Inherited from XDoc)
    Public Attr(string tag, ulong value) Add an attribute to the XDoc instance. (Inherited from XDoc)
    Public Attr(string tag, float value) Add an attribute to the XDoc instance. (Inherited from XDoc)
    Public Attr(string tag, double value) Add an attribute to the XDoc instance. (Inherited from XDoc)
    Public Attr(string tag, DateTime value) Add an attribute to the XDoc instance. (Inherited from XDoc)
    Public Attr(string tag, bool value) Add an attribute to the XDoc instance. (Inherited from XDoc)
    Public Start(string tag) Starts a new child element. (e.g. <foo>) (Inherited from XDoc)
    Public Start(string tag, string namespaceUri) Starts a new child element. (e.g. <foo>) (Inherited from XDoc)
    Public Elem(string tag) Adds a complete child element. (Inherited from XDoc)
    Public Elem(string tag, string value) Adds a complete child element. (Inherited from XDoc)
    Public Elem(string tag, DateTime value) Adds a complete child element. (Inherited from XDoc)
    Public Elem(string tag, Byte[] value) Adds a complete child element. (Inherited from XDoc)
    Public Elem(string tag, XUri value) Adds a complete child element. (Inherited from XDoc)
    Public Elem(string tag, object value) Adds a complete child. (Inherited from XDoc)
    Public Value(string value) Adds a text node. (Inherited from XDoc)
    Public Value(DateTime value) Adds a text node. (Inherited from XDoc)
    Public Value(bool value) Adds a text node. (Inherited from XDoc)
    Public GetType() (Inherited from Object)
    Protected MemberwiseClone() (Inherited from Object)
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by