[wsf-c-dev] Amazon web services solution using wsclient
Damitha Kumarage
damitha at wso2.com
Fri Feb 22 00:45:13 PST 2008
Hi team,
Before further work on the Amazon ws solution using wsclient I would
like to have your feed back on my current work.
Currrently what it can do is something like this
sh easy_buy_amazon.sh --subscription_id=0EADDHWF3PPVRSMBB2R2
--op=ItemLookup --op_args="ItemId=B00008OE6I ResponseGroup=OfferFull"
There are two kinds of options user can provide; general options and
operation specific options.
--subscription_id is a general option. Item_id is a operation specific
option for the operation ItemLookup. User can use --help to see
available options.
The ultimate goal is, by invoking certain operations as in the above
example in a certain order he can do transaction with Amazon on command
line.
I think a better name for the took is amazon_client.
What is remaining to do is
1. to create the neccessary xml template payloads by looking at amazon wsdl.
2. Write windows bat files for the tool
3. Uploading to the site Dimuthu has implemented for download.
thanks,
Damitha
Dimuthu Gamage wrote:
> 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
>>
>
>
> _______________________________________________
> 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