Esempio n. 1
0
        /// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

        public String ToXML()
        {
            StringBuilder xml = new StringBuilder();

            xml.Append("<GetServiceStatusResponse xmlns=\"http://mws.amazonservices.com/schema/Products/2011-10-01\">");
            if (IsSetGetServiceStatusResult())
            {
                GetServiceStatusResult getServiceStatusResult = this.GetServiceStatusResult;
                xml.Append("<GetServiceStatusResult>");
                xml.Append(getServiceStatusResult.ToXMLFragment());
                xml.Append("</GetServiceStatusResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</GetServiceStatusResponse>");
            return(xml.ToString());
        }