Page tree
Skip to end of metadata
Go to start of metadata

Overview

XmlNode RestRequest.ExecuteXml ( [ contextNode ] )

Executes the request and returns the result as Xml node. 

Arguments

XmlNode contextNode

 Instance of xml node to use as context to reference namespace and schema set. This parameter is optional.

Remarks

  • Unlike RestRequest.Execute method this method verifes the server status code is returned as OK ( HTTP 200 ). If not exception is thrown.

Examples

var client = $Rest.Create('http://targetserver');

var request = client.Request();
   
request.AddParameter('x', 1);

var result = request.ExecuteXml();

 

See Also