Rolcore.Net.WebMethods.WebMethodsHtmlResponseObject.WebMethodsHtmlResponseObject C# (CSharp) Method

WebMethodsHtmlResponseObject() public method

Construcor. Creates the psuedo object hierarchy based on a response from WebMethods.
public WebMethodsHtmlResponseObject ( string htmlResponse ) : System
htmlResponse string The response from WebMethods to interpret.
return System
        public WebMethodsHtmlResponseObject(string htmlResponse)
        {
            if (string.IsNullOrEmpty(htmlResponse))
                throw new ArgumentException("htmlResponse is null or empty.", "htmlResponse");

            string xml = HtmlUtils.QuoteAllHtmlTagAttributes(htmlResponse); // Webmethods does not produce valid HTML
            this._Xml.LoadXml(xml);
            if (this.IsExceptionResponse)
                throw WebMethodsHtmlResponseException.Create(this);
        }