与造波和亚马逊商品广告API的经验吗? [英] Experience with wavemaker and amazon Product Advertising API?

查看:320
本文介绍了与造波和亚马逊商品广告API的经验吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的为本研究但随着它的发展似乎很简单。

I am new to wavemaker but the development with it seems to be straightforward.

我试图调用一些调用亚马逊商品广告API(使用SOAP),但没有奏效。这个问题似乎是,每一个电话都必须签署(例如见此处的http://www.mularien.com/blog/2009/08/13/tutorial-amazon-soap-product-advertising...)

I tried to invoke some calls to the amazon Product Advertising API (with SOAP) but it didn't work. The problem seems to be that every call has to be signed (see e.g. here: http://www.mularien.com/blog/2009/08/13/tutorial-amazon-soap-product-advertising...)

这似乎使所有的努力真的很沉重的负担。有没有人做到了这一点,并成功列入该API变成造波的应用? (使用REST的例子,当然也欢迎)

This seems to render the whole endeavor really burdensome. Has anyone done this and successfully included this API into a wavemaker application? (examples with REST are of course also welcome).

非常感谢你!

推荐答案

签名要求也确实复杂了整个事情。

The signing requirement does really complicate the whole thing.

,您可以使用mularien例如code作为Java服务。

Instead of importing the WSDL into WaveMaker and using the WaveMaker generated client, you can use the mularien example code as a java service.

生成下面的例子中,客户端并添加JAR和类到项目的类路径。 添加Java服务,让您为本研究项目。
在Java服务,任何/所有的公共方法都暴露给浏览器客户端。 所以,如果你com.mularien.amazon.AmazonProductSearch是你的java服务类,getAmazonInfo(字符串)将调用客户端。

Generate the client following the example and add the jars and classes to your project classpath. Add a java service to your WaveMaker project.
In the java service, any/all public methods are exposed to the browser client. So if you com.mularien.amazon.AmazonProductSearch is your java service class, getAmazonInfo(String) would be callable by the client.

,用你的Java服务类作为一个经理。例如,您可能希望只返回一组Item_type3子。一个包装/经理类的客户端和AmazonProductSearch之间的项目服务可以提供。

Alternatively, instead of directly exposing the AmazonProductSearch functions, use your java service class as a manager. For example, you might want to return only a sub set of Item_type3. A wrapper/manager class as a your project service between the client and AmazonProductSearch can provide that.

这篇关于与造波和亚马逊商品广告API的经验吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆