Forum OpenACS Development: Google Web Services & OpenACS
I was thinking to create an openacs service which will use TclSOAP / XML access the google web service API, and that can be used by any package ?
Some uses i have thought of could be: - Use with basic site search function in openacs - a user defining a set of keywords for a web site that can be outputted as links to google search results automatically?
If any1 has any ideas (please) let me know. Also i am pretty new to OpenACS & tcl, so if anyone knows of anywhere i can find more information it would be much appreciated.
Thanks in advance :)
Have you looked at Larsblogger, and the way it connects into Google.
I think then Google webservices would be only one application of such a feature.
Just my two cents :)
what do openACS developers currently use to do SOAPS calls? should i look at tcl soap http://tclsoap.sourceforge.net/ ?
To implement the simple HTTP transport layer for SOAP you could use TclSOAP (again with the caveat that I haven't used it myself) or Tcl + tDOM and start something there yourself. Probably in the timeframe you are mentioning it won't be easy to recreate the wheel :)
The idea would be to create service whereby users can pick a term and choose to have the results delivered on a user-configurable timed basis (e.g., hourly, daily, etc.) to a portlet, an RSS feed, an email alert, or any combination thereof. You'd have to think a bit about how to make the interface intuitive, but OpenACS needs to solve this problem anyway. Plus, if you did it right, the portlet interface could lay the groundwork for a more general RSS aggregator module.
Take a look at tDOM as an XML parser, which the community is moving to en masse. It should be a strong foundation upon which to build an XMLRPC/SOAP interface.
Others can speak to this more completely, though.
Just do package require SOAP when you need to call it.
It won't use the AOLserver http transport but it should get the job done.
I have created several web services using as a starting point the excellent soap-gateway package made by William Byrne (thank you William!).
The soap-gateway package makes the creation and publishing of web services very easy, but you'll have to write your own procs to invoke a web service from Aolserver (I could provide a working example).
The soap-gateway package internally uses ns_xml, but I suggest that you use tdom as the preferred xml parser in your tcl scripts.
Larsblogger is one of the ACS modules. http://openacs.org/forums/message-view?message_id=50217
Can you change your topic?
It might be very nice, as an ecommerce alternative, to have OACS modules that hook into the Amazon catalog, store, and distribution mechanisms.
Why Amazon and not google: Amazon has opened a lot more functions. For example, a useful google api, that does not appear to exist, would allow me to manage my adwords at google (it would be nice to have an OACS module that crawls my web log and search term queries and manages adwords at google). At Amazon, you can link to their stuff, find content at amazon, sell stuff through amazon, and on and on. (It's almost as though they wished to make money from this...)
So in addition to running google ads on your forum pages that find ads based on the topic, you could write an Amazon API that would find products at Amazon related to your topic. And then your portlet could create ads on the fly linking your site to Amazon for those products. And your ad could include bookcovers, album covers, or any amazon product art to post alongside the forum with all the image hosting paid for by Amazon.