Esempio n. 1
0
        /// <summary>
        /// retrieve the next batch of list items and if there are more items to retrieve
        ///
        /// </summary>
        /// <param name="service">Instance of MarketplaceWebService service</param>
        /// <param name="request">GetReportScheduleListByNextTokenRequest request</param>
        public static async Task InvokeGetReportScheduleListByNextToken(MarketplaceWebService service, GetReportScheduleListByNextTokenRequest request)
        {
            try
            {
                GetReportScheduleListByNextTokenResponse response = await service.GetReportScheduleListByNextToken(request);


                Console.WriteLine("Service Response");
                Console.WriteLine("=============================================================================");
                Console.WriteLine();

                Console.WriteLine("        GetReportScheduleListByNextTokenResponse");
                if (response.IsSetGetReportScheduleListByNextTokenResult())
                {
                    Console.WriteLine("            GetReportScheduleListByNextTokenResult");
                    GetReportScheduleListByNextTokenResult getReportScheduleListByNextTokenResult = response.GetReportScheduleListByNextTokenResult;
                    if (getReportScheduleListByNextTokenResult.IsSetNextToken())
                    {
                        Console.WriteLine("                NextToken");
                        Console.WriteLine("                    {0}", getReportScheduleListByNextTokenResult.NextToken);
                    }
                    if (getReportScheduleListByNextTokenResult.IsSetHasNext())
                    {
                        Console.WriteLine("                HasNext");
                        Console.WriteLine("                    {0}", getReportScheduleListByNextTokenResult.HasNext);
                    }
                    List <ReportSchedule> reportScheduleList = getReportScheduleListByNextTokenResult.ReportSchedule;
                    foreach (ReportSchedule reportSchedule in reportScheduleList)
                    {
                        Console.WriteLine("                ReportSchedule");
                        if (reportSchedule.IsSetReportType())
                        {
                            Console.WriteLine("                    ReportType");
                            Console.WriteLine("                        {0}", reportSchedule.ReportType);
                        }
                        if (reportSchedule.IsSetSchedule())
                        {
                            Console.WriteLine("                    Schedule");
                            Console.WriteLine("                        {0}", reportSchedule.Schedule);
                        }
                        if (reportSchedule.IsSetScheduledDate())
                        {
                            Console.WriteLine("                    ScheduledDate");
                            Console.WriteLine("                        {0}", reportSchedule.ScheduledDate);
                        }
                    }
                }
                if (response.IsSetResponseMetadata())
                {
                    Console.WriteLine("            ResponseMetadata");
                    ResponseMetadata responseMetadata = response.ResponseMetadata;
                    if (responseMetadata.IsSetRequestId())
                    {
                        Console.WriteLine("                RequestId");
                        Console.WriteLine("                    {0}", responseMetadata.RequestId);
                    }
                }

                Console.WriteLine("            ResponseHeaderMetadata");
                Console.WriteLine("                RequestId");
                Console.WriteLine("                    " + response.ResponseHeaderMetadata.RequestId);
                Console.WriteLine("                ResponseContext");
                Console.WriteLine("                    " + response.ResponseHeaderMetadata.ResponseContext);
                Console.WriteLine("                Timestamp");
                Console.WriteLine("                    " + response.ResponseHeaderMetadata.Timestamp);
            }
            catch (MarketplaceWebServiceException ex)
            {
                Console.WriteLine("Caught Exception: " + ex.Message);
                Console.WriteLine("Response Status Code: " + ex.StatusCode);
                Console.WriteLine("Error Code: " + ex.ErrorCode);
                Console.WriteLine("Error Type: " + ex.ErrorType);
                Console.WriteLine("Request ID: " + ex.RequestId);
                Console.WriteLine("XML: " + ex.XML);
                Console.WriteLine("ResponseHeaderMetadata: " + ex.ResponseHeaderMetadata);
            }
        }
 /// <summary>
 /// Get Report Schedule List By Next Token
 /// </summary>
 /// <param name="request">Get Report Schedule List By Next Token  request</param>
 /// <returns>Get Report Schedule List By Next Token  Response from the service</returns>
 /// <remarks>
 /// retrieve the next batch of list items and if there are more items to retrieve
 ///
 /// </remarks>
 public GetReportScheduleListByNextTokenResponse GetReportScheduleListByNextToken(GetReportScheduleListByNextTokenRequest request)
 {
     return(Invoke <GetReportScheduleListByNextTokenResponse>("GetReportScheduleListByNextTokenResponse.xml"));
 }
Esempio n. 3
0
 /// <summary>
 /// Get Report Schedule List By Next Token
 /// </summary>
 /// <param name="request">Get Report Schedule List By Next Token  request</param>
 /// <returns>Get Report Schedule List By Next Token  Response from the service</returns>
 /// <remarks>
 /// retrieve the next batch of list items and if there are more items to retrieve
 ///
 /// </remarks>
 public async Task <GetReportScheduleListByNextTokenResponse> GetReportScheduleListByNextToken(GetReportScheduleListByNextTokenRequest request)
 {
     return(await Invoke <GetReportScheduleListByNextTokenResponse>("GetReportScheduleListByNextTokenResponse.xml"));
 }