Intellij에있는 Amazon WSDL에서 Java 코드를 생성했습니다 (here). 그것은 위대한 일을 한 것으로 보입니다. 그러나, this page에서 찾은 튜토리얼을 따라 문제가 발생했습니다. 자바 코드의 마지막 줄은 AWSECommerceServicePortType 클래스에서 itemSearch 메서드를 호출합니다. 그 방법에 대해 생성 된 유일한 방법 설명 그것은 컴파일 할 때 난 그냥 일이 예에서 수행하고 제공하고 오류보다 더 많은 매개 변수를 전달해야WSDL, Intellij에서 Amazon API SOAP 코드 생성
@WebMethod(operationName = "ItemSearch", action = "http://soap.amazon.com/ItemSearch")
@RequestWrapper(localName = "ItemSearch", targetNamespace = "http://webservices.amazon.com/AWSECommerceService/2011-08-01", className = "com.shopit.amazon.ItemSearch")
@ResponseWrapper(localName = "ItemSearchResponse", targetNamespace = "http://webservices.amazon.com/AWSECommerceService/2011-08-01", className = "com.shopit.amazon.ItemSearchResponse")
public void itemSearch(
@WebParam(name = "MarketplaceDomain", targetNamespace = "http://webservices.amazon.com/AWSECommerceService/2011-08-01")
String marketplaceDomain,
@WebParam(name = "AWSAccessKeyId", targetNamespace = "http://webservices.amazon.com/AWSECommerceService/2011-08-01")
String awsAccessKeyId,
@WebParam(name = "AssociateTag", targetNamespace = "http://webservices.amazon.com/AWSECommerceService/2011-08-01")
String associateTag,
@WebParam(name = "XMLEscaping", targetNamespace = "http://webservices.amazon.com/AWSECommerceService/2011-08-01")
String xmlEscaping,
@WebParam(name = "Validate", targetNamespace = "http://webservices.amazon.com/AWSECommerceService/2011-08-01")
String validate,
@WebParam(name = "Shared", targetNamespace = "http://webservices.amazon.com/AWSECommerceService/2011-08-01")
ItemSearchRequest shared,
@WebParam(name = "Request", targetNamespace = "http://webservices.amazon.com/AWSECommerceService/2011-08-01")
List<ItemSearchRequest> request,
@WebParam(name = "OperationRequest", targetNamespace = "http://webservices.amazon.com/AWSECommerceService/2011-08-01", mode = WebParam.Mode.OUT)
Holder<OperationRequest> operationRequest,
@WebParam(name = "Items", targetNamespace = "http://webservices.amazon.com/AWSECommerceService/2011-08-01", mode = WebParam.Mode.OUT)
Holder<List<Items>> items);
했다. Java 코드를 생성 할 때 다른 설정을 사용해야합니까?
는 는
에 대한 아마존 - ecs.jar을 사용할 수 있습니다 Amazon Product Advertising SDK가 포함되어 있습니다. – mfrancis107
죄송합니다. 나는 몰랐습니다. –