ExecuteXml¶
Executes the request and returns the response body as an XML node.
1 |
|
Returns¶
The response body as an Xml node.
Remarks¶
Unlike the RestRequest.Execute method, this method verifies that the server's status code is OK (HTTP 200). If not, an exception is thrown.
Example¶
```javascript var client = $Rest.Create('http://targetserver');
var request = client.Request();
request.AddParameter('x', 1);
request.ExecuteJsonAsync().then(function(result) { // .. });