Amazon product ad API mismatching documentation (Java)?

Hello everyone, question. I am using the tutorial for the Amazon product advertising API ( here ) for Java. I created the client code through the WSDL that they provide. When you look at ItemLookup code, I get to the section where I refer to AWSECommerceServicePortType.itemLookup (), passing the ItemLookup object, I get a compilation error. It seems that .itemLookup () is actually looking for quite a few parameters - in other words, the method signature does not match the tutorial. What am I missing? Thanks in advance!

+3
source share
1 answer

To generate client advertisement library stubs

1. , , "build" "src". "src".

2. "Wrapper Style".

<jaxws:bindings
wsdlLocation="http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws">
<jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle>

, IDE .

3. :

wsimport -d ./build -s ./src -p com.ECS.client.jax http://ecs.amazonaws.com/AWSECommerceService/AWSECommerceService.wsdl -b jaxws-custom.xml .

, com.ECS.client.jax.

(. 10 pdf)

+2

Source: https://habr.com/ru/post/1786786/


All Articles