============================================================================ OW2 FraSCAti Examples: Twitter and Weather Orchestration Copyright (C) 2009-2010 INRIA, University of Lille 1 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Contact: frascati@ow2.org ============================================================================ Twitter and Weather Orchestration Client: ----------------------------------------- This example shows how to orchestrate the Twitter RESTful service with the Weather Web service. The orchestration component retrieves the city name of a given Twitter user, then calls the Weather service for the user city. The twitter-weather SCA composite also exposes its orchestration as an SCA service, using two different protocols: SOAP and RESTful. This example also embeds a backup component (wunderground) for the weather service and a non functional component (log). A reconfiguration script (myreconfig.fscript) is also available to switch from the default weather service to the wunderground weather service. Requirements: ------------- JDK >= 1.6 Compilation and execution with the FraSCAti script: --------------------------------------------------- frascati wsdl2java -u http://www.webservicex.net/globalweather.asmx?wsdl -o src/generated ./compile src myWeather (don't forget to set the FRASCATI_HOME environment variable) frascati run myWeather -libpath myWeather.jar -s tw -m getWeatherForUser Test the service with a SOAP client: ------------------------------------ Run myWeather service in background with: frascati run myWeather -libpath myWeather.jar Use your SOAP client (soapUI for instance) to call the service.