文章来源:http://www.samswiches.com/2011/02/how-to-use-amazon-mws-to-download-unshipped-order-reports/
accessKeyId,
secretAccessKey,
applicationName,
applicationVersion,
config);
RequestReportRequest reportRequestRequest = reportRequestRequest.Merchant = merchantId;
reportRequestRequest.Marketplace = marketplaceId;
reportRequestRequest.ReportType =
RequestReportResponse requestResponse = service.RequestReport(reportRequestRequest);
Thread.Sleep(); GetReportListRequest listRequest = listRequest.Merchant = merchantId;
listRequest.Marketplace = marketplaceId;
GetReportListResponse listResponse = service.GetReportList(listRequest);
GetReportListResult getReportListResult = listResponse.GetReportListResult;
List<ReportInfo> reportInfoList = getReportListResult.ReportInfo;
ReportInfo myReportInfo = reportInfoList[];
GetReportRequest reportRequest = reportRequest.Merchant = merchantId;
reportRequest.Marketplace = marketplaceId;
String source = path + reportRequest.ReportId = myReportInfo.ReportId;
reportRequest.Report = File.Open(source, FileMode.Create, FileAccess.ReadWrite);
service.GetReport(reportRequest);
GetReportRequestListRequest reportRequestListRequest = reportRequestListRequest.Marketplace = marketplaceId;
reportRequestListRequest.Merchant = merchantId;
List<ReportRequestInfo> myListzz =
GetReportRequestListResponse reportRequestListResponse = reportRequestListResponse = service.GetReportRequestList(reportRequestListRequest);
GetReportRequestListResult reportRequestListResult = reportRequestListResult = reportRequestListResponse.GetReportRequestListResult;
myListzz = reportRequestListResult.ReportRequestInfo;
].ReportProcessingStatus.ToString() != {
lblStatus.Text = Thread.Sleep();
reportRequestListResponse = service.GetReportRequestList(reportRequestListRequest);
reportRequestListResult = reportRequestListResponse.GetReportRequestListResult;
myListzz = reportRequestListResult.ReportRequestInfo;