I've created a Search-Request to the amazon product API but it's response is empty. Can you give me a hint what's wrong with my code?
Code:
String awsAccessKeyID = "<AWS-KEY>";
String test = "<ASSOCIATE-TAG>";
AWSECommerceService service = new AWSECommerceService();
service.setHandlerResolver(new AwsHandlerResolver("<SECRET-KEY>"));
AWSECommerceServicePortType port = service.getAWSECommerceServicePort();
ItemSearch ItemSearch = new ItemSearch();
ItemSearch.setAWSAccessKeyId(awsAccessKeyID);
ItemSearch.setAssociateTag(test);
ItemSearchRequest SearchRequest = new ItemSearchRequest();
java.util.List<ItemSearchRequest> list = ItemSearch.getRequest();
list.add(SearchRequest);
SearchRequest.setSearchIndex("All");
SearchRequest.setKeywords("nas");
ItemSearch.getRequest().add(SearchRequest);
ItemSearch.setMarketplaceDomain("https://ecs.amazonaws.de/onca/xml?Service=AWSECommerceService");
SearchRequest.getResponseGroup().add("Large");
Holder<OperationRequest> operationrequest = new Holder<OperationRequest>();
Holder<java.util.List<Items>> items = new Holder<java.util.List<Items>>();
port.itemSearch(ItemSearch.getMarketplaceDomain(), ItemSearch.getAWSAccessKeyId(), ItemSearch.getAssociateTag(), ItemSearch.getXMLEscaping(), "True", ItemSearch.getShared(), ItemSearch.getRequest(), operationrequest, items);
java.util.List<Items> result = items.value;
System.out.println(result);
The ResultSet is still empty but no errors occured....