Example #1
0
        /// <summary>
        /// Head (HEAD) an individual resource or all resources of a type, URL version
        /// </summary>
        /// <param name="url">Full URL for the HEAD request to the Web Service</param>
        /// <returns>Header from Web Service's response</returns>
        public async Task <string> HeadWithUrl(string url)
        {
            RequestResponse response = await Execute(url, "HEAD");

            return(response.Header);
        }
Example #2
0
        /// <summary>
        /// Edit (PUT) a resource, URL version
        /// </summary>
        /// <param name="url">A URL which explicitly sets the resource type and ID to edit</param>
        /// <param name="xml">Modified XML of the resource</param>
        public async Task <XElement> EditWithUrl(string url, XElement xml)
        {
            RequestResponse response = await Execute(url, "PUT", xml.Document);

            return(Parse(response.Data));
        }
Example #3
0
        /// <summary>
        /// Retrieve (GET) a resource, URL version
        /// </summary>
        /// <param name="url">A URL which explicitly sets the resource type and ID to retrieve</param>
        /// <returns>XML response from the Web Service</returns>
        public async Task <XElement> GetWithUrl(string url)
        {
            RequestResponse response = await Execute(url, "GET");

            return(Parse(response.Data));
        }