Ejemplo n.º 1
0
		public void GetFeedSubmissionResultTest()
		{
			MarketplaceWebServiceConfig config = new MarketplaceWebServiceConfig();
			config.ServiceURL = serviceURL;

			MarketplaceWebService.MarketplaceWebService service =
				new MarketplaceWebServiceClient(
					creds.AccessKey,
					creds.SecretKey,
					appName,
					appVersion,
					config);

			GetFeedSubmissionResultRequest req = new GetFeedSubmissionResultRequest();
			req.MWSAuthToken = mWSAuthToken;
			req.Merchant = sellerId;
			req.FeedSubmissionId = "50014017726";


			//50003017583
			//50002017580
			var response = service.GetFeedSubmissionResultAmazonEnvelope(req);

			Console.WriteLine(response.Message.First().ProcessingReport.ProcessingSummary.MessagesSuccessful);
			Console.WriteLine(response.Message.First().ProcessingReport.ProcessingSummary.MessagesWithError);


			if (response.Message.First().ProcessingReport.Result != null)
			{
				Console.WriteLine(response.Message.First().ProcessingReport.Result.ResultCode);
				Console.WriteLine(response.Message.First().ProcessingReport.Result.ResultMessageCode);
				Console.WriteLine(response.Message.First().ProcessingReport.Result.ResultDescription);
			}
		}