RestRequest.ExecuteXmlAsync

Overview

Executes the request and returns the result as Xml node asynchronously.

Promise<Xml> myRestRequest.ExecuteXmlAsync()

Remarks

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

Example

var client = $Rest.Create('http://targetserver'); var request = client.Request(); request.AddParameter('x', 1); request.ExecuteJsonAsync().then(function(result) { // .. });

Copyright © 2010 - 2023 Emakin. All rights reserved.