[wsf-c-dev] Amazon web services solution using wsclient
Damitha Kumarage
damitha at wso2.com
Mon Feb 18 10:58:08 PST 2008
Hi,
I would like to discuss the command line application solution I'm
working on and get your feed back. I would like to name the tool as
easy_buy_amazon.
It is executed with a set of command line options. There is a resource
directory containing a pre-defined set of xml files designed for each
possible transaction with the EWS(Ecommerce Web Service). when user
execute the easy_buy_amazon with the options, the application scripts
internally use sed(or perl) to modify these custom xml payload files
with the user given options.
The operation invoked on the EWS web service falles into three categories
Search
Lookup
Cart
Operations under each category are
Lookup Operations:
* |BrowseNodeLookup|
* |CustomerContentLookup|
* |ItemLookup|
* |ListLookup|
* |SellerLookup|
* |SellerListingLookup|
* |SimilarityLookup|
* |TransactionLookup|
Search Operations:
* |CustomerContentSearch|
* |ItemSearch|
* |ListSearch|
* |SellerListingSearch|
Shopping cart Operations:
* |CartAdd|
* |CartClear|
* |CartCreate|
* |CartGet|
* |CartModify|
--easy_buy_amazon --help
would show the user the common properties and all these avaiable operations.
The common properties are
subscription_id
associate tag
validate
easy_by_amazon --help CartAdd would show all operation specific properties.
An example of use would be
easy_by_amazon --subscription_id xxxxxxxx --op=ItemSearch
--author=Stephen King --locale=uk --total=50 > result
would return get the list of top 50 books by Stephen King on the
Amazon.co.uk site. The resulting xml file is redirected to a file called
result.
Additionally a small program called amazon_result(which is internally
using axiom to parse the result xml file) could be used to parse the
nodes and display the result in plain text.
easy_by_amazon --subscription_id xxxxxxxx --op=item_search
--author=Stephen King --locale=uk --total=50 > result | amazon_result
thanks
Damitha
More information about the Wsf-c-dev
mailing list