BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport); binding.MaxReceivedMessageSize = int.MaxValue; binding.ReaderQuotas.MaxStringContentLength = int.MaxValue; AWSECommerceServicePortTypeClient client = new AWSECommerceServicePortTypeClient(binding, new EndpointAddress("https://webservices.amazon.com/onca/soap?Service=AWSECommerceService")); client.ChannelFactory.Endpoint.Behaviors.Add(new Simple.AmazonSigningEndpointBehavior(Common.accessKeyId, Common.secretKey)); //string[] dd = "Offers"; // prepare an ItemSearch request string val = string.Empty; ItemSearchRequest request = new ItemSearchRequest(); request.BrowseNode = catid; //request.Condition = "New"; request.SearchIndex = "KindleStore"; ItemSearch itemSearch = new ItemSearch(); itemSearch.Request = new ItemSearchRequest[] { request }; itemSearch.AWSAccessKeyId = Common.accessKeyId; itemSearch.AssociateTag = Common.associateTag; //itemSearch.MarketplaceDomain = "www.amazonsupply.com"; request.ResponseGroup = new string[] { "Request,Large" }; ItemSearchResponse response = client.ItemSearch(itemSearch);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)