Class XmlRpcResponse
Represents the response to an XML remote procedure call.
Inheritance
Implements
Inherited Members
Namespace: Argotic.Net
Assembly: Argotic.Core.dll
Syntax
[Serializable]
public class XmlRpcResponse : IComparable
Examples
Constructors
| Improve this Doc View SourceXmlRpcResponse()
Initializes a new instance of the XmlRpcResponse class.
Declaration
public XmlRpcResponse()
XmlRpcResponse(IXmlRpcValue)
Initializes a new instance of the XmlRpcResponse class using the supplied IXmlRpcValue.
Declaration
public XmlRpcResponse(IXmlRpcValue parameter)
Parameters
Type | Name | Description |
---|---|---|
IXmlRpcValue | parameter | A IXmlRpcValue that represents the response value that was returned for the remote procedure call. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
XmlRpcResponse(XmlRpcStructureValue)
Initializes a new instance of the XmlRpcResponse class using the supplied XmlRpcStructureValue.
Declaration
public XmlRpcResponse(XmlRpcStructureValue fault)
Parameters
Type | Name | Description |
---|---|---|
XmlRpcStructureValue | fault | A XmlRpcStructureValue that represents the response to the remote procedure call. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
XmlRpcResponse(Int32, String)
Initializes a new instance of the XmlRpcResponse class using the supplied fault code and message.
Declaration
public XmlRpcResponse(int faultCode, string faultMessage)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | faultCode | Machine-readable code that identifies the reason the remote procedure call failed. |
System.String | faultMessage | Human-readable information about the reason the remote procedure call failed. |
XmlRpcResponse(WebResponse)
Initializes a new instance of the XmlRpcResponse class using the supplied System.Net.WebResponse.
Declaration
public XmlRpcResponse(WebResponse response)
Parameters
Type | Name | Description |
---|---|---|
System.Net.WebResponse | response | A System.Net.WebResponse object that represents the XML-RPC server's response to the remote procedure call. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.ArgumentException | The |
System.ArgumentException | The |
System.Xml.XmlException | The |
Properties
| Improve this Doc View SourceFault
Gets the fault information that was returned for the remote procedure call.
Declaration
public XmlRpcStructureValue Fault { get; }
Property Value
Type | Description |
---|---|
XmlRpcStructureValue | A XmlRpcStructureValue that represents the fault information that was returned for the remote procedure call. If the remote procedure call executed without errors, will return null. |
See Also
| Improve this Doc View SourceParameter
Gets the response information that was returned for the remote procedure call.
Declaration
public IXmlRpcValue Parameter { get; }
Property Value
Type | Description |
---|---|
IXmlRpcValue | A IXmlRpcValue that represents the response value that was returned for the remote procedure call. If the remote procedure call raised an execption, will return null and the Fault should be populated. |
See Also
Methods
| Improve this Doc View SourceCompareTo(Object)
Compares the current instance with another object of the same type.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer that indicates the relative order of the objects being compared. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The |
Equals(Object)
Determines whether the specified System.Object is equal to the current instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current instance; otherwise, false. |
Overrides
GetHashCode()
Returns a hash code for the current instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer hash code. |
Overrides
Load(XPathNavigator)
Loads this XmlRpcResponse using the supplied System.Xml.XPath.XPathNavigator.
Declaration
public bool Load(XPathNavigator source)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XPath.XPathNavigator | source | The System.Xml.XPath.XPathNavigator to extract information from. |
Returns
Type | Description |
---|---|
System.Boolean | true if the XmlRpcResponse was initialized using the supplied |
Remarks
This method expects the supplied source
to be positioned on the XML element that represents a XmlRpcResponse.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
ToString()
Returns a System.String that represents the current XmlRpcMessage.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current XmlRpcMessage. |
Overrides
Remarks
This method returns the XML representation for the current instance.
WriteTo(XmlWriter)
Saves the current XmlRpcResponse to the specified System.Xml.XmlWriter.
Declaration
public void WriteTo(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | The System.Xml.XmlWriter to which you want to save. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
Operators
| Improve this Doc View SourceEquality(XmlRpcResponse, XmlRpcResponse)
Determines if operands are equal.
Declaration
public static bool operator ==(XmlRpcResponse first, XmlRpcResponse second)
Parameters
Type | Name | Description |
---|---|---|
XmlRpcResponse | first | Operand to be compared. |
XmlRpcResponse | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the values of its operands are equal, otherwise; false. |
GreaterThan(XmlRpcResponse, XmlRpcResponse)
Determines if first operand is greater than second operand.
Declaration
public static bool operator>(XmlRpcResponse first, XmlRpcResponse second)
Parameters
Type | Name | Description |
---|---|---|
XmlRpcResponse | first | Operand to be compared. |
XmlRpcResponse | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the first operand is greater than the second, otherwise; false. |
Inequality(XmlRpcResponse, XmlRpcResponse)
Determines if operands are not equal.
Declaration
public static bool operator !=(XmlRpcResponse first, XmlRpcResponse second)
Parameters
Type | Name | Description |
---|---|---|
XmlRpcResponse | first | Operand to be compared. |
XmlRpcResponse | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | false if its operands are equal, otherwise; true. |
LessThan(XmlRpcResponse, XmlRpcResponse)
Determines if first operand is less than second operand.
Declaration
public static bool operator <(XmlRpcResponse first, XmlRpcResponse second)
Parameters
Type | Name | Description |
---|---|---|
XmlRpcResponse | first | Operand to be compared. |
XmlRpcResponse | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the first operand is less than the second, otherwise; false. |