[wsf-c-dev] Amazon web services solution using wsclient
Dimuthu Gamage
dimuthu at wso2.com
Mon Feb 18 21:57:33 PST 2008
Damitha Kumarage wrote:
>
> Samisa Abeysinghe wrote:
>
>> Is this implemented as a shell script?
>
> Yes
>
>>
>> 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.
>
> A solution where user search items, then lookup for some interested
> items and then add it to the cart for billing scenario is a fine place
> to start with.
Yea, I was able to create a working demonstration site for online
shopping with Amazon, just using
ItemSearch, ItemLookup,
CartCreate, CartModify, CartClear, and other cart operations..
I think operation related to 'Seller's are not much important in to a
simple use case.
Thanks
Dimuthu
> Damitha
>
>>
>> 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
>>>
>>>
>>
>>
>> _______________________________________________
>> Wsf-c-dev mailing list
>> Wsf-c-dev at wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev
>>
>
>
> _______________________________________________
> 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