コード例 #1
0
        /// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

        public String ToXML() {
            StringBuilder xml = new StringBuilder();
            xml.Append("<GetFeedSubmissionCountResponse xmlns=\"http://mws.amazonaws.com/doc/2009-01-01/\">");
            if (IsSetGetFeedSubmissionCountResult()) {
                GetFeedSubmissionCountResult  getFeedSubmissionCountResult = this.GetFeedSubmissionCountResult;
                xml.Append("<GetFeedSubmissionCountResult>");
                xml.Append(getFeedSubmissionCountResult.ToXMLFragment());
                xml.Append("</GetFeedSubmissionCountResult>");
            } 
            if (IsSetResponseMetadata()) {
                ResponseMetadata  responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            } 
            xml.Append("</GetFeedSubmissionCountResponse>");
            return xml.ToString();
        }
コード例 #2
0
        /// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

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

            xml.Append("<RequestReportResponse xmlns=\"http://mws.amazonaws.com/doc/2009-01-01/\">");
            if (IsSetRequestReportResult())
            {
                RequestReportResult requestReportResult = this.RequestReportResult;
                xml.Append("<RequestReportResult>");
                xml.Append(requestReportResult.ToXMLFragment());
                xml.Append("</RequestReportResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</RequestReportResponse>");
            return(xml.ToString());
        }