[wsf-c-dev] Amazon web services solution using wsclient

Samisa Abeysinghe samisa at wso2.com
Mon Feb 18 18:51:15 PST 2008


Is this implemented as a shell script?

For the first version, rather than implementing all operations, I would 
like t purpose that we implement a scenario that demonstrate a complete 
start to end scenario. Dimuthu, you have worked with this interface, can 
you suggest such a scenario, I saw one in your Amazon article.

Samisa...

Damitha Kumarage wrote:
> 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
>
>
>
>
> _______________________________________________
> Wsf-c-dev mailing list
> Wsf-c-dev at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev
>
>




More information about the Wsf-c-dev mailing list