diff options
Diffstat (limited to 'cpp/sca/samples')
321 files changed, 0 insertions, 22403 deletions
diff --git a/cpp/sca/samples/AUTHORS b/cpp/sca/samples/AUTHORS deleted file mode 100644 index e69de29bb2..0000000000 --- a/cpp/sca/samples/AUTHORS +++ /dev/null diff --git a/cpp/sca/samples/AlertAggregator/AlertAggregatorSCADiagram.png b/cpp/sca/samples/AlertAggregator/AlertAggregatorSCADiagram.png Binary files differdeleted file mode 100644 index 4672a5e22e..0000000000 --- a/cpp/sca/samples/AlertAggregator/AlertAggregatorSCADiagram.png +++ /dev/null diff --git a/cpp/sca/samples/AlertAggregator/Makefile.am b/cpp/sca/samples/AlertAggregator/Makefile.am deleted file mode 100644 index 0b39db277d..0000000000 --- a/cpp/sca/samples/AlertAggregator/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/AlertAggregator/deploy -SUBDIRS = sample.alerter sample.display httpserver -EXTRA_DIST = *.composite *.xml README.html -deploy_DATA = *.composite *.xml diff --git a/cpp/sca/samples/AlertAggregator/README b/cpp/sca/samples/AlertAggregator/README deleted file mode 100644 index e605168052..0000000000 --- a/cpp/sca/samples/AlertAggregator/README +++ /dev/null @@ -1,38 +0,0 @@ -Tuscany SCA for C++ Samples - Alert Aggregator Sample -===================================================== - -This is a sample that shows how a Web 2.0-style application can be built using -SCA. The Alert Aggregator Sample aggregates various data sources and presents -a unified view of data from these sources, served as XML and displayed via a -web page - -There are three sub-directories in this workspace: - - sample.alerter - This contains the source code and SCDL artifacts for the Alert - Aggregator. Includes components to retrieve emails from POP servers and - to retrieve items from RSS/Atom feeds, a component that aggregates these - alerts and a component that manages the configuration of which POP accounts - and which RSS feeds to read. - - - sample.display - Contains a single SCA component that provides a HTML display of the - Alert Aggregator data - - - httpserver - Configuration files and scripts to run the sample under Apache HTTPD. Also - includes the HTML file that calls the HTMLDisplay component - - -Additionally, there is the sample.alerter.app.composite file. This -describes the configuration of the Alerter and Display composites deployed to the -SCA runtime. - -This sample requires the following Tuscany extensions: -Python -REST service -REST reference - -It also requires the Python FeedParser library, available from http://feedparser.org/ - - - diff --git a/cpp/sca/samples/AlertAggregator/README.html b/cpp/sca/samples/AlertAggregator/README.html deleted file mode 100644 index 69d5434527..0000000000 --- a/cpp/sca/samples/AlertAggregator/README.html +++ /dev/null @@ -1,263 +0,0 @@ - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../../doc/css/maven-base.css"); -@import url("../../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - Alert Aggregator Sample</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany SCA Native Samples - Alert Aggregator Sample</H1> - - <P>This is a more complex sample that shows how Tuscany and SCA can be used to - develop and run mash-up style web applications.</P> - <P>The Alert Aggregator sample aggregates items of information from various data - sources into a series of "alerts" that are displayed in an - automatically updating web page. Alert sources can currently include RSS/Atom - news feeds and POP3/IMAP email</P> - <P>The Alert Aggregator sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RESTExtension.html">REST Service and Reference Extensions</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </P> - <P>Additionally, the Alert Aggregator sample requires the Python FeedParser library, available from - <A HREF="http://feedparser.org" TARGET="_blank">http://feedparser.org</A>. Please download and - install the library by following the documentation.</P> - <P>There are three sub-projects in this workspace: - <UL> - <LI>sample.alerter<BR/> - This contains the source code and SCDL artifacts for the SCA components - implementing the Alert Aggregator configuration and alert retrieval. - </LI> - <LI>sample.display<BR/> - This contains the source code and SCDL artifacts for the SCA components - implementing the display and storage of the retrieved alerts. - </LI> - <LI>httpserver<BR/> - This contains a minimal configuration for the Apache HTTP server used - to host the services as well as scripts to start and stop the server. - </LI> - </UL> - Additionally, there is the sample.alerter.app.composite file. This - describes the configuration of the SCA composites deployed to the SCA - runtime.</P> - <P>The following SCA diagram shows the different components and composites and how the - wiring between them is specified. Not all of these components are currently - implemented in this sample.</P> - <IMG SRC="AlertAggregatorSCADiagram.png" ALT="Alert Aggregator SCA Diagram"/> - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the Alert Aggregator sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#linuxrun">Running the Alert Aggregator sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#winbld">Building the Alert Aggregator sample on Windows</A></LI> - <LI><A HREF="#winrun">Running the Alert Aggregator sample on Windows</A></LI> - <LI><A HREF="#help">Getting help</A></LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the Alert Aggregator sample on Linux and Mac OS X</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the sample on Linux and Mac OS X</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>As the Alert Aggregator sample is based on Python scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the Python samples only with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure --enable-python --enable-cpp=no --prefix=$TUSCANY_SCACPP/samples</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide the --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/AlertAggregator</LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the Alert Aggregator sample on Linux and Mac OS X</H2></A> - <OL> - <LI>The Alert Aggregator sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RESTExtension.html">REST Service and Reference Extensions</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>The Alert Aggregator sample requires the Python FeedParser library, available from - <A HREF="http://feedparser.org" TARGET="_blank">http://feedparser.org</A>. Please download and - install the library by following the documentation.</LI> - <LI>Start the Apache HTTPD server: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>PYTHON_LIB=<path to the Python library><BR/> - Note: If you are using a default installation of Python 2.5 this is usually /usr/lib</LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>/samples/AlertAggregator/deploy/httpserver</LI> - <LI>./startserver.sh<BR/> - NOTE: Depending on your installation of Apache HTTPD you may need to log in as root before following - these steps. If so, you may also need to uncomment the User and Group directives in the - <tuscany_sca_install_dir>/samples/AlertAggregator/deploy/httpserver/conf/httpd.conf file - and set these to the appropriate username and group that the server should run as</LI> - </OL> - </LI> - <LI>Run the client from your web browser: - <OL> - <LI>Point your browser at <A HREF="http://localhost:9090/index.html" TARGET="_blank">http://localhost:9090/index.html</A><BR/> - NOTE: If plain text is diplayed by your browser, rather than a rendered web page, you may need - to uncomment the LoadModule mime_module directive in the - <tuscany_sca_install_dir>/samples/AlertAggregator/deploy/httpserver/conf/httpd.conf file. Set the correct path to - the mod_mime.so library and restart the server</LI> - <LI>You should see the Alert Aggregator web interface that allows you to: - <UL> - <LI>Read new alerts</LI> - <LI>Update alerts from all sources</LI> - <LI>Update alerts from a specific source</LI> - <LI>Edit the configuration of a data source</LI> - <LI>Add a new RSS/Atom or POP email data source</LI> - <LI>Remove a specific data source and all associated alerts</LI> - </UL> - </LI> - </OL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winbld"><H2>Building the Alert Aggregator sample on Windows</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>\samples - go directly to <A HREF="#winrun">Running the samples on Windows</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>As this sample is based on Ruby scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\AlertAggregator</LI> - <LI>deploy.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winrun"><H2>Running the Alert Aggregator sample on Windows</H2></A> - <OL> - - <LI>The Alert Aggregator sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RESTExtension.html">REST Service and Reference Extensions</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>The Alert Aggregator sample requires the Python FeedParser library, available from - <A HREF="http://feedparser.org" TARGET="_blank">http://feedparser.org</A>. Please download and - install the library by following the documentation.</LI> - <LI>Start the Apache HTTPD server: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>HTTPD_HOME=<path to installed Apache HTTPD server></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>\samples\AlertAggregator\deploy\httpserver</LI> - <LI>startserver.bat</LI> - </OL> - </LI> - <LI>Run the client from your web browser: - <OL> - <LI>Point your browser at <A HREF="http://localhost:9090/index.html" TARGET="_blank">http://localhost:9090/index.html</A><BR/> - NOTE: If plain text is diplayed by your browser, rather than a rendered web page, you may need - to uncomment the LoadModule mime_module directive in the - <tuscany_sca_install_dir>\samples\AlertAggregator\deploy\httpserver\conf\httpd.conf file. Set the correct path to - the mod_mime.so library (e.g. C:\Apache2.2\modules\mod_mime.so) and restart the server</LI> - <LI>You should see the Alert Aggregator web interface that allows you to: - <UL> - <LI>Read new alerts</LI> - <LI>Update alerts from all sources</LI> - <LI>Update alerts from a specific source</LI> - <LI>Edit the configuration of a data source</LI> - <LI>Add a new RSS/Atom or POP email data source</LI> - <LI>Remove a specific data source and all associated alerts</LI> - </UL> - </LI> - </OL> - </LI> - </OL> - </DIV> - - - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> - diff --git a/cpp/sca/samples/AlertAggregator/config.xml b/cpp/sca/samples/AlertAggregator/config.xml deleted file mode 100644 index 0b33cb7911..0000000000 --- a/cpp/sca/samples/AlertAggregator/config.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<ns0:config xmlns:ns0="http://tuscany.apache.org/samples/alerter"> -<ns0:source id="0" type="rss"> - <ns0:name>BBC News</ns0:name> - <ns0:address>http://news.bbc.co.uk/</ns0:address> - <ns0:lastChecked>2007-02-07T17:11:16</ns0:lastChecked> - <ns0:feedAddress>http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml</ns0:feedAddress> -</ns0:source> -<ns0:source id="1" type="rss"> - <ns0:name>Engadget</ns0:name> - <ns0:address>http://www.engadget.com</ns0:address> - <ns0:lastChecked>2007-02-07T17:11:14</ns0:lastChecked> - <ns0:feedAddress>http://www.engadget.com/rss.xml</ns0:feedAddress> -</ns0:source> -</ns0:config>
\ No newline at end of file diff --git a/cpp/sca/samples/AlertAggregator/httpserver.php/README b/cpp/sca/samples/AlertAggregator/httpserver.php/README deleted file mode 100644 index 207e6394e1..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver.php/README +++ /dev/null @@ -1,33 +0,0 @@ -Alert Aggregator - PHP Display Component
-========================================
-
-This httpserver configuration includes a PHP implementation of the display
-component that replaces the python component in sample.display.
-
-The HTTPD configuration created by the startserver scrips relies on the
-PHP_HOME environment variable in order to install PHP in Apache as follows:
-
-LoadModule php5_module %PHP_HOME%\php5apache2.dll
-AddType application/x-httpd-php .php
-PHPIniDir %PHP_HOME%
-
-PHP must be configured to include the PHP SCA_SDO extension from PECL.
-This provides the SCA and SDO support that the display component relies on.
-Currently you must have the version from the AVOCET branch as changes have
-been made here that this application requires.
-
-To run the AlertAggregator sample with the PHP component you must start the
-original HTTP server, e.g., on windows
-
-> cd AlertAggregator\httpserver
-> startserver.bat
-
-and then start the HTTPD server that servers the PHP part of the application, e.g.,
-
-> cd AlertAggregator\httpserver.php
-> startserver.bat
-
-then point your browser at
-
-http://localhost:9091/index.html
-
diff --git a/cpp/sca/samples/AlertAggregator/httpserver.php/conf/httpd.conf b/cpp/sca/samples/AlertAggregator/httpserver.php/conf/httpd.conf deleted file mode 100644 index 92026c9717..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver.php/conf/httpd.conf +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# This is the main Apache HTTP server configuration file. It contains the
-# configuration directives that give the server its instructions.
-# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
-
-Listen 9091
-
-# Generated by the startserver script
-Include conf/base.conf
-
-# SCA rest module not required for the PHP part
-# Include conf/tuscany_sca_mod_rest.conf
diff --git a/cpp/sca/samples/AlertAggregator/httpserver.php/conf/mime.types b/cpp/sca/samples/AlertAggregator/httpserver.php/conf/mime.types deleted file mode 100644 index 4279f51bca..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver.php/conf/mime.types +++ /dev/null @@ -1,607 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# This file controls what Internet media types are sent to the client for -# given file extension(s). Sending the correct media type to the client -# is important so they know how to handle the content of the file. -# Extra types can either be added here or by using an AddType directive -# in your config files. For more information about Internet media types, -# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type -# registry is at <http://www.iana.org/assignments/media-types/>. - -# MIME type Extensions -application/activemessage -application/andrew-inset ez -application/applefile -application/atom+xml atom -application/atomicmail -application/batch-smtp -application/beep+xml -application/cals-1840 -application/cnrp+xml -application/commonground -application/cpl+xml -application/cybercash -application/dca-rft -application/dec-dx -application/dvcs -application/edi-consent -application/edifact -application/edi-x12 -application/eshop -application/font-tdpfr -application/http -application/hyperstudio -application/iges -application/index -application/index.cmd -application/index.obj -application/index.response -application/index.vnd -application/iotp -application/ipp -application/isup -application/mac-binhex40 hqx -application/mac-compactpro cpt -application/macwriteii -application/marc -application/mathematica -application/mathml+xml mathml -application/msword doc -application/news-message-id -application/news-transmission -application/ocsp-request -application/ocsp-response -application/octet-stream bin dms lha lzh exe class so dll dmg -application/oda oda -application/ogg ogg -application/parityfec -application/pdf pdf -application/pgp-encrypted -application/pgp-keys -application/pgp-signature -application/pkcs10 -application/pkcs7-mime -application/pkcs7-signature -application/pkix-cert -application/pkix-crl -application/pkixcmp -application/postscript ai eps ps -application/prs.alvestrand.titrax-sheet -application/prs.cww -application/prs.nprend -application/prs.plucker -application/qsig -application/rdf+xml rdf -application/reginfo+xml -application/remote-printing -application/riscos -application/rtf -application/sdp -application/set-payment -application/set-payment-initiation -application/set-registration -application/set-registration-initiation -application/sgml -application/sgml-open-catalog -application/sieve -application/slate -application/smil smi smil -application/srgs gram -application/srgs+xml grxml -application/timestamp-query -application/timestamp-reply -application/tve-trigger -application/vemmi -application/vnd.3gpp.pic-bw-large -application/vnd.3gpp.pic-bw-small -application/vnd.3gpp.pic-bw-var -application/vnd.3gpp.sms -application/vnd.3m.post-it-notes -application/vnd.accpac.simply.aso -application/vnd.accpac.simply.imp -application/vnd.acucobol -application/vnd.acucorp -application/vnd.adobe.xfdf -application/vnd.aether.imp -application/vnd.amiga.ami -application/vnd.anser-web-certificate-issue-initiation -application/vnd.anser-web-funds-transfer-initiation -application/vnd.audiograph -application/vnd.blueice.multipass -application/vnd.bmi -application/vnd.businessobjects -application/vnd.canon-cpdl -application/vnd.canon-lips -application/vnd.cinderella -application/vnd.claymore -application/vnd.commerce-battelle -application/vnd.commonspace -application/vnd.contact.cmsg -application/vnd.cosmocaller -application/vnd.criticaltools.wbs+xml -application/vnd.ctc-posml -application/vnd.cups-postscript -application/vnd.cups-raster -application/vnd.cups-raw -application/vnd.curl -application/vnd.cybank -application/vnd.data-vision.rdz -application/vnd.dna -application/vnd.dpgraph -application/vnd.dreamfactory -application/vnd.dxr -application/vnd.ecdis-update -application/vnd.ecowin.chart -application/vnd.ecowin.filerequest -application/vnd.ecowin.fileupdate -application/vnd.ecowin.series -application/vnd.ecowin.seriesrequest -application/vnd.ecowin.seriesupdate -application/vnd.enliven -application/vnd.epson.esf -application/vnd.epson.msf -application/vnd.epson.quickanime -application/vnd.epson.salt -application/vnd.epson.ssf -application/vnd.ericsson.quickcall -application/vnd.eudora.data -application/vnd.fdf -application/vnd.ffsns -application/vnd.fints -application/vnd.flographit -application/vnd.framemaker -application/vnd.fsc.weblaunch -application/vnd.fujitsu.oasys -application/vnd.fujitsu.oasys2 -application/vnd.fujitsu.oasys3 -application/vnd.fujitsu.oasysgp -application/vnd.fujitsu.oasysprs -application/vnd.fujixerox.ddd -application/vnd.fujixerox.docuworks -application/vnd.fujixerox.docuworks.binder -application/vnd.fut-misnet -application/vnd.grafeq -application/vnd.groove-account -application/vnd.groove-help -application/vnd.groove-identity-message -application/vnd.groove-injector -application/vnd.groove-tool-message -application/vnd.groove-tool-template -application/vnd.groove-vcard -application/vnd.hbci -application/vnd.hhe.lesson-player -application/vnd.hp-hpgl -application/vnd.hp-hpid -application/vnd.hp-hps -application/vnd.hp-pcl -application/vnd.hp-pclxl -application/vnd.httphone -application/vnd.hzn-3d-crossword -application/vnd.ibm.afplinedata -application/vnd.ibm.electronic-media -application/vnd.ibm.minipay -application/vnd.ibm.modcap -application/vnd.ibm.rights-management -application/vnd.ibm.secure-container -application/vnd.informix-visionary -application/vnd.intercon.formnet -application/vnd.intertrust.digibox -application/vnd.intertrust.nncp -application/vnd.intu.qbo -application/vnd.intu.qfx -application/vnd.irepository.package+xml -application/vnd.is-xpr -application/vnd.japannet-directory-service -application/vnd.japannet-jpnstore-wakeup -application/vnd.japannet-payment-wakeup -application/vnd.japannet-registration -application/vnd.japannet-registration-wakeup -application/vnd.japannet-setstore-wakeup -application/vnd.japannet-verification -application/vnd.japannet-verification-wakeup -application/vnd.jisp -application/vnd.kde.karbon -application/vnd.kde.kchart -application/vnd.kde.kformula -application/vnd.kde.kivio -application/vnd.kde.kontour -application/vnd.kde.kpresenter -application/vnd.kde.kspread -application/vnd.kde.kword -application/vnd.kenameaapp -application/vnd.koan -application/vnd.liberty-request+xml -application/vnd.llamagraphics.life-balance.desktop -application/vnd.llamagraphics.life-balance.exchange+xml -application/vnd.lotus-1-2-3 -application/vnd.lotus-approach -application/vnd.lotus-freelance -application/vnd.lotus-notes -application/vnd.lotus-organizer -application/vnd.lotus-screencam -application/vnd.lotus-wordpro -application/vnd.mcd -application/vnd.mediastation.cdkey -application/vnd.meridian-slingshot -application/vnd.micrografx.flo -application/vnd.micrografx.igx -application/vnd.mif mif -application/vnd.minisoft-hp3000-save -application/vnd.mitsubishi.misty-guard.trustweb -application/vnd.mobius.daf -application/vnd.mobius.dis -application/vnd.mobius.mbk -application/vnd.mobius.mqy -application/vnd.mobius.msl -application/vnd.mobius.plc -application/vnd.mobius.txf -application/vnd.mophun.application -application/vnd.mophun.certificate -application/vnd.motorola.flexsuite -application/vnd.motorola.flexsuite.adsi -application/vnd.motorola.flexsuite.fis -application/vnd.motorola.flexsuite.gotap -application/vnd.motorola.flexsuite.kmr -application/vnd.motorola.flexsuite.ttc -application/vnd.motorola.flexsuite.wem -application/vnd.mozilla.xul+xml xul -application/vnd.ms-artgalry -application/vnd.ms-asf -application/vnd.ms-excel xls -application/vnd.ms-lrm -application/vnd.ms-powerpoint ppt -application/vnd.ms-project -application/vnd.ms-tnef -application/vnd.ms-works -application/vnd.ms-wpl -application/vnd.mseq -application/vnd.msign -application/vnd.music-niff -application/vnd.musician -application/vnd.netfpx -application/vnd.noblenet-directory -application/vnd.noblenet-sealer -application/vnd.noblenet-web -application/vnd.novadigm.edm -application/vnd.novadigm.edx -application/vnd.novadigm.ext -application/vnd.obn -application/vnd.osa.netdeploy -application/vnd.palm -application/vnd.pg.format -application/vnd.pg.osasli -application/vnd.powerbuilder6 -application/vnd.powerbuilder6-s -application/vnd.powerbuilder7 -application/vnd.powerbuilder7-s -application/vnd.powerbuilder75 -application/vnd.powerbuilder75-s -application/vnd.previewsystems.box -application/vnd.publishare-delta-tree -application/vnd.pvi.ptid1 -application/vnd.pwg-multiplexed -application/vnd.pwg-xhtml-print+xml -application/vnd.quark.quarkxpress -application/vnd.rapid -application/vnd.s3sms -application/vnd.sealed.net -application/vnd.seemail -application/vnd.shana.informed.formdata -application/vnd.shana.informed.formtemplate -application/vnd.shana.informed.interchange -application/vnd.shana.informed.package -application/vnd.smaf -application/vnd.sss-cod -application/vnd.sss-dtf -application/vnd.sss-ntf -application/vnd.street-stream -application/vnd.svd -application/vnd.swiftview-ics -application/vnd.triscape.mxs -application/vnd.trueapp -application/vnd.truedoc -application/vnd.ufdl -application/vnd.uplanet.alert -application/vnd.uplanet.alert-wbxml -application/vnd.uplanet.bearer-choice -application/vnd.uplanet.bearer-choice-wbxml -application/vnd.uplanet.cacheop -application/vnd.uplanet.cacheop-wbxml -application/vnd.uplanet.channel -application/vnd.uplanet.channel-wbxml -application/vnd.uplanet.list -application/vnd.uplanet.list-wbxml -application/vnd.uplanet.listcmd -application/vnd.uplanet.listcmd-wbxml -application/vnd.uplanet.signal -application/vnd.vcx -application/vnd.vectorworks -application/vnd.vidsoft.vidconference -application/vnd.visio -application/vnd.visionary -application/vnd.vividence.scriptfile -application/vnd.vsf -application/vnd.wap.sic -application/vnd.wap.slc -application/vnd.wap.wbxml wbxml -application/vnd.wap.wmlc wmlc -application/vnd.wap.wmlscriptc wmlsc -application/vnd.webturbo -application/vnd.wrq-hp3000-labelled -application/vnd.wt.stf -application/vnd.wv.csp+wbxml -application/vnd.xara -application/vnd.xfdl -application/vnd.yamaha.hv-dic -application/vnd.yamaha.hv-script -application/vnd.yamaha.hv-voice -application/vnd.yellowriver-custom-menu -application/voicexml+xml vxml -application/watcherinfo+xml -application/whoispp-query -application/whoispp-response -application/wita -application/wordperfect5.1 -application/x-bcpio bcpio -application/x-cdlink vcd -application/x-chess-pgn pgn -application/x-compress -application/x-cpio cpio -application/x-csh csh -application/x-director dcr dir dxr -application/x-dvi dvi -application/x-futuresplash spl -application/x-gtar gtar -application/x-gzip -application/x-hdf hdf -application/x-javascript js -application/x-koan skp skd skt skm -application/x-latex latex -application/x-netcdf nc cdf -application/x-sh sh -application/x-shar shar -application/x-shockwave-flash swf -application/x-stuffit sit -application/x-sv4cpio sv4cpio -application/x-sv4crc sv4crc -application/x-tar tar -application/x-tcl tcl -application/x-tex tex -application/x-texinfo texinfo texi -application/x-troff t tr roff -application/x-troff-man man -application/x-troff-me me -application/x-troff-ms ms -application/x-ustar ustar -application/x-wais-source src -application/x400-bp -application/xhtml+xml xhtml xht -application/xslt+xml xslt -application/xml xml xsl -application/xml-dtd dtd -application/xml-external-parsed-entity -application/zip zip -audio/32kadpcm -audio/amr -audio/amr-wb -audio/basic au snd -audio/cn -audio/dat12 -audio/dsr-es201108 -audio/dvi4 -audio/evrc -audio/evrc0 -audio/g722 -audio/g.722.1 -audio/g723 -audio/g726-16 -audio/g726-24 -audio/g726-32 -audio/g726-40 -audio/g728 -audio/g729 -audio/g729D -audio/g729E -audio/gsm -audio/gsm-efr -audio/l8 -audio/l16 -audio/l20 -audio/l24 -audio/lpc -audio/midi mid midi kar -audio/mpa -audio/mpa-robust -audio/mp4a-latm -audio/mpeg mpga mp2 mp3 -audio/parityfec -audio/pcma -audio/pcmu -audio/prs.sid -audio/qcelp -audio/red -audio/smv -audio/smv0 -audio/telephone-event -audio/tone -audio/vdvi -audio/vnd.3gpp.iufp -audio/vnd.cisco.nse -audio/vnd.cns.anp1 -audio/vnd.cns.inf1 -audio/vnd.digital-winds -audio/vnd.everad.plj -audio/vnd.lucent.voice -audio/vnd.nortel.vbk -audio/vnd.nuera.ecelp4800 -audio/vnd.nuera.ecelp7470 -audio/vnd.nuera.ecelp9600 -audio/vnd.octel.sbc -audio/vnd.qcelp -audio/vnd.rhetorex.32kadpcm -audio/vnd.vmx.cvsd -audio/x-aiff aif aiff aifc -audio/x-alaw-basic -audio/x-mpegurl m3u -audio/x-pn-realaudio ram ra -audio/x-pn-realaudio-plugin -application/vnd.rn-realmedia rm -audio/x-wav wav -chemical/x-pdb pdb -chemical/x-xyz xyz -image/bmp bmp -image/cgm cgm -image/g3fax -image/gif gif -image/ief ief -image/jpeg jpeg jpg jpe -image/naplps -image/png png -image/prs.btif -image/prs.pti -image/svg+xml svg -image/t38 -image/tiff tiff tif -image/tiff-fx -image/vnd.cns.inf2 -image/vnd.djvu djvu djv -image/vnd.dwg -image/vnd.dxf -image/vnd.fastbidsheet -image/vnd.fpx -image/vnd.fst -image/vnd.fujixerox.edmics-mmr -image/vnd.fujixerox.edmics-rlc -image/vnd.globalgraphics.pgb -image/vnd.mix -image/vnd.ms-modi -image/vnd.net-fpx -image/vnd.svf -image/vnd.wap.wbmp wbmp -image/vnd.xiff -image/x-cmu-raster ras -image/x-icon ico -image/x-portable-anymap pnm -image/x-portable-bitmap pbm -image/x-portable-graymap pgm -image/x-portable-pixmap ppm -image/x-rgb rgb -image/x-xbitmap xbm -image/x-xpixmap xpm -image/x-xwindowdump xwd -message/delivery-status -message/disposition-notification -message/external-body -message/http -message/news -message/partial -message/rfc822 -message/s-http -message/sip -message/sipfrag -model/iges igs iges -model/mesh msh mesh silo -model/vnd.dwf -model/vnd.flatland.3dml -model/vnd.gdl -model/vnd.gs-gdl -model/vnd.gtw -model/vnd.mts -model/vnd.parasolid.transmit.binary -model/vnd.parasolid.transmit.text -model/vnd.vtu -model/vrml wrl vrml -multipart/alternative -multipart/appledouble -multipart/byteranges -multipart/digest -multipart/encrypted -multipart/form-data -multipart/header-set -multipart/mixed -multipart/parallel -multipart/related -multipart/report -multipart/signed -multipart/voice-message -text/calendar ics ifb -text/css css -text/directory -text/enriched -text/html html htm -text/parityfec -text/plain asc txt -text/prs.lines.tag -text/rfc822-headers -text/richtext rtx -text/rtf rtf -text/sgml sgml sgm -text/t140 -text/tab-separated-values tsv -text/uri-list -text/vnd.abc -text/vnd.curl -text/vnd.dmclientscript -text/vnd.fly -text/vnd.fmi.flexstor -text/vnd.in3d.3dml -text/vnd.in3d.spot -text/vnd.iptc.nitf -text/vnd.iptc.newsml -text/vnd.latex-z -text/vnd.motorola.reflex -text/vnd.ms-mediapackage -text/vnd.net2phone.commcenter.command -text/vnd.sun.j2me.app-descriptor -text/vnd.wap.si -text/vnd.wap.sl -text/vnd.wap.wml wml -text/vnd.wap.wmlscript wmls -text/x-setext etx -text/xml -text/xml-external-parsed-entity -video/bmpeg -video/bt656 -video/celb -video/dv -video/h261 -video/h263 -video/h263-1998 -video/h263-2000 -video/jpeg -video/mp1s -video/mp2p -video/mp2t -video/mp4v-es -video/mpv -video/mpeg mpeg mpg mpe -video/nv -video/parityfec -video/pointer -video/quicktime qt mov -video/smpte292m -video/vnd.fvt -video/vnd.motorola.video -video/vnd.motorola.videop -video/vnd.mpegurl mxu m4u -video/vnd.nokia.interleaved-multimedia -video/vnd.objectvideo -video/vnd.vivo -video/x-msvideo avi -video/x-sgi-movie movie -x-conference/x-cooltalk ice diff --git a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/AlertDisplay.php b/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/AlertDisplay.php deleted file mode 100644 index 2b9eb916a0..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/AlertDisplay.php +++ /dev/null @@ -1,204 +0,0 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<?php -include 'SCA/SCA.php'; - -/** - * @service
- * @binding.rest.rpc
- * @types http://tuscany.apache.org/samples/alerter ./Alerter.xsd - */ -class AlertDisplay -{
- /**
- * @reference
- * @binding.rest.rpc http://localhost:9090/rest/sample.alerter.AlerterComponent/AlerterService
- * @types http://tuscany.apache.org/samples/alerter ./Alerter.xsd
- */
- public $alert_service;
-
- /**
- * @return string
- */
- public function getAlertsHTMLTable()
- {
- $xmldas = SDO_DAS_XML::create("./Alerter.xsd");
- $doc = $xmldas->loadFile("./Cached_Alerts.xml");
- $cached_alerts = $doc->getRootDataObject();
-
- // Use the alertService reference
- $new_alerts = $this->alert_service->getAllNewAlerts();
-
- foreach($new_alerts->alert as $alert){
- $new_alert = $cached_alerts->createDataObject('alert');
- $new_alert->title = $alert->title;
- $new_alert->summary = $alert->summary;
- $new_alert->address = $alert->address;
- $new_alert->date = $alert->date;
- $new_alert->sourceid = $alert->sourceid;
- $new_alert->unread = true;
- }
-
- $return_table = "<TABLE border=\'0\'>";
- $alert_id_number = 0;
- foreach($cached_alerts->alert as $alert){
- $alert->id = "alert_" . $alert_id_number;
- $title = substr($alert->title,0,80);
- $summary = substr($alert->summary,0,40);
- $unread_string = $alert->unread ? "unread_title" : "read_title";
- $return_row = <<<ALERTROW
-<TR class="source_$alert->sourceid clickable" onclick="displayAlert('$alert->address', '')">
- <TD>
- <SPAN id="$alert->id" class="$unread_string">$title</SPAN>
- <SPAN class="summary"> - $summary ...</SPAN>
- </TD>
- <TD>
- $alert->date
- </TD>
-</TR>
-ALERTROW;
- $return_table = $return_table . $return_row;
- $alert_id_number += 1;
- }
- $return_table = $return_table . "</TABLE>";
-
- // as php is one shot we have to save away the alerts we want to cache
- $xmldas->saveFile($doc, "./Cached_Alerts.xml");
-
- return $return_table;
- }
-
- /**
- * @param string $alert_id
- * @return string
- */
- public function readAlert($alert_id)
- {
- $xmldas = SDO_DAS_XML::create("./Alerter.xsd");
- $doc = $xmldas->loadFile("./Cached_Alerts.xml");
- $cached_alerts = $doc->getRootDataObject();
-
- $return_summary = "";
-
- foreach($cached_alerts->alert as $alert){
-SCA::$logger->log($alert->id . " vs " . $alert_id );
- if (strcmp($alert->id,$alert_id) == 0){
- SCA::$logger->log("Match");
- $alert->unread = false;
- $return_summary = "<PRE>" . $alert->summary . "</PRE>";
- }
- }
-
- // as php is one shot we have to save away the alerts we want to cache
- $xmldas->saveFile($doc, "./Cached_Alerts.xml");
-
- return $return_summary;
- }
-
- /**
- * @return string
- */
- public function getAlertSourcesHTMLTable()
- {
- # Use the alertService reference
- $alert_sources = $this->alert_service->getAlertSources();
-
-// some debug
-//ob_start();
-//print_r( $alert_sources );
-//$debug = ob_get_contents();
-//ob_end_clean();
-//SCA::$logger->log($debug);
-
- $return_table = "<TABLE border='0'>\n";
-
- foreach ($alert_sources->source as $alert_source){
- $source_id = $alert_source->id;
- $return_row = <<<SOURCEROW
-<TR CLASS="source_$source_id" >
- <TD CLASS="clickable" ONCLICK="displayAlert('$alert_source->address', '')">
- <IMG SRC="rss.png"/> $alert_source->name
- </TD>
- <TD CLASS="clickable link" ONCLICK="showEditSource('$source_id')">Edit</TD>
- <TD CLASS="clickable link" ONCLICK="deleteSource('$source_id')">Delete</TD>
-</TR>
-<TR ID="edit_source_$source_id" CLASS="hidden source_$source_id">
- <TD COLSPAN="3">
- <TABLE CLASS="sourceDetailsTable">
- <TR>
- <TD>Source name:</TD>
- <TD>
- <INPUT ID="source_{$source_id}_name" TYPE="TEXT" SIZE="50" VALUE="$alert_source->name"/>
- </TD>
- </TR>
- <TR>
- <TD>Source address:</TD>
- <TD>
- <INPUT ID="source_{$source_id}_address" TYPE="TEXT" SIZE="50" VALUE="$alert_source->address"/>
- </TD>
- </TR>
- <TR>
- <TD>
- <INPUT ID="source_{$source_id}_type" TYPE="HIDDEN" VALUE="$source_id"/>
- <INPUT TYPE="BUTTON" VALUE="Update" ONCLICK="updateSource('$source_id')"/>
- <INPUT TYPE="BUTTON" VALUE="Cancel" ONCLICK="hideEditSource('$source_id')"/>
- </TD>
- </TR>
- </TABLE>
- </TD>
-</TR>
-SOURCEROW;
- $return_table = $return_table . $return_row;
- }
-
- $return_table = $return_table . "</TABLE>\n";
- return $return_table;
- }
-
- /**
- * @param integer $source_id
- * @return string
- */
- public function deleteAlertSource($source_id){
- # Use the alertService reference
- $this->alertService->removeAlertSource($source_id);
-
- //TODO
- }
-
- /**
- * @param source $alert_source http://tuscany.apache.org/samples/alerter
- */
- public function addAlertSource($alert_source){
- # Use the alertService reference
- $this->alertService->addAlertSource($alert_source);
- }
-
- /**
- * @param source $alert_source http://tuscany.apache.org/samples/alerter
- */
- public function updateAlertSource($alert_source){
- # Use the alertService reference
- $this->alertService->updateAlertSource($alert_source);
- } -} -?>
-
-
- diff --git a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/Alerter.xsd b/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/Alerter.xsd deleted file mode 100644 index 58b9982d38..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/Alerter.xsd +++ /dev/null @@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<schema targetNamespace="http://tuscany.apache.org/samples/alerter"
- xmlns="http://www.w3.org/2001/XMLSchema"
- xmlns:ns="http://tuscany.apache.org/samples/alerter"> - <element name="alerts" type="ns:alerts"/>
- - <complexType name="alert"> - <sequence> - <element name="title" type="string"/>
- <element name="summary" type="string"/> - <element name="address" type="anyURI" maxOccurs="1" minOccurs="1"/> - <element name="date" type="string" maxOccurs="1" minOccurs="1"/> - </sequence>
- <attribute name="sourceid" type="string" use="optional"/>
- <attribute name="unread" type="boolean" use="optional"/>
- <attribute name="id" type="string" use="optional"/>
- </complexType> - - <complexType name="alerts"> - <sequence> - <element name="alert" type="ns:alert" maxOccurs="unbounded" minOccurs="0" /> - </sequence>
- </complexType>
- - <element name="config" type="ns:config"/>
- <element name="source" type="ns:source"/>
- - <complexType name="source"> - <sequence> - <element name="name" type="string" maxOccurs="1" minOccurs="1"/>
- <element name="address" type="anyURI" maxOccurs="1" minOccurs="1"/>
- <element name="lastChecked" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="feedAddress" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="popServer" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="popUsername" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="popPassword" type="string" maxOccurs="1" minOccurs="0"/>
- <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> - </sequence>
- <attribute name="id" type="string" use="optional"/>
- <attribute name="type" use="required">
- <simpleType>
- <restriction base="string">
- <enumeration value="rss"/>
- <enumeration value="pop"/> - <enumeration value="nntp"/> - </restriction>
- </simpleType>
- </attribute> - </complexType> - - <complexType name="config"> - <sequence> - <element name="source" type="ns:source" maxOccurs="unbounded" minOccurs="0"/>
- </sequence>
- </complexType> -</schema>
\ No newline at end of file diff --git a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/Cached_Alerts.xml b/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/Cached_Alerts.xml deleted file mode 100644 index 03901c804c..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/Cached_Alerts.xml +++ /dev/null @@ -1,214 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<alerts xmlns="http://tuscany.apache.org/samples/alerter" xmlns:tns="http://tuscany.apache.org/samples/alerter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><alert sourceid="1" unread="false" id="alert_0"><title>Polymer Vision's Readius rollable display gets face time</title><summary>Filed under: Cellphones, DisplaysTalk about a long time coming, as what is now Polymer Vision has seemed to finally put all the pieces together and produce an actual working product from the idea envisioned by Philips around two years ago. We knew the spinoff was looking to commercialize the product later this year, but after nearly 24 months of coming up empty, a bit of understandable skepticism begins to seep through. Nevertheless, the firm's rollable, pocket-friendly "Cellular-Book" was out and showing its stuff at 3GSM, proving that there's at least something there to put on store shelves. Although the unit on display was indeed a standalone device -- sporting 16 shades of grey, USB, "10-days" of battery life, 4GB of internal storage, and GPRS, EDGE, and DVB-H connectivity just like we'd heard -- Polymer Vision is actually hoping to integrate its e-paper technology into mobile handset displays in the near future. Sadly, there still didn't seem to be any hints of a release date for the nifty pocket reader, but be sure to click on through for the very long awaited pictures of the Readius in action.[Via Slashdot]Continue reading Polymer Vision's Readius rollable display gets face time Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/92945682/</address><date>2007-02-19T15:54:00</date></alert><alert sourceid="1" unread="false" id="alert_1"><title>Sirius and XM set to merge?</title><summary>Filed under: Portable Audio -Well, we can't exactly say that we didn't see this one coming, but for the deal to actually get inked would indeed be something special. According to the New York Post, Sirius and XM are all set to announce a merger deal after hammering out details all weekend long. Of course, it was noted that the somewhat shaky agreement "could fall apart at any time," and interestingly enough, both companies purportedly spent the majority of their (and their lawyers) time ironing out the good stuff while leaving "regulatory concerns" on the back burner. Unfortunately, those very issues could be insurmountable hurdles, as the typically stubborn FCC certainly has played hard ball with each company before, and having one overriding satellite provider with no competition in sight is ripe for monopoly arguments. Regardless, you won't find us complaining about a little Howard just a few channels down from Oprah, or a dash of MLB just a dozen notches from the NFL, but considering that gaining that oh-so-critical regulatory approval "could take up to 15 months," we wouldn't count on your lineup changing anytime soon no matter what. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/92940034/</address><date>2007-02-19T15:24:00</date></alert><alert sourceid="1" unread="false" id="alert_2"><title>Sony's Cybershot DSC-W80: their latest 7.2 megapixel camera?</title><summary>Filed under: Digital Cameras -Out of the gates early for PMA (Photo Marketing Association) 2007, we've got rumors of the latest Sony Cybershot, the DSC-W80. The cam's already made its appearance on a few German and Dutch web sites and certainly makes sense as the successor to the 7.2 megapixel W70 launched at last year's show. However, instead of 8 megapixels like you might expect, we're still talking that same 7.2-megapixel, 1/2.5-inch CCD (which won't help improve the high rates of noise above ISO 200 any), 3x optical zoom, and 2.5-inch LCD. Other than a new ISO 3200 sensitivity and slightly larger chassis -- up from 89 x 57 x 23-mm to 91 x 58 x 23-mm -- there isn't anything new on the surface to report. No one's sayin' but perhaps they've added some optical image stabilization to bring these in-line with most other compact shooters in this range. We've also got rumors of a new Cybershot DSC-W60 and Cybershot DSC-W90 -- both unannounced and both said to work with a new SPK-SA underwater case (pictured after the break). The W80 is expected to hit in April for around 280/$368. As to the rest... well, the PMA show starts March 8th so we'll know soon enough. [Via Let's Go Digital, thanks David]Continue reading Sony's Cybershot DSC-W80: their latest 7.2 megapixel camera? Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/92929558/</address><date>2007-02-19T14:42:00</date></alert><alert sourceid="1" unread="false" id="alert_3"><title>Gresso's Symphonia MP3 players for the nouveau riche</title><summary>Filed under: Portable AudioHow do you make a splash in the already saturated MP3 player market? Well, there's always limited-edition pink, or how 'bout a $4,000+ luxury player which touts "craftsmanship" (not sound quality or user experience) as its primary forte? Naturally, we're talking about Gresso, the Russian outfit already infamous for their luxury cellphones. Their new Symphonia audio players all measure in at 39 x 39 x 10.5-mm making them just a touch bigger than the iRiver S7 and iPod shuffle. Each features a RAZR-esque laser-etched keypad, built-in FM tuner, and 1GB of flash memory for your MP3, WMA, ASF and OGG files. In fact, the four models only differ in materials which range from ancient hardwoods to 18 carat gold. Expected in Q2 with too-beaucoup pricing in the area of $4,000 to $6,000. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/92922919/</address><date>2007-02-19T14:22:00</date></alert><alert sourceid="1" unread="false" id="alert_4"><title>Earth Trek's USB Tape Dispenser</title><summary>Filed under: Misc. Gadgets, Peripherals -Ours is not to question why, only to accept the inevitable convergence of USB and pretty much everything else within the vicinity of our PCs. Meet the newly announced 4-port USB 2.0 hub and tape dispenser from Hong Kong's Earth Trek. It comes in large and small versions and can naturally be affixed with your very own logo for some good ol' corporate schwag. Sorry, these devices are not USB powered -- but if you're the type who finds it overly taxing to dispense tape, then maybe you should be looking into a bionic suit. "Coming soon" in several color options for an undisclosed price. - -[Via Akihabara News] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/92922925/</address><date>2007-02-19T14:02:00</date></alert><alert sourceid="1" unread="false" id="alert_5"><title>The do-it-yourself SSD adapter</title><summary>Filed under: Storage - If you can't afford the real deal, then prepare to get your jank on with this, the not-so-poor-man's solid state disk. The SDB25SD from GeekStuff4U can host up to 4x SD (not SDHC) cards for a maximum capacity of 8GB. Just slip the four cards into the 2.5-inch sled which then slots-in to any available IDE connector where -- presumably -- the total capacity is presented as a single disk volume... who knows? So how much would you pay for something like this: $50, $40, or maybe $20? Try $258.50 and you have to provide the SD flash. Word to the wise: SSD prices are dropping fast -- you'll pay about the same price for a full 16GB SSD card if you can hold on until June or so.[Via Akihabara News] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/92910485/</address><date>2007-02-19T13:32:00</date></alert><alert sourceid="1" unread="true" id="alert_6"><title>Sharp's EM ONE: a dual-sliding Pocket PC with HSDPA and WiFi</title><summary>Filed under: Handhelds, Wireless -Check it W-Zero3, Sharp just one-upped your azz with their new EM ONE handheld. This Windows Mobile 5.0 Pocket PC device brings 3.6Mbps HSDPA and 802.11b/g data to the game along with hot dual-sliding action under that 4.1-inch touch-screen display. Unlike Samsung's F520 dual-slider which combines a QWERTY and numeric keypad for making calls, Sharp's slab is a data-only device so they combine the QWERTY with a side-sliding navigation pad for scooting around the 800 x 480 pixel display. However, Sharp's EM ONE comes heavy on the chub at 140x70x18.9-mm compared to the F520's 105x54x17.4-mm or even Nokia's N800 which is about the same length and width but much thinner at 145x75x12.7-mm. The whole kit comes powered by a Marvell 520MHz PXA270 processor and nVidia GoForce 5500 graphics along with 512MB/128MB flash/SDRAM memory and miniSD expansion. The display boasts a rather anemic 65k color palette (albeit, the same as the N800) for viewing integrated 1-Seg mobile TV and WMV videos with WMA and MP3 audio playback supported by a pair of built-in stereo speakers. Rounding out the specs are Bluetooth 1.2, a 1.3 megapixel CMOS camera, stylus, and a 4-hour battery. On sale in Japan starting March 31st for 95,000 (about $797) without contract or 39,800 ($332) with 2-year commitment.Gallery: Sharp's EM ONE: a dual-sliding PocketPC with HSDPA and WiFi[Via Impress] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/92903979/</address><date>2007-02-19T13:02:00</date></alert><alert sourceid="0" unread="false" id="alert_7"><title>Leaders condemn India train blast</title><summary>India and Pakistan say a train bombing that killed at least 66 people will not disrupt their peace process.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6375749.stm</address><date>2007-02-19T13:27:07</date></alert><alert sourceid="0" unread="true" id="alert_8"><title>At least 30 die in Iraq attacks</title><summary>A number of attacks in Iraq leave at least 30 dead, despite a security operation across the country.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6374909.stm</address><date>2007-02-19T16:20:31</date></alert><alert sourceid="0" unread="true" id="alert_9"><title>Priest jailed for exorcism death</title><summary>A Romanian priest who caused the death of a nun during an exorcism ritual is jailed for 14 years.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/europe/6376211.stm</address><date>2007-02-19T16:29:36</date></alert><alert sourceid="0" unread="true" id="alert_10"><title>Czech-Polish OK for US missiles</title><summary>Czech and Polish leaders back a US plan to install missile defence facilities on their territory.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/europe/6376137.stm</address><date>2007-02-19T15:02:36</date></alert><alert sourceid="0" unread="false" id="alert_11"><title>Mexico holds mine tragedy vigil</title><summary>Mexico marks the anniversary of a blast that killed 65 miners, most of whose bodies have not been found.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6376267.stm</address><date>2007-02-19T15:47:12</date></alert><alert sourceid="0" unread="true" id="alert_12"><title>'Anti-terror force' for Somalia</title><summary>Somalia's government sets up a joint police and military unit to counter attacks by suspected Islamists.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/africa/6375699.stm</address><date>2007-02-19T12:33:12</date></alert><alert sourceid="0" unread="true" id="alert_13"><title>Row threatens Nigerian alliance</title><summary>Two top Nigerian presidential candidates swap insults, casting doubt on the alliance between their two parties.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/africa/6376521.stm</address><date>2007-02-19T15:53:07</date></alert><alert sourceid="0" unread="true" id="alert_14"><title>Colombian foreign minister quits</title><summary>Colombia's foreign minister resigns after the arrest of her brother on suspicion of links with paramilitary groups.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6376359.stm</address><date>2007-02-19T15:40:03</date></alert><alert sourceid="0" unread="true" id="alert_15"><title>Wrangling hits Airbus restructure</title><summary>Airbus shelves a key decision on a major overhaul of the business, amid strife between its European partners.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/business/6375517.stm</address><date>2007-02-19T13:04:02</date></alert><alert sourceid="0" unread="true" id="alert_16"><title>Nepal king 'takes responsibility'</title><summary>Nepal's King Gyanendra publicly accepts responsibility for "success and failure" under his period of direct rule.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6375207.stm</address><date>2007-02-19T14:11:40</date></alert><alert sourceid="0" unread="true" id="alert_17"><title>More than 20 die in Iraq attacks</title><summary>A number of attacks in Iraq leave more than 20 dead, despite a security operation across the country.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6374909.stm</address><date>2007-02-19T17:05:24</date></alert><alert sourceid="1" unread="true" id="alert_18"><title>Sling's upcoming SlingLink Turbo leaked?</title><summary>Filed under: Home Entertainment, Networking -When you're slinging media across the home, there's no such thing as "too much bandwidth," and it looks like Sling Media is beefing up its SlingLink line of home wiring network products with the SlingLink Turbo. The new device ups the bandwidth from 14Mbps to 85Mbps, and while the original SlingLinks were primarily designed for a single Slingbox connection, the Turbo vision should be able to handle more general purpose home media networking tasks. The SlingLink Turbo was spotted by a SlingCommunity member on Amazon.com, with an expected ship date of February 27th 2007 for $149. The device is interoperable with existing PowerLine adapters, and has four Ethernet ports beyond the PowerLine link. As far as rumors go, this one looks pretty legit, but with a February 27th date on the books, we should know exactly how legit before too terribly long.[Thanks TieGuy] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93021486/</address><date>2007-02-19T20:55:00</date></alert><alert sourceid="1" unread="true" id="alert_19"><title>It's official: XM and Sirius plan to tie the knot</title><summary> - It's been more than two years since we first reported that XM and Sirius were in talks to merge, and although the New York Post may have jumped the gun a bit way back then, it was certainly on the money today, as the two satellite radio pioneers have just issued a joint press release stating their intention to become life partners. In the proposed $13 billion deal -- which they'd like to go down by the end of the year but which still must pass rather daunting regulatory scrutiny and opposition from such heavyweights as the National Association of Broadcasters -- investors would get 4.6 shares of Sirius stock for each share of XM, with current Sirius CEO Mel Karmazin and XM Chairman Gary Parsons retaining those roles, respectively, in the combined entity (whose name has yet to be decided). As you might imagine, the companies are already trying to spin this as a big win for everyone from Martha Stewart on down, arguing that consumers will end up benefiting from more programming choices and better hardware, manufacturers and retailers will see increased sales, and of course shareholders would gain value through the economies of scale and elimination of redundancies realized from a merger. The new pals also took an opportunity to sneak in a mention about the growing number of choices consumers have for receiving audio content, from old school AM/FM to internet radio to the the still-nascent technologies of cellphone streaming and HD radio, clearly hoping to sway public opinion on that whole anti-trust thing. Still, keep in mind that the FCC is gonna be taking a long, hard look at this one -- in fact, current regulations would need to be changed in order for the merger to gain approval -- so don't get your celebratin' started just yet. Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93011139/</address><date>2007-02-19T20:30:00</date></alert><alert sourceid="1" unread="true" id="alert_20"><title>Details emerge on Sony's DSC-W90, W200 digital cameras</title><summary>Filed under: Digital CamerasThe big PMA 07 trade show is still weeks away, but we seem to be already getting a pretty good idea of what Sony will be showing off, first with word of its 7.2 megapixel DSC-W80 getting out earlier today, and now with details on two additional models appearing on SonyCenter.lu's discussion forums before not-so-mysteriously disappearing. Thankfully, good 'ol Google Cache has preserved all the relevant information so you won't have to wait until March to satisfy your curiosity. Apart from the difference in megapixels, with 12 on the W200 and 8 on the W90, the two cameras appear to be virtually identical, each boasting a 3x optical zoom, 2.5-inch LCD, Carl Zeiss Vario-Tessar optics, Sony's trademark SteadyShot and Face Recognition features, ISO settings up to 3200 and, perhaps most notable, HDMI outputs. Unfortunately, there's no pics of either camera, although they'll apparently be similar in design to the W55 (pictured here), only with a "finer," "more beautiful" case. There's also no word on price or availability, although that should be revealed at the official PMA launch next month.[Thanks, Rashid] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93004352/</address><date>2007-02-19T19:48:00</date></alert><alert sourceid="1" unread="true" id="alert_21"><title>What tech would the Presidents rock in 2007?</title><summary>Filed under: Features, Misc. Gadgets - Sure, Washington had his dentures, Lincoln his ironclads and Jefferson his swivel chair, but what kind of kit would they be messing around with in 2007? In search of answers based on broad and most likely mis-guided and / or offensive stereotypes, we bring you the following list. Feel free to rip it to shreds in the comments, just make sure to keep it patriotic -- Big Brother is watching. Happy Presidents Day!#vistachart { border: 2px solid #333; border-collapse: collapse; } #vistachart td { padding: 3px; border: 1px solid #ccc; vertical-align: top; margin: 0; line-height: 1.3em; } #vistachart th { font-weight: bold; text-align: left; padding: 4px; background: #eee; } #vistachart th.mainth { border-bottom: 1px solid #333; font-size: 1.2em; } #vistachart td.red { background-color: #f08c85; } #vistachart td.green { background-color: #b3e2c4; - - - - Washington(rebel)Lincoln(uniter)Jefferson(hipster)Roosevelt(fearless) - - - OS - Linux (last night's build) - Mac OS X (with Vista in Parallels and Linux via Boot Camp) - Mac OS X - Vista (x64) - - - Computer - OQO (has an OLPC XO at home) - MBP - MacBook - Toughbook - - - Media player - Make Daisy - Sansa - iPod - Zune - - - HD format - HD DVD - LG BH100 hybrid player - Blu-ray - DivX + BitTorrent, dude - - - Carrier - T-Mobile - AT T - T-Mobile - VoIP over neighborFi - - - Console - Gamepark GP2X, SNES - Wii, Xbox 360, PS3 - Wii - PS3 - - - Vehicle - Homebrew biodiesel - Prius - Tesla Roadster - Segway - - - Phone - OpenMoko - 8525 - Sidekick 3 - Greenphone - - - Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/92998051/</address><date>2007-02-19T19:21:00</date></alert><alert sourceid="1" unread="true" id="alert_22"><title>Solar Technology's Freeloader saps power from USB, the Sun</title><summary>Filed under: Misc. Gadgets, Peripherals -While it won't do your laptop any good, this new Freeloader gig from Solar Technology should be able to provide juice to just about every other gadget in your repertoire. The device contains its own li-ion rechargeable battery, which it can fill up from your laptop or desktop's power via USB, or using its 120mA crystalline solar cells. From there you've got a master cable and eleven adaptors to get the electricity into your phone, camera, PDA, GPS, gaming handheld or DAP. Solar Technology seems to have most of the big brands covered, and claims it can fuel an iPod for 18 hours, a mobile phone for 44 hours, PSP for 2.5 hours and a PDA for 22 hours -- not too shabby for the 6.5 ounce unit. Sure, we've seen plenty of similar chargers before, but the combination of device compatibility and relatively low price ( 30, about $59 US) makes this a decent option for those sun-drenched road warriors out there. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/92990699/</address><date>2007-02-19T18:54:00</date></alert><alert sourceid="1" unread="true" id="alert_23"><title>Sony's 1/1.8-inch high-speed CMOS sensor outputs 60fps</title><summary>Filed under: Digital CamerasThankfully, it looks like Sony has come through yet again, and while it wasn't exactly in the timeliest of manners, the high-speed CMOS sensor that it promised would deliver 60fps of video output is finally upon us. The 1/1.8-inch IMX017CQE sensor boasts 6.4-megapixels of resolution and the uncanny ability to "output this resolution at 60 frames per second (a data rate of around 384 megapixels per second)." In layman's terms, this chip has the ability to capture full motion video and grab high-quality stills without dropping a single frame, giving users a seamless transition between the two. Additionally, the 1/1.8-inch size and its ability to deliver 300 frames per second at lower resolutions moves it a bit further from the pack, not to mention the 12-bit A/D converter for each column. No word just yet on when these video-centric chips will hit Sony's CyberShot lineup, but it's an awful lot closer to reality than the last time we caught wind of it. [Warning: PDF read link][Via DPReview] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/92983675/</address><date>2007-02-19T18:24:00</date></alert><alert sourceid="1" unread="true" id="alert_24"><title>Is "3X DVD" HD DVD's secret weapon against Blu-ray?</title><summary>Filed under: HDTV While the Blu-ray camp is busy claiming victory, recently HD DVD supporters seem to be circling the wagons around an old friend, the -- 'til now -- unused 3X DVD technology. HD DVD has always claimed it holds a price advantage over Blu-ray, by way of offering low cost upgrades for existing DVD manufacturing processes. The 3X DVD spec takes that a step further, while it's a part of the HD DVD format and apparently only compatible with HD DVD players, the discs themselves are physically exactly the same as standard red-laser DVDs. Throw in a software upgrade to support high definition content, HD DVD's UDF 2.5 file structure and AACS and you have a way to deliver HDTV content on a 9.4 GB DVD. By using newer encoding technologies like MPEG-4 and VC-1 and/or lowering the resolution to say, 720p, full length movies easily fit on a standard DVD. Eclipse Data Technologies, a supplier of HD DVD mastering equipment just announced it is offering free upgrades to its customers in order to support 3X DVD manufacturing. This was followed today by DCA Inc. announcing it has mastered the first 3X DVD disc, and that several manufacturers are looking at it as a possible low cost path into HD video. 3X DVD's potential to allow for noticeably lower-priced HD content to come to market is definitely there, but it still remains to be seen if this, like combo DVD/HD DVDs and Total Hi-Def discs will find a home and support in the marketplace. Read - First 3X DVD-ROM Disc Cut with DCA Equipment Read - Eclipse Provides Free HD DVD Upgrade to Replication Facilities Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/92975896/</address><date>2007-02-19T17:54:00</date></alert><alert sourceid="0" unread="true" id="alert_25"><title>Leaders condemn India train blast</title><summary>India and Pakistan say a train bombing that killed at least 66 people will not disrupt their peace process.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6375749.stm</address><date>2007-02-19T18:39:31</date></alert><alert sourceid="0" unread="true" id="alert_26"><title>Iran, Russia in nuclear plant row</title><summary>Tehran denies Russian claims it is late on payments for work on a nuclear reactor in southern Iran.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6375477.stm</address><date>2007-02-19T18:33:05</date></alert><alert sourceid="0" unread="true" id="alert_27"><title>Colombian foreign minister quits</title><summary>Colombia's foreign minister resigns after the arrest of her brother on suspicion of links with paramilitary groups.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6376359.stm</address><date>2007-02-19T18:39:55</date></alert><alert sourceid="0" unread="true" id="alert_28"><title>Five US troops die in Iraq raids</title><summary>Five US soldiers die in two attacks in Iraq on a day violence claims more than 25 lives across the country.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6374909.stm</address><date>2007-02-19T20:24:32</date></alert><alert sourceid="0" unread="true" id="alert_29"><title>Iran hangs man for attack on bus</title><summary>Iran executes a man over a bomb attack which killed 11 members of its elite Revolutionary Guards last week.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6377101.stm</address><date>2007-02-19T20:15:50</date></alert><alert sourceid="0" unread="true" id="alert_30"><title>Flood aid struggle in Mozambique</title><summary>Mozambique says it has the use of only one UN helicopter to help thousands of people displaced by severe floods.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/africa/6377427.stm</address><date>2007-02-19T21:57:46</date></alert><alert sourceid="0" unread="true" id="alert_31"><title>Manhunt for train fire suspects</title><summary>Police in India issue sketches of two men they believe got off a train minutes before a deadly bomb attack.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6377471.stm</address><date>2007-02-20T07:32:59</date></alert><alert sourceid="0" unread="true" id="alert_32"><title>Miami baby sets premature record</title><summary>A baby believed to have spent the shortest time in her mother's womb is set to leave hospital in the US.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6377639.stm</address><date>2007-02-20T08:14:18</date></alert><alert sourceid="0" unread="true" id="alert_33"><title>Nato troops raid Karadzic homes</title><summary>Nato troops in Bosnia search the homes of the children of indicted war criminal Radovan Karadzic.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/europe/6377711.stm</address><date>2007-02-20T08:19:29</date></alert><alert sourceid="0" unread="true" id="alert_34"><title>Cheney ready for US-Japan talks</title><summary>US Vice-President Dick Cheney arrives in Tokyo to discuss regional security issues and Iraq.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/asia-pacific/6377649.stm</address><date>2007-02-20T08:25:12</date></alert><alert sourceid="1" unread="true" id="alert_35"><title>LG's 17-inch W1PRO EXPRESS DUAL laptop packs DVB-T, Vista</title><summary>Filed under: LaptopsIf you've been eying a Vista-equipped laptop to treat yourself after all that chocolate you dutifully resisted last week, you might as well get a TV tuner built right in. LG Electronics' latest 17-inch behemoth packs a silver / black enclosure, integrated DVB-T tuner, and your choice of Intel Core 2 Duo processors to boot. Under the hood you'll find a WSXGA+ display, support for 5.1 Dolby Digital audio, dual 1.2-watt stereo speakers, ATI's Mobility Radeon X1600 graphics set, Bluetooth 2.0, WiFi, and of course, Windows Vista Home Premium pre-installed. While the W1PRO EXPRESS DUAL isn't exactly the lightest machine out there, it weighs in at a respectable 6.8-pounds and shouldn't make a half bad media-centric portable, but considering the nearly $2,600 pricetag LG has slapped on it, bargain hunters needn't look here long.[Via Gizmag] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93370051/</address><date>2007-02-20T15:38:00</date></alert><alert sourceid="1" unread="true" id="alert_36"><title>GlobalTop intros GPS HUD Speed Meter</title><summary>Filed under: GPS, TransportationIt's practically a foregone conclusion that eying your handy GPS unit a bit too much whilst cruising down the freeway can indeed put you and your fellow motorists in peril, and while robotic turn-by-turn voiceovers do quell the staring fits somewhat, we still tend to rely a tad too much on sheer visuals. GlobalTop is hoping to make the roads a safer place to navigate with its forthcoming GPS HUD Speed Meter, which will supposedly makes its debut at CeBIT. This Bluetooth-enabled device purportedly "displays your speed and other navigational info, like direction, onto your car's windshield," and also enables handsfree communications with your BT-equipped cellphone. Moreover, the speed meter can be setup to alert the driver when exceeding a user-set limit, and while you may not be familiar with the brand, it's reportedly a spinoff of f-tech, which bodes fairly well for us actually seeing this thing beyond the Photoshop stage. As expected, there's no pricing or availability deets surfacing just yet, but all that should change come next month.[Via NaviGadget] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93355876/</address><date>2007-02-20T15:08:00</date></alert><alert sourceid="1" unread="true" id="alert_37"><title>Cylo's 3style jog wheel / mouse spins it up</title><summary>Filed under: PeripheralsWhile we've seen more than a few folks get a little mod-happy when it comes to crafting their own mousing devices, Cylo Technology is offering up an apparently well thought-out device that should have audio / video editors going wild. If you feel more comfortable spinning a jog wheel than you ever have manually moving a cursor, the "three-dimensional" 3style mouse is right down your alley, as the hybrid input peripheral handles the typical X and Y axes as well as giving users the ability to scroll in any direction with a simple spin. Utilizing a ball bearing pad, the knob can spin freely with just a nudge, and can interpret Z-axis data as well as offering up right-click functionality by squeezing the edges. While some may envision faint similarities to the iMac's hockey puck mouse of days past, this rendition could probably last a bit more than 30 seconds before becoming destined for the trash bin. Nevertheless, the 3style mouse can be used wirelessly as well as in a wired form, and can purportedly work seamlessly with any application that supports a scroll wheel or jog dial, but we'll have to wait until this thing actually hits store shelves before testing out these bold claims ourselves. Click on through for a live demonstration.[Via HackedGadgets]Continue reading Cylo's 3style jog wheel / mouse spins it up Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93350237/</address><date>2007-02-20T14:42:00</date></alert><alert sourceid="1" unread="true" id="alert_38"><title>Segway's RMP platform for nerdy robots</title><summary>Filed under: Robots, TransportationWhat do you do when your overly hyped Human Transporter skids off the plateau of human interest only to be pummeled by archaic transportation laws? Why, start building mobility solutions for robots, of course. We've already seen a few lazy robots riding Segways around the lab; soon enough, we'll be seeing a lot more what with the Segway RMP (Robotic Mobility Platform) now launched in Japan. The RMP is meant to provide a quick and easy transportation underpinning for new domestic and military robots. RMPs range in price from 6,037,500 to 1,376,550 ($50,000 to about $11,500) and vary by maximum load, speed, size, max angle of climb, and battery capacity. Let the robot crusades begin! Via Robot Watch] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93336617/</address><date>2007-02-20T14:12:00</date></alert><alert sourceid="1" unread="true" id="alert_39"><title>Century's Dolphin waterproof MP3 player</title><summary>Filed under: Cellphones, Portable Audio - Wrap an MP3 player in a silicon tube held secure with cable-ties and what do you get? Well, if you're Japan's Century then you've got yourselves a waterproof MP3 player dubbed the Dolphin. Ok, the player does carry an IPX7 Ingress protection rating which means it really is waterproof (not just splash-proof) up to a depth of about 1 meter -- ideal for laps around the Coral Key Park Marine Preserve. Inside, the Dolphin packs 1GB of flash, USB 2.0, and support for MP3/WMA playback off 8-hour battery. Looks aside, at 12,800 (about $107) -- which includes a pair of unusually decent looking waterproof headphones -- it'll save you a healthy chunk-o-change compared to the $250 waterproof iPod shuffle we showed you last week. [Via Impress] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93336618/</address><date>2007-02-20T13:52:00</date></alert><alert sourceid="1" unread="true" id="alert_40"><title>Sharp's AQUOS R-series of LCDs announced</title><summary>Filed under: Displays, HDTV -Step aside AQOUS D-Series of LCDs, Sharp just unveiled their new flagship R-series of LCD panels for Japan. The new line-up ranges in size from 42- to 65-inches with each packing a 120Hz ASV LCD panel, 3x 1080p HDMI inputs, 1x DVI for that quick all-digital hook-up to your PC, and 2x Firewire for connecting your DV camera and one of Sharp's line-up of hi-def recorders including their new BD-HP1 Blu-ray recorder for on-the-quick dubbing. Just for kicks, Sharp also added their favorite new pet technology, IrSS (AKA, IrSimple) high-speed infrared for throwing up images from like-equipped cellphones and digital cameras. Of course, they also feature dual, integrated analog and digital tuners and 10/100Mbps Ethernet to access Japan's acTVila TV Internet service. The big, bad 65-inch LC-65RX1W (pictured above) mama of the bunch features a 450cd/m2 brightness, 3000:1 contrast ratio, 176-degree angle of visibility, while tipping the scales at 66kg (146-pounds) at just 9.6~12.4-cm (3.78~4.88-inches) thin. It's available March 10th in Japan for 1,000,000 or about $8,361. Expect the rest to hit no later than April with the 57-inch LC-57RX1W demanding 900,000 ($7,524), the 52-inch LC-52RX1W 650,000 ($5,434), the 46-inch LC-46RX1W 550,000 ($4,598), and the 42-inch LC-42RX1W 500,000 ($4,180). [Via Impress] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93330298/</address><date>2007-02-20T13:22:00</date></alert><alert sourceid="1" unread="true" id="alert_41"><title>Sharp's BD-MPC70 Blu-ray theater in a box</title><summary>Filed under: HDTV, Home Entertainment -We already caught their 2.1 channel home theater back at the CEDIA show in September. This time however, Sharp gets official with their new 7.1 Blu-ray in a box home theater kit. The BD-MPC70 pumps 175W across a full 7.1 channels of 8-ohm phallus with playback support for single-layer BD-R/RE media in addition to DVD video, DVD R/RW, DVD-RAM, music CDs, and CD-RW/-R discs. It delivers a 12bit/148.5MHz video DAC and 24bit/192kHz audio DAC with a healthy smattering of the ol' in and outs including 2x digital and 2x analog audio inputs and 1080p video output over HDMI. Available June 25th in Japan for 1,050,000 or about $8,779 whenever these come Stateside. [Via Impress] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93314228/</address><date>2007-02-20T12:42:00</date></alert><alert sourceid="1" unread="true" id="alert_42"><title>Engadget Exclusive: Sony's 2007 Cybershot lineup</title><summary>Filed under: Digital Cameras - That's right, we've got 'em -- catalog shots for Sony's 2007 Cybershot line-up of digital cameras. Go ahead, check the new T20HDPR, T100, T20, H9, H7, G1 (pictured), W200, and W90 Cybershots -- you won't be sorry. All the new cams bring Sony's Super SteadyShot image stabilization and HD output to the show in addition to a hot mix of features spread out across the line; these include such notables as 802.11b/g WiFi with DLNA support, 2GB on-board memory for music playback, a 3-inch tilt-screen LCD, 3.5-inch (yes, 3.5-inch!) LCD, a couple of 15x optical zooms, face-detection technology, and BIONZ image processing -- good to know. Judging by the pics, we can expect a formal, pre-PMA show announcement from Sony on 27 February. Check the gallery below for all the details.Gallery: Engadget Exclusive: Sony's 2007 Cybershot lineup[Thanks, anonymous tipster] Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93308137/</address><date>2007-02-20T12:07:00</date></alert><alert sourceid="1" unread="true" id="alert_43"><title>Woman plummets onto subway tracks while carelessly texting</title><summary>Filed under: Cellphones Granted, texting just might be bigger than Hollywood these days, but bigger than concern for one's own life? Apparently a Kawanishi woman was taking her well-being for granted during her daily route to work, as she collided with a man in a subway station whilst texting away at 8:30 in the morning. Subsequently, she plummeted a few feet down onto the subway tracks, only to be saved by a station worker who fearlessly hopped down to rescue her SMS-focused mind (and body, too) as the oncoming train screeched to a halt just 20 meters before running her over. Thankfully, the dame suffered just minor injuries in the fall, but an estimated 4,500 employees were blaming her for holding up their progress when clocking in late. Notably, there was no word on whether or not the phone was saved, or more importantly, whether or not the presumably urgent SMS ever got sent -- but considering this is the second case in a matter of days in which a human being nearly lost their life to a cellphone, we beg you: text responsibly, dear friends.[Via TokyoMango] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93274207/</address><date>2007-02-20T10:27:00</date></alert><alert sourceid="0" unread="true" id="alert_44"><title>Iran defiant on nuclear programme</title><summary>Iran's president rejects calls to suspend uranium enrichment, a day before a UN deadline runs out.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6378289.stm</address><date>2007-02-20T15:33:54</date></alert><alert sourceid="0" unread="true" id="alert_45"><title>Tobacco firm wins payout appeal</title><summary>The US supreme court throws out a ruling that Philip Morris must pay $79.5m to the widow of a dead smoker.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/business/6379767.stm</address><date>2007-02-20T15:48:25</date></alert><alert sourceid="0" unread="true" id="alert_46"><title>New footage of JFK's last moments</title><summary>A previously unreleased film of John F Kennedy's motorcade shows new details of the final moments before his killing.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6378463.stm</address><date>2007-02-20T11:04:18</date></alert><alert sourceid="0" unread="true" id="alert_47"><title>Heavy shelling in Somali capital</title><summary>At least 12 people are killed in the heaviest fighting in the Somali capital Mogadishu this year.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/africa/6377941.stm</address><date>2007-02-20T13:22:09</date></alert><alert sourceid="0" unread="true" id="alert_48"><title>Pakistan FM visits bomb survivors</title><summary>Pakistan's foreign minister, in India for peace talks, visits survivors of an attack on a cross-border train.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6379119.stm</address><date>2007-02-20T14:41:38</date></alert><alert sourceid="0" unread="true" id="alert_49"><title>EU reaches emissions cuts deal</title><summary>EU environment ministers agree in principle to cut emissions by 20% by 2020, and seek a global 30% cut.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/europe/6377983.stm</address><date>2007-02-20T13:45:47</date></alert><alert sourceid="0" unread="true" id="alert_50"><title>Most premature baby going home</title><summary>A baby believed to have spent the shortest time in her mother's womb is set to leave hospital in the US.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6377639.stm</address><date>2007-02-20T09:48:15</date></alert><alert sourceid="0" unread="true" id="alert_51"><title>Experts tackle the devil's tumour</title><summary>Scientists meet to discuss ways of saving the Tasmanian devil, which is being ravaged by an unusual cancer.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/asia-pacific/6378279.stm</address><date>2007-02-20T11:40:00</date></alert><alert sourceid="0" unread="true" id="alert_52"><title>Nato troops raid Karadzic homes</title><summary>Nato troops in Bosnia search the homes of the children of indicted war criminal Radovan Karadzic.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/europe/6377711.stm</address><date>2007-02-20T12:53:35</date></alert><alert sourceid="0" unread="true" id="alert_53"><title>Nigerian VP 'cannot be removed'</title><summary>A court rules President Olusegun Obasanjo cannot sack his deputy for joining an opposition party.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/africa/6378625.stm</address><date>2007-02-20T11:50:56</date></alert><alert sourceid="0" unread="true" id="alert_54"><title>Kenya's 'most wanted' shot dead</title><summary>Police kill a man believed to be behind a string of murders and armed robberies in Nairobi.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/africa/6378315.stm</address><date>2007-02-20T11:09:37</date></alert><alert sourceid="0" unread="true" id="alert_55"><title>Salvador politicians found dead</title><summary>The bodies of three politicians from El Salvador and their driver are found in a bullet-riddled car in Guatemala.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6378645.stm</address><date>2007-02-20T11:48:56</date></alert><alert sourceid="0" unread="true" id="alert_56"><title>Philippines approves terror bill</title><summary>The Philippine Congress passes a controversial anti-terror bill aimed at tackling militants in the south.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/asia-pacific/6374875.stm</address><date>2007-02-20T11:21:43</date></alert><alert sourceid="0" unread="true" id="alert_57"><title>Australia pulls plug on old bulbs</title><summary>Australia plans to ditch traditional incandescent filament light bulbs in favour of a greener alternative.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/asia-pacific/6378161.stm</address><date>2007-02-20T10:56:33</date></alert><alert sourceid="0" unread="true" id="alert_58"><title>Royal seeks to revive French bid</title><summary>France's Socialist candidate Segolene Royal tries to revive her presidential bid in a televised appearance.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/europe/6377503.stm</address><date>2007-02-20T13:02:05</date></alert><alert sourceid="0" unread="true" id="alert_59"><title>Rape claim splits Iraq government</title><summary>Allegations Iraqi police raped a Sunni woman threaten to eclipse the government's new security drive in Baghdad.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6378821.stm</address><date>2007-02-20T13:09:02</date></alert><alert sourceid="0" unread="true" id="alert_60"><title>US 'Iran attack plans' revealed</title><summary>US contingency plans for possible air strikes on Iran include most of its military infrastructure, the BBC learns.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6376639.stm</address><date>2007-02-20T10:28:34</date></alert><alert sourceid="0" unread="true" id="alert_61"><title>Gunman kills Pakistani minister</title><summary>A Pakistani provincial government minister is shot dead as she prepares to address a political meeting.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6379169.stm</address><date>2007-02-20T14:30:35</date></alert><alert sourceid="0" unread="true" id="alert_62"><title>Bird flu outbreak in Pakistan zoo</title><summary>An outbreak of the deadly H5N1 strain of bird flu kills four peacocks and a goose in an Islamabad zoo.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6378045.stm</address><date>2007-02-20T09:34:56</date></alert><alert sourceid="1" unread="true" id="alert_63"><title>Canon EOS 40D rumors abound</title><summary>Filed under: Digital CamerasIt all started with an EOS 40D splash page posted (and later pulled) from Canon's official Hong Kong web site. Now the 40D's specs are popping on digicam retail sites all over the Intertubes. Most interesting is the supposed spec sheet posted, pulled, and then extracted from a Belgian site by our tireless Engadget interns; here's what it says: 10.1 megapixel CMOS sensor measuring 22.5 x 15-mm, 5fps burst mode, integrated anti-dust cleaning system, 2.5-inch LCD, and sadly... DIGIC II (not III) image processing. It's that last bit of information which makes us a bit skeptical. Although the DIGIC II can be found in their full-frame 400D, the improved DIGIC III is already loosed thereby bringing the whole spec sheet into question. No worries, if Canon is ready to push the 40D out the door then it'll be soon. The big PMA show kicks off in just a few weeks. Now quit staring at that picture, it's not the 40D.[Via Digital Photography Blog] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93789980/</address><date>2007-02-21T13:17:00</date></alert><alert sourceid="1" unread="true" id="alert_64"><title>Blackberry 8800 now on Cingular</title><summary>Filed under: CellphonesStraighten your ties and button your suit jackets, RIM's promiscuous debutante -- the Blackberry 8800 -- is up and dancin' on on Cingular's website. $500 list, or $300 after $50 mail-in rebate and 2-year contract, the 8800 brings everything we expected: quad-band EDGE, GPS, microSD expansion, Bluetooth 2.0, push-to-talk support, and 5-hours talk / 24-days standby in a 0.55-inch device weighing just 4.73-ounces. 3G data? No. WiFi? Not this time. For that we'll have to hold tight for the anticipated mid-year launch of the 8820. [Thanks, President and everyone who sent this in] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93789982/</address><date>2007-02-21T12:47:00</date></alert><alert sourceid="1" unread="true" id="alert_65"><title>Ubixon's Lubix Bluetooth stereo headsets: the magnets make the magic</title><summary>Filed under: Portable Audio -Here's an interesting twist to the Bluetooth headset from Ubixon -- the UBHS-LC1-3D and UBHS-NC1-3D. These Lubix headsets consist of two, magnetically held halves which can be separated and bunged into the ears or slung around the neck, connected for easy toting. They both simulated 3D sound and Bluetooth 2.0 with support for the A2DP, AVRCP, HSP, and HFP profiles. In other words, they support stereo Bluetooth audio while allowing you to control your like-profiled audio device from up to 10-meters away. They'll even work seamlessly (as seamless as Bluetooth gets anyway) with your cellphone although the LC1 does it a bit better (and bulkier) by flashing the caller's ID on that one-line LCD screen. The 28-gram LC1 delivers 10 hours of talk or 9 hours of music while the NC1 goes 6-hours or 5-hours in a lighter, 22-gram package. The LC1 hits Korea for 79,000KRW ($84) while the NC1 slips in at about 59,000KRW ($63). [Via AVING] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93781795/</address><date>2007-02-21T11:47:00</date></alert><alert sourceid="1" unread="true" id="alert_66"><title>Cellphone-packing smoke detector dials for danger</title><summary>Filed under: Cellphones, Misc. GadgetsWhile most smoke detectors will handle the basic job of detecting smoke just fine (providing you check that batt regularly), there's plenty of options out there for those wanting a little something extra, be it added style or additional functionality. Joining those other over-achieving smoke detectors is this new unit from Japanese manufacturer Keisoku Giken, which will automatically phone you at the first whiff of smoke to inform you of its impending demise. Unfortunately, you'll have to supply your own cellphone and service for it (it doesn't appear to support landlines), which makes the device's already hefty 16,800 yen price tag (about $140) even less of a bargain.[Via Textually.org] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93743515/</address><date>2007-02-21T09:24:00</date></alert><alert sourceid="1" unread="true" id="alert_67"><title>TDK's Xa-10 mini flat panel speakers</title><summary>Filed under: Peripherals, Portable Audio -TDK just slipped NXT's crazy-thin SoundVu technology into your pocket. That's right, the 80 117 x 16-mm (3.15 x 4.6 x 0.63-inch) Xa-10 flat panel speaker brings a 1.2W x 2ch waft of breathy bass you might otherwise choose not to float from your trou. The speakers will accept USB power (or batteries) and a mini-stereo input when they hit Japan in March for just 2,980 or about $25. [Via Impress] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93727030/</address><date>2007-02-21T08:02:00</date></alert><alert sourceid="1" unread="true" id="alert_68"><title>Lexar intros 300x UDMA CompactFlash cards, readers</title><summary>Filed under: Digital Cameras, StorageLexar has already given its SDHC cards a boost this year, and the company doesn't seem to be wasting any time bringing its CompactFlash offerings up to speed as well, today introducing a series of new 300x UDMA CompactFlash cards, as well as a pair of card readers to go along with 'em. Available in 2, 4, and 8GB varities, the cards are said to be 125% faster than the company's current CompactFlash cards, delivering a sustained write time of 45MB per second. To hit that top speed, however, you'll need to use them with a UDMA-enabled device, which are currently a rare breed, although Lexar says it expects "several" UDMA-enabled digital cameras to be announced later this year. In addition those mystery cameras, you'll also be able to get the most out of the cards using one of the two UDMA card readers Lexar's set to release this spring, available in your choice of FireWire or USB 2.0 models for $80 and $50 respectively. The cards themselves should also be released about the same time, although Lexar doesn't seem willing to spill the details on how much they're gonna cost just yet.Read - Photography Blog, Lexar Professional UDMA 300x Memory CardsRead - Photography Blog, Lexar UDMA Card Readers Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93699645/</address><date>2007-02-21T06:31:00</date></alert><alert sourceid="1" unread="true" id="alert_69"><title>Fon wants you to help steal business from Starbucks and T-Mobile</title><summary>Filed under: Wireless, Networking -Oh tricky, sneaky Fon. Fresh off their 10,000 Fonero giveaway, they're stepping up the ante with how they give away their loss-leader routers. Their newest campaign is sure to strike a chord with armchair entrepreneurs and Adbusters fans alike: if you live within the immediate vicinity of a Starbucks (read: WiFi range), Fon would like to send you one of their Foneros. Why? Because, if you recall, when you allow users to connect with your internet connection over your Fonero, Fon splits the profit with you -- $1 for every user (who pays $2 to use your connection). So for every $10 T-Mobile / Starbucks WiFi user you swipe, Fon gives you a buck; now, granted this still isn't a scheme for those paranoid about home network security, bandwidth usage, or nefarious hax0rs type with a spoofed MAC and a keen eye for easy hotspot access, but who knows, for those near Starbucks (yes, they'll be checking against known locations) it might even be worth it to buy a budget DSL line just to profit with Fon. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93662859/</address><date>2007-02-21T05:01:00</date></alert><alert sourceid="1" unread="true" id="alert_70"><title>Vonage to become Vonage Wireless?</title><summary>Filed under: Cellphones, WirelessVoIP provider Vonage has already cut a deal with EarthLink to resell WiFi, presumably to go along with some sort of WiFi phone service, but could they have something way crazier (and more costly) on tap? BusinessWeek speculates that Vonage might be getting into the cellular game by launching an MVNO (Mobile Virtual Network Operator). It's not hard to imagine them offering something similar to T-Mobile's HotSpot @Home service, which lets you use a WiFi-enabled cellphone to make VoIP calls over WiFi and and then seamlessly switch over to cellular networks whenever you're outside WiFi range. The problem is that launching an MVNO is no small undertaking. ESPN shuttered MobileESPN last year after failing to attract more than a handful of subscribers, and Amp'd and Helio have spent hundreds of millions of dollars to carve out a slice of what is an incredibly competitive wireless market (Apple was working on an MVNO to accompany the launch of the iPhone, but scrapped the whole thing once it became obvious how difficult it would be to gain marketshare). Could they do it? Maybe, but not without spending a TON of money, which is why it's more likely that they'll introduce a more modest Voice over WiFi service.[Via GigaOm] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93658206/</address><date>2007-02-21T04:25:00</date></alert><alert sourceid="1" unread="true" id="alert_71"><title>Desktop Digital Photo Cube shows photos on diminutive LCD</title><summary>Filed under: Displays, Misc. Gadgets -Here's one from the same folks who brought you the USB Sound Flash Drive, and while eNECESSITIES' Desktop Digital Photo Cube may not adorn your wall as fashionably as a digiframe might, this piece is made for conversation. Ready to perch atop your living room table or office desk, the cube sports a squint-inducing 1- x 1-inch color LCD display, power / brightness / skip buttons, USB 2.0 connectivity, and the ability to internally store "up to 30 digital photos" for cycling through on the built-in screen. Additionally, the "mood light" should set the tone for the upcoming photo, and those looking for the ultimate party favor can toss their own logo on here for an additional charge. Unfortunately, we're not quite sure just how this snapshot showin' block gets its juice, but those looking to snag 25 or more (sorry, non-bulk customers) can find out for themselves at $51.34 a pop.[Via Everything USB] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93640955/</address><date>2007-02-21T03:42:00</date></alert><alert sourceid="1" unread="true" id="alert_72"><title>IEEE pushing 802.16m WiMAX to 1Gbps, hopes to converge with 4G</title><summary>Filed under: Cellphones, WirelessIf there's one thing that we'll never be satisfied with, it's finding out just how many nanoseconds we can shave off our download times from year to year, and thankfully, the IEEE seems to get that. While it has certainly taken its sweet time with 802.11n, the task force has already voted to make 100G the next Ethernet speed, and now it's pushing to make WiMAX implementations even quicker. Reportedly announced at 3GSM, the IEEE has began working on a new version of the 802.16 standard, dubbed 802.16m, which "could push data transfer speeds up to 1Gbps while maintaining backwards compatibility with existing WiMAX radios." Potentially more interesting than cheering for speed boosts is the group's outright assurance that this protocol will meet the ITU's requirements for 4G, insinuating that it should be the token choice for further 4G developments. Nevertheless, the increased bandwidth is supposedly needed due to convergence between VoIP and various forms of multimedia (IPTV, streaming video, digital downloads, etc.), and however true that may be, some skeptics are still understandably doubting the whole "backwards compatibility" aspect. Still, the IEEE hopes to have this together by "the end of 2009," but considering the team's less-than-stellar track record in the deadline department, we're not holding our collective breath.[Via DailyWireless] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93621068/</address><date>2007-02-21T02:42:00</date></alert><alert sourceid="1" unread="true" id="alert_73"><title>GPS-enabled wind chimes sound off while geo-tracking</title><summary>Filed under: GPS -If you think the Dandellas were outlandish uses of GPS technology, here's one that comes mighty close to one-upping even those. The GPS-enabled wind chimes have DIY written all over them, and while the chimes themselves where purchased (after a failed attempt at creating his own, notably), basically everything else that makes the system tick was homegrown. Utilizing Mologogo, servos, circuit boards, and a good bit of coding, the GPS chimes emit their music whenever the tracked individual's cellphone moves in a user-selected path, essentially acting as an alert that someone's headed to their domicile. Of course, the actual options here are a tad limited (albeit very intriguing), but the foundation of the project could indeed be used for a much broader geo-tracking scenario. Regardless, we know there are folks out there eager to give this a whirl, and thankfully for you, everything you need to know (including the oh-so-critical code) is just a Read link away.[Via MAKE] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93596281/</address><date>2007-02-21T01:42:00</date></alert><alert sourceid="1" unread="true" id="alert_74"><title>Sigma finally cops to a release date for its SD14 DSLR</title><summary>Filed under: Digital Cameras -Well it'll have been over six months between the time we first heard about it and when it actually hits store shelves, but we finally have a solid release date for the somewhat-anticipated, Foveon-packing Sigma SD14 DSLR. If it's possible for you to remember back that far, you may recall that Sigma attempted to drum up some interest in this 14 megapixel shooter with a teaser campaign in late August of last year, just before it was officially announced at Photokina 2006. The disappointment came a few months later when Sigma pushed back the SD14's street launch to March, citing some hardware issue that the company wouldn't disclose. And according to a press release on Sigma's website, the problem has indeed been addressed, with the camera scheduled to ship starting on the 6th of next month. Keep in mind, though, that this model isn't for the thrifty -- it's gonna cost you over $2,000 to get in on this action. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93572592/</address><date>2007-02-21T00:42:00</date></alert><alert sourceid="1" unread="true" id="alert_75"><title>Quantum strikes again, charging iPhone touchscreen infringement</title><summary>Filed under: Cellphones, DisplaysIt's not just Apple's ubiquitous click-wheel that Quantum Research is bothering Apple about these days, Quantum is also fussing about the iPhone's touchscreen technology. "We will be looking very carefully at the iPhone," says Duncan Bryan, licensing director at QR. And wouldn't you know: "The description of the iPhone suggests it uses a rear-surface touch screen, and has proximity sensing which can tell if it is held to the ear. That's a QR capability." No formal lawsuit has been filed yet, but based on Apple's complete denial and counterclaims of QR's December 2005 click-wheel allegations, we're guessing it won't be backing down on this one anytime soon. Apparently this "charge transfer capacitive sensing" stuff has been licensed to Motorola and was invented by QR's founder and CEO Hal Philipp. Usually we'd be content to sit back and watch, but all these Apple-related lawsuits and copycats are getting a little tried -- remember those good old fashioned RIM / NTP days?[Via AppleInsider] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93553936/</address><date>2007-02-20T23:42:00</date></alert><alert sourceid="1" unread="true" id="alert_76"><title>Motion Computing unveils RFID-reading C5 medical tablet PC</title><summary>Filed under: Tablet PCs, WirelessAlthough we sincerely hope your only encounter with a clinical assistant tablet PC comes by way of your occupation, it looks like Motion Computing is busting out a medically-focused device to help the dear LPNs keep things in order for the high-falutin' doctors. The C5 touts a vertically centered design, top-mounted carry handle, handwriting recognition, built-in digital camera for documenting wounds, time-stamp / voice-tag capabilities, and even an optional RFID reader to easily check patients in by scanning their wrist straps. Claiming to be the world's first device in the new mobile clinical assistant (MCA) category of PCs, it packs a 1.2GHz Intel Core Solo U1400 processor, Windows Vista Business or Windows XP Tablet PC Edition, a 10.4-inch XGA touchscreen, up to 1.5GB of DDR2 RAM, 30 / 60GB 1.8-inch hard drive options, 802.11a/b/g, Bluetooth, and a rechargeable Li-ion to boot. Furthermore, it weighs in at just 3.1-pounds, so toting this bad boy around the office shouldn't be too much of a burden, and the "durable, semi-sealed enclosure" shouldn't have any issues handling the daily mishaps of your average doctor's lounge. So if you've been looking for a way to digitize your office and get far, far away from those paper-filled drawers, we're sure your IT rep will be hitting you up soon to sneak a peek at this $2,199 tablet.[Via GottaBeMobile] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93548878/</address><date>2007-02-20T23:08:00</date></alert><alert sourceid="1" unread="true" id="alert_77"><title>Prober P360 GPS / PMP handheld does it all</title><summary>Filed under: GPS -These fanciful all-in-one devices just don't seem to come Europe or North America's way very often, and unfortunately for most, Prober's P360 doesn't seem to be breaking that mold anytime soon. Packing a respectable mix of multimedia and GPS capabilities, this pocket-friendly device packs a 3.5-inch touchscreen display, 400MHz Samsung S3C2440A processor, 64MB of NAND Flash ROM, 64MB of SDRAM, WinCE 4.2 runnin' the show, a SiRF Star III chipset, and a built-in speaker to boot. Furthermore, you'll find a dual-mode map for wrapping your brain around POI locations, voice guidance, a rechargeable five-hour Li-ion battery, SD card slot, USB 1.1, wired remote / headphones, audio out, and the ability to play back WMV, WMA, and WAV files on the AV front, while handling a bevy of snapshot formats and even boasting a text viewer. Unfortunately, we've no idea how much the P360 will run folks who are lucky enough to acquire it in four to six weeks, but just know that most of the world will probably envy you.[Via NaviGadget] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93531504/</address><date>2007-02-20T22:38:00</date></alert><alert sourceid="1" unread="true" id="alert_78"><title>Shredz64 project bringing Guitar Hero to the Commodore 64</title><summary>Filed under: Gaming We've already seen the Guitar Hero controller hooked up to a PC, but hardware hacker Toni has decided up the difficultly level even further, endeavoring to wire the ubiquitous plastic axe to his Commodore 64, complete with an all new "Guitar Hero-like" C64 game. While he's still quite a ways from fully realizing that goal, as the pic above and audio clip on the page linked below show, he is making considerable progress, with all of the guitar's buttons working, although the whammy bar, sadly, remains silent. Unfortunately, it's also been over a month since the last update on the project, so we can only hope that he hasn't given up on it -- there's undoubtedly countless C64s just waiting to be dusted off as soon as the DIY guide is ready.[Thanks, Joseph S] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93511887/</address><date>2007-02-20T22:08:00</date></alert><alert sourceid="1" unread="true" id="alert_79"><title>Thrustmaster unveils bevy of Wiimote accessories</title><summary>Filed under: Gaming -If you can't penetrate the market early, you might as well arrive fashionably late with a tempting pricetag, right?. Apparently, Thrustmaster's trying to do just that with its latest barrage of Wiimote accessories, as the firm's charging (and non-charging) docking stations arrive a few months after JoyTech and Nyko's renditions, and the Wiimote sleeves are almost an afterthought at this point. Nevertheless, the T-Charge NW comes in black or white finishes, charges two AA cells via USB (four included), sports a blue status LED, and of course, neatly holds your dear Wiimote / nunchuck combo. The T-Care NW removes the charging functionality, but still manages to include a set of silicone protector sleeves for one Wiimote / nunchuck tandem, and if you're already set in the dock department, the controller covers are available all by their lonesome as well. Thrustmaster's lineup seems to hit all the main areas of concern, including price, as a set of sleeves will run you $9.99 while the T-Care NW and T-Charge NW demand $14.99 and $24.99, respectively. So if you're intrigued about these budget-friendly offerings and just adore high-resolution shots, head on over to Joystiq for a gallery of photos while you wait for these to land in April.[Via Joystiq] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93508830/</address><date>2007-02-20T21:38:00</date></alert><alert sourceid="1" unread="true" id="alert_80"><title>Sony Cybershot G1 digital camera detailed</title><summary>Filed under: Digital CamerasThat batch of new Sony Cybershots let loose this morning was quite a bit to digest all at once, so we thought we'd take a minute to go over one of the more interesting of the still-to-be-officially-announced cameras in greater detail, namely, the Cybershot G1. Apart from that new (for Sony) model name, the camera's particularly notable for its big 3.5-inch (or possibly 3-inch) LCD and uncommonly spacious 2GB of internal memory. Though less unusual, the camera's other specs are also nothing to sneeze at, with a decent 6 megapixel resolution, 3x optical zoom, Carl Zeiss Vario-Tesar lens, built-in WiFi, and Sony's usual SteadyShot and Anti-Blur features. Still not clear, unfortunately, is the price, although as we mentioned earlier, that should be revealed by the end of the month. Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93489405/</address><date>2007-02-20T21:08:00</date></alert><alert sourceid="1" unread="true" id="alert_81"><title>Magellan preps Maestro 4000, 4040, and 4050 GPS units for release</title><summary>Filed under: GPS -Magellan's been known to toss out GPS units three at a time before, and while the company hasn't come forward yet about its presumably forthcoming trio of navigation devices, we've got the skinny anyway. All three Maestro units will sport a 4.3-inch WQVGA touchscreen display, SiRF Star III chipset, and an in-car mounting kit, but the similarities basically end there. On the low-end, you'll find NAVTEQ maps for the 48 contiguous United States, QuickSpell, 1.6 million POIs, and a rechargeable battery with around three hours of juice. The 4040 steps it up by adding more detailed map coverage, 4.5 million POIs, text-to-speech / Bluetooth capabilities, and by playing nice with the real-time traffic add-on service. The flagship unit boasts all the capabilities of its lesser siblings, but also adds traffic functions right out of the box as well as voice recognition software. The Maestro 4000 / 4040 are each slated to land in "early April" for $449.99 / $599.99, respectively, while the high-end 4050 will demand a somewhat steep $799.99 for its niceties when it arrives in May.Read - Magellan Maestro 4000Read - Magellan Maestro 4040Read - Magellan Maestro 4050[Via GPSGazette] Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93486827/</address><date>2007-02-20T20:38:00</date></alert><alert sourceid="1" unread="true" id="alert_82"><title>AMD's new consumer flagship proc, the X2 6000+</title><summary>Filed under: Desktops -The 90nm Athlon 64 X2 processor line looks close to its last breath with the X2 6000+, a 3GHz monstrosity designed as a consumer equivalent to the FX-74. The 6000+ is limited to single processor systems, none of those quad-core frivolities the FX-74 is known to partake in, but the chip can still suck down a maximum of 125 watts, and carries 1MB of L2 cache per core. Where the 6000+ processor really departs from its enthusiast sibling is the $464 pricetag, less than half the cost of a FX-74. The chip is a few months late -- it was slated for Q4 2006 originally -- and will be followed by an 89 watt version in the third quarter of this year, along with a slightly less beefy 5800+ edition, but then its quitsville for AMD's 90nm creations. 65nm here we come! Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93476480/</address><date>2007-02-20T20:08:00</date></alert><alert sourceid="1" unread="true" id="alert_83"><title>ACCS GRAViTONUS gives quadriplegics tongue-controlled computer interface</title><summary>Filed under: Desktops, Misc. Gadgets -While other forms of alternative computing are certainly available, yet another group of researchers are touting their own rendition as a radical new way for quadriplegics to engage in computerized learning and entertainment. Dubbed the Alternative Computer Control System (ACCS) GRAViTONUS, the proposed hands-free system would enable folks who have suffered spinal cord injuries or other forms of paralysis to dictate basic computer functions entirely with their tongue. The prototype looks to be quite non-invasive, and when worn around one's head, can enable users to mouse around and navigate within applications by way of a precise tongue-controllable interface. Interestingly, it's even stated that the device won't hinder one's ability to drink, speak, or breathe, but we assume you'd have to give the mouthpiece a good washing after every use to avoid bacterial buildup. Nevertheless, the ACCS GRAViTONUS backers are now scouting VCs who'd like to get this creation to market, so if you've been looking for something intriguing to get wrapped up in, give these blokes a ring. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93458983/</address><date>2007-02-20T19:38:00</date></alert><alert sourceid="1" unread="true" id="alert_84"><title>Hello Kitty embraces warming blankets, gets fired up via USB</title><summary>Filed under: Misc. Gadgets -If you think we were baffled after seeing Hello Kitty USB foot warmers, you probably can't imagine the speechlessness we all feel when seeing the USB-powered lap warmer. Considering that anyone who would actually toss out their hard-earned dollars on feline feet heaters would likely not have the will power to resist this mat, it's fairly to say to say that this is a must-have for hardcore fans braving the tail end of winter. No word on just how large this thing is, nor if poses any eruption capabilities like one of its siblings (clones?), but judging by the mat-to-USB-connector ratio, this kitty ought to warmly cover a litter or two at least. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93453293/</address><date>2007-02-20T19:08:00</date></alert><alert sourceid="1" unread="true" id="alert_85"><title>Graffiti Research Lab's L.A.S.E.R. Tag</title><summary>Filed under: Displays - Lessee here, we've got lasers, creative input devices, a "stick it to The Man" aesthetic and a Mooninite -- sounds like a successful night of hacking to us. Graffiti Research Lab and friends hacked together a high powered projector with some computer components and a camera to track the writings of a 60mW Green Laser on the side of a building in Rotterdam and project it as blue graffiti. The resulting art looks surprisingly good, and the perpetrators were kind enough to document the event, along with providing instructions for doing up your own version. It's hard to describe, so we recommend peeping the video after the break, or the better quality vids and pics over at the read link.[Thanks, Teferri]Continue reading Graffiti Research Lab's L.A.S.E.R. Tag Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93438390/</address><date>2007-02-20T18:42:00</date></alert><alert sourceid="1" unread="true" id="alert_86"><title>Australia to phase out incandescent bulbs by 2010</title><summary>Filed under: HouseholdWhile some US cities like Raleigh are already planning steps to cut back on energy wastes by converting to more efficient lighting systems, it looks like the entire continent of Australia could be following suit. Claiming to be the "world's first" national government to phase out incandescent light bulbs in favor of the more "fuel-efficient, compact fluorescent bulb," environment minister Malcolm Turnbull is hoping to "cut Australia's greenhouse gas emissions by four million metric tonnes a year by 2015." Citing the "climate changes" the world is facing as a "global challenge," Turnbell also urged other nations to follow suit in making a difference, but didn't exactly open up his personal wallet to stock our households with those uber-pricey bulbs. Interestingly, some environmentalists feel that the bulk of greenhouse gas emissions come from government and business-related activities, which should presumably take priority over swapping out a country's light bulbs. Still, we've got no complaints with hooking homes up with LED / fluorescent options to help Mother Earth, but shouldn't Australia (and America, too) ink its name on the Kyoto Protocol before getting all high and mighty about saving the planet? Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93432534/</address><date>2007-02-20T18:08:00</date></alert><alert sourceid="1" unread="true" id="alert_87"><title>Palm makes Treo 700wx official for Verizon</title><summary>Filed under: Cellphones, Handhelds -Palm and Verizon have made official today what we've known now for a while (as have Sprint and Alltel): 32MB of RAM in a Windows Mobile 5 device just doesn't really cut it. The Treo 700wx rights the 700w's wrongs with an extra 32MB of memory for a grand total of 64MB; otherwise, though, the device is all but identical to its older sibling, with Windows Mobile 6 sadly nowhere in sight. Get it now while it's hot at Verizon stores or online for a stiff $399 on 2-year contract after $100 rebate. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93414274/</address><date>2007-02-20T17:40:00</date></alert><alert sourceid="1" unread="true" id="alert_88"><title>Powered bumpers defend your smart car when all else fails</title><summary>Filed under: Robots, Transportation -Smart cars are all well and good until you start to think of the horrible consequences if something should go wrong. Honestly, we're willing to take that risk just for the rewards of cruising along in a robotic car "platoon": saving gas, skipping traffic and perhaps getting in a bit of Gears of War while we're at it. Luckily, more judicious minds than ours are hard at work at the problem, and just might've discovered a way to keep smart car-filled roads from becoming riddled with the bodies of overly-optimistic bloggers. Alasdair Renfrew of Manchester University, UK, along with a couple of colleagues, has devised an extendable fender that can keep you safe and humming along the freeway, even when traditional wireless communications fail. The smart cars will traditionally be communicating with each other and roadside beacons wirelessly, and if one of those elements breaks down, the cars bust out powered bumpers to feel the car in front and navigate accordingly. That way, as long as the front car of a pack keeps to the speed limit and in its lane, the group should be fine -- and your Xbox session needn't be interrupted. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93410533/</address><date>2007-02-20T17:08:00</date></alert><alert sourceid="1" unread="true" id="alert_89"><title>GoogleFi gives 360 addicts Xbox Live on the go</title><summary>Filed under: Gaming, Transportation, Wireless - Obviously, quite a few possibilities open up when your whole town is wired for WiFi, but we can't say we really pegged drive-by 360 play as one of them. Mountain View, CA residents Brandon Wirtz and Jake Ludington fixed up Brandon's Jeep with 23-inch Samsung LCD and an Xbox connected to Google WiFi via Jake's laptop. The total cost of wire-free 360 action is about $4000 if starting from scratch, but isn't that a small price to pay for the freedom to frag?[Via BBC News] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93394047/</address><date>2007-02-20T16:38:00</date></alert><alert sourceid="1" unread="true" id="alert_90"><title>Cingular's BlackBerry 8800 unboxed</title><summary>Filed under: Cellphones -He got us those original BlackBerry 8800 shots, so we're guessing these unboxing pics of the phone here were no sweat for Boy Genius. We still can't claim to be crazy about the device, which launched last week, but we're sure plenty of suits will be glad to replace their aging CrackBerries with this fancy new QWERTY version. As a side note -- could Cingular's boxes be any more boring? Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93388948/</address><date>2007-02-20T16:08:00</date></alert><alert sourceid="0" unread="true" id="alert_91"><title>Blair announces Iraq troops cut</title><summary>Tony Blair says he hopes to cut the number of UK troops in Iraq from 7,100 to 5,000 within months.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/uk_politics/6380933.stm</address><date>2007-02-21T13:15:15</date></alert><alert sourceid="0" unread="true" id="alert_92"><title>Tehran dismisses threat of force</title><summary>Iran's top nuclear negotiator dismisses threats of force against it, as the UN prepares to make a crucial report.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6380879.stm</address><date>2007-02-21T02:38:26</date></alert><alert sourceid="0" unread="true" id="alert_93"><title>Zimbabwe's police ban protests</title><summary>Zimbabwe police ban protests as Robert Mugabe marks his 83rd birthday by vowing to stay on as president.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/africa/6382405.stm</address><date>2007-02-21T11:35:20</date></alert><alert sourceid="0" unread="true" id="alert_94"><title>S Asia rivals sign nuclear pact</title><summary>India and Pakistan sign an agreement to reduce the risk of accidental nuclear conflict in the region.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6381261.stm</address><date>2007-02-21T11:54:32</date></alert><alert sourceid="0" unread="true" id="alert_95"><title>Iraq PM sacks 'rape case' critic</title><summary>Iraq's prime minister moves to put an end to disquiet about an alleged rape of a Sunni women by police.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6382119.stm</address><date>2007-02-21T13:01:17</date></alert><alert sourceid="0" unread="true" id="alert_96"><title>Maoists walk out of Nepal camp</title><summary>Hundreds of former Maoist rebels walk out of a holding camp in Nepal, complaining of poor conditions.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6382093.stm</address><date>2007-02-21T12:16:21</date></alert><alert sourceid="0" unread="true" id="alert_97"><title>Philippines army is 'in denial'</title><summary>A UN envoy says the Philippines army is in "almost total denial" about a wave of extra-judicial killings.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/asia-pacific/6381291.stm</address><date>2007-02-21T05:15:15</date></alert><alert sourceid="0" unread="true" id="alert_98"><title>Stars raise $1.3m for Obama</title><summary>Celebrities donate $1.3m to Democrat Barack Obama's presidential campaign at a lavish Beverly Hills fund-raiser.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6381375.stm</address><date>2007-02-21T07:55:03</date></alert><alert sourceid="0" unread="true" id="alert_99"><title>Britney Spears 'back into rehab'</title><summary>Pop star Britney Spears is back in rehab, days after shaving her head, US media reports say.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/entertainment/6380827.stm</address><date>2007-02-21T09:02:53</date></alert><alert sourceid="0" unread="true" id="alert_100"><title>Football: Lille 0-1 Man Utd</title><summary>Ryan Giggs' controversial late winner for Man Utd almost sparks a Champions League walk-out by Lille.</summary><address>http://news.bbc.co.uk/go/rss/-/sport1/hi/football/europe/6371329.stm</address><date>2007-02-20T21:38:44</date></alert><alert sourceid="0" unread="true" id="alert_101"><title>UN backs peace force for Somalia</title><summary>The UN Security Council approves the deployment of an African peacekeeping force to tackle unrest in Somalia.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/africa/6381189.stm</address><date>2007-02-21T08:39:08</date></alert><alert sourceid="0" unread="true" id="alert_102"><title>Big Anglo American profits jump</title><summary>Mining giant Anglo American is to return $3bn to shareholders after reporting a 46% rise in annual profits.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/business/6381739.stm</address><date>2007-02-21T09:36:52</date></alert><alert sourceid="0" unread="true" id="alert_103"><title>US probes troops' neglect claims</title><summary>The US says it is reviewing the way its wounded soldiers are cared for at hospitals, after critical media reports.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6381453.stm</address><date>2007-02-21T09:17:06</date></alert><alert sourceid="0" unread="true" id="alert_104"><title>No end to deadly Bolivian floods</title><summary>Up to 340,000 people have been affected by continuing flooding in Bolivia, which has left 35 people dead.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6380331.stm</address><date>2007-02-20T18:25:36</date></alert><alert sourceid="0" unread="true" id="alert_105"><title>Japan ups interest rates to 0.5%</title><summary>Japan's central bank shows signs of confidence in the country's economy, raising interest rates to 0.5%.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/business/6381335.stm</address><date>2007-02-21T08:07:26</date></alert><alert sourceid="0" unread="true" id="alert_106"><title>Prison demand for Poso suspects</title><summary>Indonesia prosecutors seek 20 year jail terms for three men accused of beheading Christian schoolgirls.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/asia-pacific/6381511.stm</address><date>2007-02-21T08:40:06</date></alert><alert sourceid="0" unread="true" id="alert_107"><title>Denmark to pull troops from Iraq</title><summary>Denmark will withdraw its troops from Iraq by August, Danish Prime Minister Anders Fogh Rasmussen says.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6382675.stm</address><date>2007-02-21T13:07:30</date></alert><alert sourceid="0" unread="true" id="alert_108"><title>Leaders discuss UN's Kosovo plan</title><summary>Serbian and ethnic Albanian leaders are holding final talks in Vienna on the UN plan for Kosovo's future.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/europe/6380565.stm</address><date>2007-02-21T11:48:45</date></alert><alert sourceid="0" unread="true" id="alert_109"><title>Iran 'swiftly seeks nuclear goal'</title><summary>Iran's president says he wants nuclear power as soon as possible, as critics in Iran urge him to accept UN demands.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6381477.stm</address><date>2007-02-21T12:10:51</date></alert><alert sourceid="0" unread="true" id="alert_110"><title>Militant dies in Israeli ambush</title><summary>Israeli undercover agents kill a commander of the militant Islamic Jihad group in the northern West Bank.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6381653.stm</address><date>2007-02-21T08:49:42</date></alert><alert sourceid="0" unread="true" id="alert_111"><title>India eyes Scotch takeover</title><summary>An Indian businessman is set to complete a deal to buy Scottish whisky firm Whyte and Mackay for ?550m.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/business/6381339.stm</address><date>2007-02-21T13:04:47</date></alert><alert sourceid="0" unread="true" id="alert_112"><title>India boat capsize bodies found</title><summary>Rescue workers recover bodies of 15 children and three men from a school trip boat accident in India.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6381289.stm</address><date>2007-02-21T04:57:46</date></alert><alert sourceid="0" unread="true" id="alert_113"><title>Blair announces Iraq troops cut</title><summary>Tony Blair says he hopes to cut the number of UK troops in Iraq from 7,100 to 5,000 within months.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/uk_politics/6380933.stm</address><date>2007-02-21T13:44:46</date></alert><alert sourceid="0" unread="true" id="alert_114"><title>Fear as cyclone nears Mozambique</title><summary>Mozambique is on the highest level of alert as a cyclone with winds of up to 175km/h approaches.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/africa/6383675.stm</address><date>2007-02-21T17:06:58</date></alert><alert sourceid="0" unread="true" id="alert_115"><title>Italian PM faces coalition crisis</title><summary>Italy's Romano Prodi calls a special cabinet session after his fragile coalition loses a key foreign policy vote.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/6383051.stm</address><date>2007-02-21T17:22:45</date></alert><alert sourceid="1" unread="true" id="alert_116"><title>Fujifilm's FinePix S5700</title><summary>Filed under: Digital Cameras - Another hot off the pre-PMA presses, Fujifilm's got their new FinePix S5600 followup ready to go, the S5700. It's got a 10x zoom, 7.1 megapixel sensor, 2.5-inch display, 1600 ISO setting, image stabilization, 27MB internal memory, and, you're not going to believe this, xD and SD support. Unfortunately it uses four AA cells instead of a nice Li-ion battery. No price just yet, but the black model lands (somewhere) at the end of March, with the silver following in April.Gallery: Fujifilm's FinePix S5700 Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94150403/</address><date>2007-02-22T06:14:00</date></alert><alert sourceid="1" unread="true" id="alert_117"><title>Fujifilm's FinePix A820 and A900 for consumers</title><summary>Filed under: Digital Cameras - Just like Canon's new PMA-bound A Series cameras, Fujifilm's new A820 and A900 cameras don't really break a lot of new ground, but there sure is a lot more megapixel bang-for-buck going on here. For $180 and $200, respectively, the A820 brings 8 megapixels and the A900 goes for 9, while both camera have 4x zooms and 2.5-inch LCDs. Unfortunately, there doesn't seem to be any form of optical image stabilisation here, nor any of those much-hyped Face Recognition AF/AE features we've been seeing in other PMA offerings, but if all you're looking for is pixels and lots of 'em, you can't go far wrong with this pair of FinePix, which will be hitting shelves in March. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94137650/</address><date>2007-02-22T05:46:00</date></alert><alert sourceid="1" unread="true" id="alert_118"><title>Canon's new PowerShot A570 and A560</title><summary>Filed under: Digital Cameras - Canon sure likes to yuk it up with the "A Series" puns. "A" for affordable, for the AA batteries you can stick in these things, for the "A" Team the cameras represent -- it's a real riot. Luckily, "affordable" doesn't have to mean "boring" anymore, and these two PowerShots include fancy 4x zooms, 7.1 megapixel CCDs, 2.5-inch LCDs and that DIGIC III processor for speedier operation, along with 1600 ISO and Face Detection. Sound familiar? You can have it all for a few more bucks, 1x less zoom and quite a bit more pocketability in the Digital ELPH series. What the A570 adds that the A560 and those ELPH cousins lack is optical image stabilisation. You can pick one up for $280, or if you don't mind the blur, grab an A560 for $230. Both will be out in March.Gallery: Canon's new PowerShot A570 and A560 Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94115873/</address><date>2007-02-22T04:43:00</date></alert><alert sourceid="1" unread="true" id="alert_119"><title>Canon's compact PowerShot TX1 captures 7.1 megapixel stills and HD video</title><summary>Filed under: Digital Cameras - Watch out, Sanyo, because your diminutive HD2 camcorder is about to face some very daunting competition from Canon. Like the recently announced Sanyo, the PowerShot TX1 packs a 7.1 megapixel CCD into a tiny little package capable of capturing 720p HD video as well -- but unlike the $700 HD2, Canon is hanging just a $500 pricetag on this model. Besides its one-two punch of high resolution stills and videos, this device offers a 10x optical zoom (with an optically-stabilized lens), a 115,000 pixel LCD, and ISO settings ranging from 80 to 1600. You're also getting the latest Digic image processor, advanced face detection and red eye reduction, Vista-compatibility, 14 shooting modes, and a so-called "Intelligent Orientation Sensor" to keep the display looking right no matter how you're holding the cam. No word so far on a release date, but with all this functionality at a very attractive price, you can probably expect the TX1 to fly off shelves when it finally makes its debut.Gallery: Canon's compact PowerShot TX1 captures 7.1 megapixel stills and HD video Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94113961/</address><date>2007-02-22T04:25:00</date></alert><alert sourceid="1" unread="true" id="alert_120"><title>Canon debuts SD750 and SD1000 Digital ELPH cameras</title><summary>Filed under: Digital Cameras - Two new compact and fashionable PowerShot Digital ELPHs from big C, the SD750 and SD1000. Canon seems to be mostly focused on the looks here: we've never seen a growed-up digicam manufacturer be so proud of "Dynamic Dual-Tone Elegance," but there's decent stuff under the hood. Like most of the PMA-bound cameras we've spotted, these include Face Detection-based auto focus, auto exposure and red-eye correction. There's also the DIGIC III Image processor, and ISO as high as 1600, but everybody comes for the basics: 3x zoom, 7.1 megapixel CCD and a 2.5-inch LCD in each shooter. The $300 SD750 gets a bit fancy on form factor, but manages to be a mere 0.75-inches thick, while the 4.5 ounce SD1000 keeps the the classic ELPH look and also retails for $300. Both should be out in March, and include 32MB SD cards for good luck, though no mention is made of SDHC. Remember, it's fashion first for this line.Gallery: Canon debuts SD750 and SD1000 Digital ELPH cameras Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94113962/</address><date>2007-02-22T04:23:00</date></alert><alert sourceid="1" unread="true" id="alert_121"><title>Canon's EOS-1D Mark III DSLR with live LCD</title><summary>Filed under: Digital Cameras - Canon's latest pro DSLR is officially here as of tonight: welcome the EOS-1D Mark III. This 10.1 megapixel shooter can fire 10fps in bursts of up to 110 large JPEGs or 30 RAW files with is dual DIGIC III processor. It also features a really friggin light sensitive APS-H size 28.1 x 18.7mm CMOS sensor with ISO modes up to 3200 (it's also got a "highly usable" just-in-case 6400 mode sure to kill image quality), but the real winner here is the 3-inch live LCD (with 5 and 10x magnification for locking that zoom). There's also a new WFT- E2A Wireless File Transmitter option for dumping to external storage and even GPS geotagging, the OSK-E3 Original Data Security Kit for file encryption and verification (if your images are just that valuable), the Speedlite 580EX II flash, and EF 16-35mm f/2.8L II USM lens. We don't yet have word on price or release date, but you know what they say about having to ask.Gallery: Canon's EOS-1D Mark III DSLR with live LCD Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94110286/</address><date>2007-02-22T04:16:00</date></alert><alert sourceid="1" unread="true" id="alert_122"><title>S1Digital's impressive new lineup of Media Centers</title><summary>Filed under: Home Entertainment, Media PCsMedia Centers are so in now and that you have to really do something to make your black box stand out, and S1Digital's new lineup of media centers and servers does just that. Actually there are two series, the ProLine for professional installers and home automation companies and the Home Series for the rest of us. The Home Series includes the Platinum, Gold and Mighty editions, all running Core 2 Duo processors and Vista Home Premium. The Mighty is the size of a book and includes built in WiFi and DVD burner. Up next is the Gold, which is a more traditional size and adds up to 1TB of storage, HDMI, 2 ATSC and 2 NTSC tuners (sorry no CableCARD here), 7.1 audio and Viiv. The Platinum tops the Home Series, adding a quiet design an internal scaler and optional HD DVD or Blu-ray drive. But they don't stop there and are trying to join Niveus in the high end market with the ProLine Series, which of course does everything the Home series does, but with Vista Ultimate, rack mountable, a silent design and two-way control for all your favorite home automation systems like Crestron and AMX. As impressive as this lineup is, we are once again left wonder, where are the CableCARDs?Read: S1Digital Introduces the Home Series Line of Media CentersRead: S1Digital Sets a New Reference Standard with ProLine Series Media Centers Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94110287/</address><date>2007-02-22T04:04:00</date></alert><alert sourceid="1" unread="true" id="alert_123"><title>Apple and Cisco settle! iPhone name to be used by both</title><summary>Filed under: Cellphones - - -Here's one we didn't exactly see coming (at least not like this): Apple and Cisco have settled that "silly" lawsuit, with Apple agreeing to guarantee the exploration of "interoperability in the areas of security, and consumer and enterprise communications" according to the WSJ. We don't know exactly what that means, but it doesn't sound fantastic for Jobs, who we're sure wanted to have exclusivity over the name without cutting a partnership with Cisco, and didn't want to have to pay a red cent for it. But this does sound a lot like what Cisco wanted initially from Apple, and might possibly wind up in some kind of SIP / VoIP solution that allows iPhones and iPhones to communicate. Apparently both will make use of the trademark in the market (i.e. Apple's and Cisco's iPhones will both continue to be iPhones), and all's well that ends non-litigious.[Thanks, Nick and Jay] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94075975/</address><date>2007-02-22T02:42:00</date></alert><alert sourceid="1" unread="true" id="alert_124"><title>Nintendo Wii beats up on the competition in power savings</title><summary>Filed under: Gaming, Home Entertainment -So, the graphics might just be warmed over GameCube fare, but the Wii sure does take those wimpy specs and runs with 'em. A new showdown between the big three home consoles and a mid-range PC doesn't compare games or GPUs, but rather power consumption, and the Wii wins by a landslide. The watts don't just bleed during gameplay, DVD playback seems to require immense effort from the 360 and PS3, and even the consoles in "idle" mode consume about ten times the watts of the Wii. Of course, the consoles consume a minimal amount of power in standby, which is substantially more when the Wii's Connect24 service is on, but not quite a deal breaker, just about a $1 a month of power. So if you're looking to shave a few bucks off your power bill or do your treehuggin' duty to the environment, it looks like the choice is fairly obvious -- though you'll naturally have to look elsewhere than the Wii to get your video playback kicks.[Via Joystiq] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94066659/</address><date>2007-02-22T02:09:00</date></alert><alert sourceid="1" unread="true" id="alert_125"><title>Frenzy Rumble transforming headphones: lamer it sounds</title><summary>Filed under: Misc. Gadgets, Portable Audio -You know, a Transformers movie was really its own reward, but all these transforming gadgets -- movie related and no -- are really making it all the more exciting, especially when we're talking completely superfluous fluff. Take these new Frenzy Rumble Earphones, for example. There's no reason you'd want 'em on your head, and there's no way they push out an adequate volume for desktop use when in that transformed state. A perfect blend of uselessness and inconvenience. You can get yours in July for about $37.[Thanks, Aaron D] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94046982/</address><date>2007-02-22T01:14:00</date></alert><alert sourceid="1" unread="true" id="alert_126"><title>Bill Gates clamps down on daughter's internet time</title><summary>Filed under: Desktops, Laptops, Tablet PCsSure, we've seen individuals getting their hand slapped (or worse) for browsing the internet a bit too often, but you'd assume that having a dad who envisioned the Redmond powerhouse and pays the bills by way of computing would be the perfect father figure for the computer-addicted. Apparently, that's not exactly so, as a recent Reuters report tells of Bill Gates himself clamping down on his 10-year old daughter's internet and gaming time. According to Bill, his oldest gal wasn't even into the 'net until this school year, where tablet PCs became a necessary tool, but now that she's found access to a never-ending supply of information, her habits have suddenly changed. She latched onto Viva Pi ata, purportedly playing for "two to three hours per day," after which her health started deteriorating and her chore accomplishments plummeted. Although we mention those last bits in jest, Mr. Gates slapped down a "45-minutes per day" law for non-school related computing tasks on the weekdays, and added just 15 minutes for weekends, probably garnering quite the evil eye and stirring up early thoughts of rebellion in his youngster. Seriously Bill, if you're that worried about daddy's little girl stumbling upon some form of cyber predator, there's always the parent-approved IM-Me, but throwing time restrictions on your own products is just a tad illogical, no?[Via BloggingStocks, thanks Randall] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94027868/</address><date>2007-02-22T00:19:00</date></alert><alert sourceid="1" unread="true" id="alert_127"><title>Pentax busts out Hasselbladian 31.6 megapixel 645 Digital</title><summary>Filed under: Digital Cameras - Pentax has apparently tapped Kodak to provide its 31.6 megapixel KAF-31600 medium format CCD for the upcoming 645 Digital, which would seem to be the company's highest resolution digital camera to date. So far all that's known from the pre-PMA announcement is that the 645 will sport both SD and CF slots, and will ship with a specially-built 55mm lens that's also compatible with 645-series SLR film cameras. We should find out more about this behemoth in early March -- although possibly not pricing and release info -- but one thing we can say for sure is that if it's priced anything like the Hasselblad H3D-31 whose sensor it shares, expect to pay out well into five figures.[Thanks, David N.] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94009335/</address><date>2007-02-21T23:24:00</date></alert><alert sourceid="1" unread="true" id="alert_128"><title>Pentax pops out the Optio W30 and A30</title><summary>Filed under: Digital Cameras -There's some heated competition already for our PMA eyeballs, and Pentax sure wants a slice. They don't have anything terribly outstanding on the consumer end, but these W30 and A30 Optio shooters still do pretty well for themselves. The A30 (pictured) takes a pretty traditional approach to the compact genre, boosting the megapixels to 10 and offering up 2.5-inches of LCD. There's also ISO 3200 and some fancy gyro-based shake reduction, along with face recognition auto focus and auto exposure, all in a pretty dang compact SDHC-munching body. The W30 steps it back a bit, with a 7.1 megapixel CCD and mere digital shake reduction, but the rest of the specs are there, along with a waterproof and dustproof housing that can handle being up to three meters under water for two hours. No word on price or availability for either camera, but we're sure we'll be finding out soon enough. Peep the W30 after the break.[Thanks, David N]Read - Optio A30Read - Optio W30Continue reading Pentax pops out the Optio W30 and A30 Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/94000890/</address><date>2007-02-21T23:09:00</date></alert><alert sourceid="1" unread="true" id="alert_129"><title>Xbox 360 Wireless Receiver for Windows now available</title><summary>Filed under: Desktops, Gaming, Peripherals, Wireless -It sure took its own sweet time to make it to market -- we first saw this thing at E3 in 2006 -- but the Xbox 360 Wireless Receiver for Windows is finally available for purchase. The adapter lets you use your standard wireless 360 peripherals, such as the Xbox 360 Wireless Controller and Wireless Headset, with your Windows PC. That means Windows users, which have been enjoying the fruits of a USB 360 controller since before the console launched, can finally get in on some wireless action, and it'll only cost them $20 for the privilege. It also means that much more fun for upcoming Games for Windows titles such as Shadowrun, UNO and Halo 2, along with generic game controls and VoIP functionality. Microsoft is also releasing a $60 package which includes a receiver and a wireless controller. Both items should be available at retail now. Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93985665/</address><date>2007-02-21T22:24:00</date></alert><alert sourceid="1" unread="true" id="alert_130"><title>Engadget Podcast 100 - 02.21.2007</title><summary>Engadget Podcast 100</summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93966098/</address><date>2007-02-21T21:49:00</date></alert><alert sourceid="1" unread="true" id="alert_131"><title>Switched On: What of the Wii-buked?</title><summary>Filed under: Features, Gaming -Each week Ross Rubin contributes Switched On, a column about technology, multimedia, and digital entertainment: - -Nintendo has been on an Apple-like hit parade since the disappointing market performance of the GameCube. The DS and DS Lite handily staved off highly touted competition from Sony. The PSP may have appealed to a different, if for now narrower, demographic, but units are units, and there's no escaping them when you're marketing a platform. -The launch of the Wii has been nothing but magic mushrooms from the hype around the controller to the E3 reception to late-night Wii Tennis face-offs between Conan and Serena Williams. Check out this apologetic fan comment on Amazon's product page: "Graphics might not be high definition, but it looks very close to the Xbox 360 and PS3 when not running in HD mode. And definitively better than the original Xbox and PS2." Better than the Xbox and PS2, eh? That's setting the sensor bar pretty low for a system that shipped six years after the PS2. -Yet, it's no suprise that the Wii has been highly sought. I thought it was the best consumer technology product of 2006. The Nintendo team has executed almost flawlessly, but the company has brushed aside criticisms regarding product shortages without so much as a flick from a Wiimote. Commenting earlier this month on the mayhem surrounding Sony's PlayStation 3's product launch shortages, Nintendo of America vice president of marketing and corporate affairs Perrin Kaplan noted that "we didn't have anyone in line that got shot waiting for our system. So there's one sign of the different approaches between our two companies."Continue reading Switched On: What of the Wii-buked? Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93966099/</address><date>2007-02-21T21:34:00</date></alert><alert sourceid="1" unread="true" id="alert_132"><title>Sirius' and XM's merger presentation revealed</title><summary>Filed under: Portable Audio, Portable Video - Brace yourself: corporate speak ahead. We normally aren't in for all this "cost synergies" and "roadmap" hogwash that all the suits seem to get so hot for, but when it comes to a merger of two cutthroat competitors like this, we couldn't help but take a peek. Other than the technology improvements we mentioned, there isn't much talk about consumer benefits in here, and there's absolutely no mention of creating some sort of single satellite radio provider, just the power of combined resources. Most of the talk is directed at shareholders and those "synergies" that help out the bottom line -- to the tune of an estimated $3-7 billion in savings, though a $4 billion "flex" does seem to cast a bit of doubt on those numbers. The rest of the slides deal with plans for getting regulatory approval, which basically amount to arguing the case of intense competition from radio, iPods and other emerging wireless standards (see above). That said, XM and Sirius seem quite confident of success on the regulatory end of things, and look to have put a quite a bit of thought into it. Pending approval from the feds, along with respective shareholder go-ahead, XM and Sirius plan on sealing the deal by the end of 2007.Gallery: Sirius and XM's merger presentation revealed Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93959647/</address><date>2007-02-21T21:12:00</date></alert><alert sourceid="1" unread="true" id="alert_133"><title>Art Lebedev intros Verbarius electronic clock</title><summary>Filed under: Misc. GadgetsArt Lebedev may be best known these days for its various display-ridden peripherals, and the delays and uncertainty surrounding each, but the prolific design firm's got plenty more on its plate, to which it's now added the Verbarius electronic clock. As you can see above, the clock does away with the usual time-telling tools in favor of spelling things out, in five different languages no less. What's more, it changes up its verbiage each time you ask it the time, displaying variations like "forty-five minutes past four," "fifteen minutes to five," "four forty-five", and "a quarter to five." This being Lebedev, of course, they're also taking their time to build up anticipation in the device, with the clock supposedly set to only begin shipping in November. You can get your pre-orders in now, however, with a discount price of $158.25 available to those who order before September 1st, after which it'll set you back about $180. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93944802/</address><date>2007-02-21T20:44:00</date></alert><alert sourceid="1" unread="true" id="alert_134"><title>HTC "Gene" makes FCC appearance</title><summary>Filed under: Cellphones, Handhelds -After a fairly productive 3GSM last week showing off new Windows Mobile 6 wares in the form of the Vox and the Advantage, everyone's favorite Taiwanese Windows Mobile ODM has graced us with this here "Gene" (or at least we think that's what it's called, based on its model number, GENE100) via our usual Tipster Extraordinare, the FCC. The specs aren't really enough to knock our socks off -- data tops out with quadband EDGE, the cam is a simple 2 megapixel unit, plus the usual Bluetooth 2.0, 128MB of ROM, 64MB of RAM, and QVGA display atop a 201MHz TI OMAP850 -- but at this point, we're still happy to get whatever new Professional hardware we can get. Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93941965/</address><date>2007-02-21T20:24:00</date></alert><alert sourceid="1" unread="true" id="alert_135"><title>Helio's Pantech PN-810 QWERTY device pops up in FCC</title><summary>Filed under: Cellphones, Handhelds -And here it is, Helio's coup de gr ce. The QWERTY handset we'd heard Helio was cookin' up with Korea's Pantech actually hit the FCC some time ago, but the shots we were able to glean from the test apparatus documentation were teasers at best. Thanks to the wonders of expired confientiality agreements, that same FCC documentation now yields a bounty of goodness, including a user's manual and a full array of pictures. The so-called PN-810 gives the illusion of a dual slider, but actually employs two distinct layers to provide two completely different keypads depending on the slide direction: QWERTY in one, numeric in the other. Key features (other than the unusual form factor, of course) include a 2.1 megapixel cam, Bluetooth, and the full array of goodies that comes with Helio membership. A release date remains uncertain, but the PN-810's been chilling with the feds for some time now, so we wouldn't be terribly surprised to see it hit in the near term.Gallery: Helio's Pantech PN-810 QWERTY device pops up in FCC Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93938442/</address><date>2007-02-21T20:05:00</date></alert><alert sourceid="1" unread="true" id="alert_136"><title>ATI's R600 graphics chip hits snag</title><summary>Filed under: Desktops, GamingWe've had our eye on ATI"s new top-end R600 graphics chip for some time now, first getting a look at some impressive early benchmarks and then being taken aback by the foot-long graphics card the chips will call home (at least in some configurations). Sadly, it seems that those with money and power (as in 270W) to spare will have to wait a bit longer to slot one of the behemoths into their own PCs, with The Inquirer reporting that the R600 chips, and consequently the graphics cards based on 'em, have been delayed yet again, now pushed back to sometime in the second quarter of this year. There doesn't seem to be any word on the reason for the delay, but the news apparently came straight from ATI parent company AMD. Given what the cards are likely to cost, however, we're guessing that at least some won't be too disappointed in the delay, with the extra time allowing you to save up some more money and make some more excuses for why you're spending so much on a graphics card.[Via TG Daily] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93920986/</address><date>2007-02-21T19:32:00</date></alert><alert sourceid="1" unread="true" id="alert_137"><title>Russians congregate over internet, drink via USB shot glasses</title><summary>Filed under: Misc. Gadgets - Considering that we've all some of us have been enjoying online chats, poker, and dating for quite some while, it's not too shocking to see the Russians utilize the power of the web to bring alcoholics and social drinkers together in inebriated harmony. Sergey Mikheev, head of e-generator, has devised a USB shot glass to allow lonely, alcohol-needing individuals to get their drink on while safely at home. While we don't consider ourselves experts in Russian culture, it's apparently not tactful to get plastered solo, and while online drinking might be stretching the rules just a bit, we're sure those vodka-lovin' internet dwellers aren't complaining. The idea is to join a group of drinkers in an online lounge, where the USB shot glass levels are shown on each person's screen; once the go-ahead is given, the folks turn up their glasses and chug it down, ideally showing an empty glass after a random smashing of keys somehow spells out congratulatory phrases. As interesting and novel as this may be, let it remind us all how "getting a life" should be taken oh-so-seriously.[Via ChipChick] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93918114/</address><date>2007-02-21T19:02:00</date></alert><alert sourceid="1" unread="true" id="alert_138"><title>Samsung's 19-inch SyncMaster 940UX LCD picks USB</title><summary>Filed under: Displays -After DisplayLink hit us up with a cordless monitor care of Wireless USB, things really can't get much simpler for connecting LCDs with PC towers, but for those not quite ready to jump into all that, Samsung is reportedly readying a USB-only monitor that'll be showcased at CeBIT. Yep, according to reports, the 19-inch SyncMaster 940UX will be axing the DVI and VGA inputs in favor of a USB 2.0 connector, which means you can finally do away with those flakey USB to VGA adapters of days past. Slated for a May release, the display should sync up with Windows XP initially, with Vista drivers (no OS X love?) to follow shortly thereafter. No other details regarding contrast ratio, resolution, or whether a 0.25-page installation manual will be included is currently available, and more importantly, we're not so sure how your CPU is going to feel about its newfangled processing duties when you plug this sucka in. Still, Samsung claims between "three and five" of these monitors can be plugged in and used at any given time based on the amount of processing requirements your applications have, but the real question is how quickly can ATI / NVIDIA can crank out a next-generation GPU with USB 2.0 outputs, eh?[Via Slashgear] Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93898699/</address><date>2007-02-21T18:32:00</date></alert><alert sourceid="1" unread="true" id="alert_139"><title>Latest BlackBerry OS confirms 8820 with WiFi</title><summary>Filed under: Cellphones, Handhelds, Wireless - A feature notoriously missing from RIM's range, WiFi is one add-on we can pretty much all agree would make the average BlackBerry user's life noticeably better. We'd heard rumblings ahead of the 8800's release that Canada's newest handset would sport some manner of 802.11 out of the box, but alas -- the release came and went with no 2.4GHz (or 5GHz, for that matter) goodness in sight, allegedly due to technical glitches on RIM's side that the company was unwilling to delay the initial model for. No worries, though -- well, maybe a few worries if you're AT T and you're trying to push the 8800 out the door -- the WiFi-enabled 8820 looks pretty official now thanks to a cameo in RIM's latest BlackBerry OS offering. Other changes should be minimal from its predecessor; a camera still isn't in the cards, leaving shutterbugs who like their BlackBerry served QWERTY style up the same creek they are now. No word on a release, but rumblings have the device launching mid-year. Read | Permalink | Email this | CommentsBOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-timeOffice Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life! - </summary><address>http://feeds.engadget.com/~r/weblogsinc/engadget/~3/93882167/</address><date>2007-02-21T18:02:00</date></alert><alert sourceid="0" unread="true" id="alert_140"><title>Italian crisis talks as PM quits</title><summary>Italian President Giorgio Napolitano is to begin crisis talks after the resignation of PM Romano Prodi.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/europe/6384953.stm</address><date>2007-02-22T07:09:56</date></alert><alert sourceid="0" unread="true" id="alert_141"><title>Iraq leader welcomes troops' exit</title><summary>The Iraqi president welcomes Tony Blair's plans to cut UK troops in Iraq from 7,100 to 5,000 within months.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/uk_politics/6384685.stm</address><date>2007-02-22T01:06:14</date></alert><alert sourceid="0" unread="true" id="alert_142"><title>Apple and Cisco share iPhone</title><summary>Apple and Cisco Systems agree to share the iPhone trademark, allowing both firms to use the name.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/business/6384875.stm</address><date>2007-02-22T04:52:01</date></alert><alert sourceid="0" unread="true" id="alert_143"><title>Indonesia ferry fire kills six</title><summary>At least seven people - two of them children - die as fire breaks out on a ferry sailing from Indonesia's capital.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/asia-pacific/6384859.stm</address><date>2007-02-22T07:29:35</date></alert><alert sourceid="0" unread="true" id="alert_144"><title>Clinton and Obama row erupts</title><summary>A row erupts between two leading contenders for the US Democratic Party's presidential nomination.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6384821.stm</address><date>2007-02-22T02:02:19</date></alert><alert sourceid="0" unread="true" id="alert_145"><title>Menchu to stand in Guatemala</title><summary>Indigenous activist and Nobel winner Rigoberta Menchu says she will run for president in Guatemala.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6384845.stm</address><date>2007-02-22T03:33:05</date></alert><alert sourceid="0" unread="true" id="alert_146"><title>Most-premature baby goes home</title><summary>The world's most-premature baby leaves a Miami hospital, four months after weighing in at just 280 grams.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6384621.stm</address><date>2007-02-21T22:33:54</date></alert><alert sourceid="0" unread="true" id="alert_147"><title>US wants tougher Iran sanctions</title><summary>Washington says it will now push for tougher sanctions against Iran over its nuclear activities.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6384725.stm</address><date>2007-02-21T23:43:08</date></alert><alert sourceid="0" unread="true" id="alert_148"><title>US soldier admits murdering girl</title><summary>A second US soldier admits to the gang rape and murder of a 14-year-old Iraqi girl and her family.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6384781.stm</address><date>2007-02-22T01:40:53</date></alert><alert sourceid="0" unread="true" id="alert_149"><title>Football: Barca 1-2 L'pool</title><summary>Craig Bellamy and John Arne Riise both score as Liverpool beat holders Barcelona in the first leg of their Champions League tie.</summary><address>http://news.bbc.co.uk/go/rss/-/sport1/hi/football/europe/6371395.stm</address><date>2007-02-21T21:37:03</date></alert><alert sourceid="0" unread="true" id="alert_150"><title>Football: Porto 1-1 Chelsea</title><summary>Andriy Shevchenko's goal earns Chelsea a draw, but the Blues lose John Terry to an ankle injury in Porto.</summary><address>http://news.bbc.co.uk/go/rss/-/sport1/hi/football/europe/6371399.stm</address><date>2007-02-21T21:36:15</date></alert><alert sourceid="0" unread="true" id="alert_151"><title>Crisis talks over Bolivian floods</title><summary>The Bolivian government is holding emergency talks over the severe flooding in much of the country.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/6384267.stm</address><date>2007-02-21T20:54:40</date></alert><alert sourceid="0" unread="true" id="alert_152"><title>Spears 'leaves rehab after a day'</title><summary>Pop star Britney Spears has left a rehab centre after just one day for the second time, according to US reports.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/entertainment/6384081.stm</address><date>2007-02-21T18:31:01</date></alert><alert sourceid="0" unread="true" id="alert_153"><title>Australia may lift Afghan force</title><summary>Australia studies sending 450 more troops to Afghanistan, as US Vice-President Dick Cheney prepares to visit.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/asia-pacific/6384965.stm</address><date>2007-02-22T06:43:29</date></alert><alert sourceid="0" unread="true" id="alert_154"><title>Blair announces Iraq troops cut</title><summary>Tony Blair says he hopes to cut the number of UK troops in Iraq from 7,100 to 5,000 within months.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/uk_politics/6380933.stm</address><date>2007-02-21T18:15:55</date></alert><alert sourceid="0" unread="true" id="alert_155"><title>India ban on Iran nuclear exports</title><summary>Indian officials say exports to Iran that could be used in the country's nuclear programme have been banned.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6384919.stm</address><date>2007-02-22T05:52:36</date></alert><alert sourceid="0" unread="true" id="alert_156"><title>Quartet warning to Palestinians</title><summary>The Quartet of Mid-East peace negotiators says the new Palestinian government must recognise Israel.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/middle_east/6384189.stm</address><date>2007-02-21T20:30:30</date></alert><alert sourceid="0" unread="true" id="alert_157"><title>Three 'detained' over train blast</title><summary>Police in India say they are holding three people after Sunday's bomb attack on a train to Pakistan.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6384867.stm</address><date>2007-02-22T05:20:31</date></alert><alert sourceid="0" unread="true" id="alert_158"><title>India state airlines set to merge</title><summary>Air India and Indian, India's two main state-owned airlines, are to merge to compete with private rivals.</summary><address>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/6384881.stm</address><date>2007-02-22T05:11:16</date></alert></alerts> diff --git a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/index.html b/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/index.html deleted file mode 100644 index 2ecd0434b6..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/index.html +++ /dev/null @@ -1,280 +0,0 @@ -<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-
-<HTML>
-<HEAD>
- <TITLE>Apache Tuscany Alert Aggregator Sample</TITLE>
- <link REL="stylesheet" TYPE="text/css" href="style.css">
-</HEAD>
-
-<BODY ONLOAD="getSources()">
-<script type="text/javascript">
-function getXMLHTTP()
-{
- var xmlHttp;
- try
- {
- // Firefox, Opera 8.0+, Safari
- xmlHttp=new XMLHttpRequest();
- }
- catch (e)
- {
- // Internet Explorer
- try
- {
- xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
- }
- catch (e)
- {
- try
- {
- xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
- }
- catch (e)
- {
- alert("Your browser does not support AJAX!");
- return false;
- }
- }
- }
- return xmlHttp;
-}
-
-var callIsRunning = false;
-
-function getAlerts()
-{
- var xmlHttp = getXMLHTTP();
- xmlHttp.onreadystatechange=function()
- {
- var refr = document.getElementById("refresh");
- if(xmlHttp.readyState<4)
- {
- callIsRunning = true;
- refr.innerHTML="<SPAN>Updating...</SPAN>";
- }
- if(xmlHttp.readyState==4)
- {
- callIsRunning = false;
- refr.innerHTML="<SPAN CLASS=\"clickable link\" ONCLICK=\"getAlerts()\">Refresh</SPAN>";
- document.getElementById("alertTable").innerHTML=xmlHttp.responseText;
- }
- }
-
- if(!callIsRunning)
- {
- xmlHttp.open("GET","AlertDisplay.php/getAlertsHTMLTable",true);
- xmlHttp.send(null);
- }
-
- // Call this function again after x minutes
- setTimeout("getAlerts();", 5*60000);
-}
-
-function displayAlert(url, alertid)
-{
- if(alertid=="")
- {
- document.getElementById("alertData").innerHTML="<IFRAME CLASS=\"alert_data\" SRC=\""+url+"\"/>";
- window.location="#data";
- return;
- }
-
- document.getElementById(alertid).className="read_title";
-
- var xmlHttp = getXMLHTTP()
- xmlHttp.onreadystatechange=function()
- {
- if(xmlHttp.readyState==4)
- {
- if(xmlHttp.responseText=="")
- {
- document.getElementById("alertData").innerHTML="<IFRAME CLASS=\"alert_data\" SRC=\""+url+"\"/>";
- }
- else
- {
- document.getElementById("alertData").innerHTML=xmlHttp.responseText;
- }
- window.location="#data";
- }
- }
-
- xmlHttp.open("GET","AlertDisplay.php/readAlert?alertID="+alertid,true);
- xmlHttp.send(null);
-}
-
-function getSources()
-{
- var xmlHttp = getXMLHTTP()
- xmlHttp.onreadystatechange=function()
- {
- var refreshSources = document.getElementById("refreshSources");
- var refresh = document.getElementById("refresh");
- if(xmlHttp.readyState<4)
- {
- refreshSources.innerHTML=" (Updating...)";
- refresh.innerHTML="<SPAN>Updating...</SPAN>";
- }
- if(xmlHttp.readyState==4)
- {
- refreshSources.innerHTML="";
- document.getElementById("sourcesTable").innerHTML=xmlHttp.responseText;
- getAlerts();
- }
- }
- xmlHttp.open("GET","AlertDisplay.php/getAlertSourcesHTMLTable",true);
- xmlHttp.send(null);
-}
-
-function showEditSource(sourceid)
-{
- document.getElementById("edit_source_"+sourceid).className = "source_"+sourceid;
-}
-
-function hideEditSource(sourceid)
-{
- document.getElementById("edit_source_"+sourceid).className = "hidden source_"+sourceid;
-}
-
-function updateSource(sourceid)
-{
- hideEditSource(sourceid);
- var type = document.getElementById("source_"+sourceid+"_type").value;
- var sourceXML = constructSourceXML(sourceid, type);
-
- sendSource("AlertDisplay.php/updateAlertSource", sourceXML);
-
-}
-
-function sendSource(url, sourceXML)
-{
- var xmlHttp = getXMLHTTP()
- xmlHttp.onreadystatechange=function()
- {
- var refreshSources = document.getElementById("refreshSources");
- var refresh = document.getElementById("refresh");
- if(xmlHttp.readyState<4)
- {
- refreshSources.innerHTML=" (Updating...)";
- refresh.innerHTML="<SPAN>Updating...</SPAN>";
- }
- if(xmlHttp.readyState==4)
- {
- getSources();
- }
- }
- xmlHttp.open("POST",url,true);
- xmlHttp.send(sourceXML);
-
-}
-
-function deleteSource(sourceid)
-{
- var xmlHttp = getXMLHTTP()
- xmlHttp.onreadystatechange=function()
- {
- if(xmlHttp.readyState==4)
- {
- getSources();
- document.getElementById("alertData").innerHTML=""
- }
- }
- xmlHttp.open("GET","AlertDisplay.php/deleteAlertSource?sourceId="+sourceid,true);
- xmlHttp.send(null);
-}
-
-function showAddNewSource(sourceid)
-{
- document.getElementById("add_source_"+sourceid).className = "source_"+sourceid;
-}
-
-function hideAddNewSource(sourceid)
-{
- document.getElementById("add_source_"+sourceid).className = "hidden source_"+sourceid;
-}
-
-function showSourceType(sourceid)
-{
- var typeElem = document.getElementById("source_"+sourceid+"_type");
- var type = typeElem.options[typeElem.selectedIndex].value;
-
- if(type=="rss")
- {
- document.getElementById("add_rss_source").className = "";
- document.getElementById("add_pop_source").className = "hidden";
- }
- else if(type=="pop")
- {
- document.getElementById("add_rss_source").className = "hidden";
- document.getElementById("add_pop_source").className = "";
- }
-}
-
-function addSource(sourceid)
-{
- hideAddNewSource(sourceid);
-
- var typeElem = document.getElementById("source_"+sourceid+"_type");
- var type = typeElem.options[typeElem.selectedIndex].value;
- var sourceXML = constructSourceXML(sourceid, type);
-
- sendSource("AlertDisplay.php/addAlertSource", sourceXML);
-
-}
-
-function constructSourceXML(sourceid, type)
-{
- var name = document.getElementById("source_"+sourceid+"_name").value;
- var address = document.getElementById("source_"+sourceid+"_address").value;
-
- var sourceXML = "<source xmlns=\"http://tuscany.apache.org/samples/alerter\" type=\""+type+"\" id=\""+sourceid+"\">";
- sourceXML += "<name>"+name+"</name>";
- sourceXML += "<address>"+address+"</address>";
-
- if(type=="rss")
- {
- var feedAddress = document.getElementById("source_"+sourceid+"_feedAddress").value;
- sourceXML += "<feedAddress>"+feedAddress+"</feedAddress>";
- }
- else if(type=="pop")
- {
- var popServer = document.getElementById("source_"+sourceid+"_popServer").value;
- sourceXML += "<popServer>"+popServer+"</popServer>";
- var popUsername = document.getElementById("source_"+sourceid+"_popUsername").value;
- sourceXML += "<popUsername>"+popUsername+"</popUsername>";
- var popPassword = document.getElementById("source_"+sourceid+"_popPassword").value;
- sourceXML += "<popPassword>"+popPassword+"</popPassword>";
- }
- sourceXML += "</source>";
-
- return sourceXML;
-}
-</script>
-<H1 ID="top">Apache Tuscany Alert Aggregator Sample</H1>
-<P>Alert Sources<SPAN ID="refreshSources"></SPAN>:</P>
-<DIV ID="sourcesTable"></DIV>
-<P>Recent Alerts (<SPAN ID="refresh"><SPAN CLASS="clickable link" ONCLICK="getAlerts()">Refresh</SPAN></SPAN>):</P
-<DIV ID="alertTable"></DIV>
-<HR></HR>
-<P><A ID="data" HREF="#top">Back to top</A></P>
-<DIV ID="alertData"></DIV>
-
-</BODY>
-</HTML>
-
diff --git a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/pop.png b/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/pop.png Binary files differdeleted file mode 100644 index 1cf1df24a7..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/pop.png +++ /dev/null diff --git a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/rss.png b/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/rss.png Binary files differdeleted file mode 100644 index b3c949d224..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/rss.png +++ /dev/null diff --git a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/style.css b/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/style.css deleted file mode 100644 index cd377e90e5..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver.php/htdocs/style.css +++ /dev/null @@ -1,166 +0,0 @@ -/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-p,table,li,h1,h2,h3
-{
-font-family: verdana, arial, 'sans serif';
-}
-
-p, h1, h2, h3, table, li, hr
-{
-margin-left: 10pt;
-}
-
-table
-{
-border-color: black;
-border-collapse: separate;
-border-spacing: 0px 1px;
-
-margin-right: 10pt;
-margin-left: 10pt;
-width: 800px;
-}
-
-.sourceDetailsTable
-{
-width: 600px;
-}
-
-tr, td
-{
-margin-left: 0pt;
-margin-right: 0pt;
-padding-left: 10pt;
-font-size: 90%;
-}
-
-p,li,th
-{
-font-size: 90%;
-margin-left: 10pt;
-}
-
-pre
-{
-margin-left: 10pt;
-}
-
-body
-{
-#ffffff;
-}
-
-h1,h2,h3,hr
-{
-color: firebrick;
-}
-
-a:link {COLOR: firebrick;}
-a:visited {COLOR: firebrick;}
-a:active {COLOR: navy;}
-
-.link
-{
-COLOR: firebrick;
-text-decoration: underline;
-}
-
-.clickable
-{
-cursor: pointer
-}
-
-.unread_title
-{
-font-weight: bold;
-}
-
-.read_title
-{
-font-weight: normal;
-}
-
-.summary
-{
-color: DimGrey;
-}
-
-.hidden
-{
-display: none;
-}
-
-.alert_data
-{
-margin-left: 10px;
-width: 800px;
-height: 800px;
-}
-
-.source_0
-{
-background-color: LightGreen;
-}
-
-.source_1
-{
-background-color: LightSkyBlue;
-}
-
-.source_2
-{
-background-color: Khaki;
-}
-
-.source_3
-{
-background-color: LightPink;
-}
-
-.source_4
-{
-background-color: Orange;
-}
-
-.source_5
-{
-background-color: LightCoral;
-}
-
-.source_6
-{
-background-color: Orchid;
-}
-
-.source_7
-{
-background-color: Peru;
-}
-
-.source_8
-{
-background-color: SpringGreen;
-}
-
-.source_9
-{
-background-color: LightGrey;
-}
-
diff --git a/cpp/sca/samples/AlertAggregator/httpserver.php/startserver.bat b/cpp/sca/samples/AlertAggregator/httpserver.php/startserver.bat deleted file mode 100644 index dab8cd6c61..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver.php/startserver.bat +++ /dev/null @@ -1,76 +0,0 @@ -@echo off
-
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM http://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-
-setlocal
-
-set APFULLDIR=%~d0%~p0
-echo Running from %APFULLDIR%
-
-if "%TUSCANY_SCACPP%" == "" (
-echo "TUSCANY_SCACPP not set"
-goto end
-)
-echo Using SCA installed at %TUSCANY_SCACPP%
-
-if "%TUSCANY_SDOCPP%" == "" (
-echo "TUSCANY_SDOCPP not set"
-goto end
-)
-echo Using SDO installed at %TUSCANY_SDOCPP%
-
-if "%HTTPD_HOME%" == "" (
-echo "HTTPD_HOME not set"
-goto end
-)
-echo Using HTTPD installed at %HTTPD_HOME%
-
-set PATH=%TUSCANY_SCACPP%\extensions\python\bin;%TUSCANY_SCACPP%\extensions\rest\interface\bin;%TUSCANY_SCACPP%\extensions\rest\service\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%HTTPD_HOME%\bin;%PATH%
-set PYTHONPATH=%TUSCANY_SCACPP%\extensions\python\bin
-
-set TUSCANY_SCACPP_ROOT=%APFULLDIR%\..\
-set TUSCANY_SCACPP_BASE_URI=http://localhost:9091
-
-@REM Generate the tuscany_sca_mod_rest configuration
-if not exist %APFULLDIR%\conf\tuscany_sca_mod_rest.conf (
- echo LoadModule sca_rest_module %TUSCANY_SCACPP%/extensions/rest\service/bin/tuscany_sca_mod_rest.dll > %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
- echo TuscanyHome %TUSCANY_SCACPP% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
- echo ^<Location /rest^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
- echo SetHandler sca_rest_module >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
- echo TuscanyRoot %TUSCANY_SCACPP_ROOT% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
- echo ^</Location^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
-)
-
-@REM Generate the base HTTPD configuration
-if not exist %APFULLDIR%\conf\base.conf (
- echo LoadModule mime_module %HTTPD_HOME%\modules\mod_mime.so > %APFULLDIR%\conf\base.conf
- echo LoadModule dir_module %HTTPD_HOME%\modules\mod_dir.so >> %APFULLDIR%\conf\base.conf
- echo DocumentRoot %APFULLDIR%\htdocs >> %APFULLDIR%\conf\base.conf
- echo LoadModule php5_module %PHP_HOME%\php5apache2.dll >> %APFULLDIR%\conf\base.conf
- echo AddType application/x-httpd-php .php >> %APFULLDIR%\conf\base.conf
- echo PHPIniDir %PHP_HOME% >> %APFULLDIR%\conf\base.conf
-)
-
-@REM Create logs directory
-if not exist %APFULLDIR%\logs mkdir %APFULLDIR%\logs
-set TUSCANY_SCACPP_LOG=%APFULLDIR%\logs\tuscany-server.log
-set TUSCANY_SCACPP_LOGGING=9
-
-@REM Start the HTTP server
-echo Starting Apache httpd
-httpd -d %APFULLDIR%
diff --git a/cpp/sca/samples/AlertAggregator/httpserver/Makefile.am b/cpp/sca/samples/AlertAggregator/httpserver/Makefile.am deleted file mode 100644 index 5db11696dc..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/AlertAggregator/deploy -serverdir=$(deploydir)/httpserver - -server_SCRIPTS = startserver.sh stopserver.sh -EXTRA_DIST = startserver.sh stopserver.sh conf htdocs -nobase_server_DATA = conf/httpd.conf conf/mime.types htdocs/index.html htdocs/style.css htdocs/*.png diff --git a/cpp/sca/samples/AlertAggregator/httpserver/conf/httpd.conf b/cpp/sca/samples/AlertAggregator/httpserver/conf/httpd.conf deleted file mode 100644 index d243f85fbf..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver/conf/httpd.conf +++ /dev/null @@ -1,43 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# This is the main Apache HTTP server configuration file. It contains the
-# configuration directives that give the server its instructions.
-# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
-
-Listen 9090
-
-# Generated by the startserver script
-Include conf/base.conf
-Include conf/tuscany_sca_mod_rest.conf
-
-# User and Group directives may be required if the server must be
-# started from the root account. Uncomment the following lines and
-# set the correct username and group
-#
-# User myusername
-# Group mygroupname
-
-
-# The Mime module may need to be specifically loaded if
-# text rather than a web page is displayed when the web browser goes to
-# http://localhost:9090/index.html. Uncomment the following LoadModule
-# directive and ensure that the path to mod_mime.so is correct
-#
-# LoadModule mime_module /usr/lib/httpd/modules/mod_mime.so
-
-
diff --git a/cpp/sca/samples/AlertAggregator/httpserver/conf/mime.types b/cpp/sca/samples/AlertAggregator/httpserver/conf/mime.types deleted file mode 100644 index 4279f51bca..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver/conf/mime.types +++ /dev/null @@ -1,607 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# This file controls what Internet media types are sent to the client for -# given file extension(s). Sending the correct media type to the client -# is important so they know how to handle the content of the file. -# Extra types can either be added here or by using an AddType directive -# in your config files. For more information about Internet media types, -# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type -# registry is at <http://www.iana.org/assignments/media-types/>. - -# MIME type Extensions -application/activemessage -application/andrew-inset ez -application/applefile -application/atom+xml atom -application/atomicmail -application/batch-smtp -application/beep+xml -application/cals-1840 -application/cnrp+xml -application/commonground -application/cpl+xml -application/cybercash -application/dca-rft -application/dec-dx -application/dvcs -application/edi-consent -application/edifact -application/edi-x12 -application/eshop -application/font-tdpfr -application/http -application/hyperstudio -application/iges -application/index -application/index.cmd -application/index.obj -application/index.response -application/index.vnd -application/iotp -application/ipp -application/isup -application/mac-binhex40 hqx -application/mac-compactpro cpt -application/macwriteii -application/marc -application/mathematica -application/mathml+xml mathml -application/msword doc -application/news-message-id -application/news-transmission -application/ocsp-request -application/ocsp-response -application/octet-stream bin dms lha lzh exe class so dll dmg -application/oda oda -application/ogg ogg -application/parityfec -application/pdf pdf -application/pgp-encrypted -application/pgp-keys -application/pgp-signature -application/pkcs10 -application/pkcs7-mime -application/pkcs7-signature -application/pkix-cert -application/pkix-crl -application/pkixcmp -application/postscript ai eps ps -application/prs.alvestrand.titrax-sheet -application/prs.cww -application/prs.nprend -application/prs.plucker -application/qsig -application/rdf+xml rdf -application/reginfo+xml -application/remote-printing -application/riscos -application/rtf -application/sdp -application/set-payment -application/set-payment-initiation -application/set-registration -application/set-registration-initiation -application/sgml -application/sgml-open-catalog -application/sieve -application/slate -application/smil smi smil -application/srgs gram -application/srgs+xml grxml -application/timestamp-query -application/timestamp-reply -application/tve-trigger -application/vemmi -application/vnd.3gpp.pic-bw-large -application/vnd.3gpp.pic-bw-small -application/vnd.3gpp.pic-bw-var -application/vnd.3gpp.sms -application/vnd.3m.post-it-notes -application/vnd.accpac.simply.aso -application/vnd.accpac.simply.imp -application/vnd.acucobol -application/vnd.acucorp -application/vnd.adobe.xfdf -application/vnd.aether.imp -application/vnd.amiga.ami -application/vnd.anser-web-certificate-issue-initiation -application/vnd.anser-web-funds-transfer-initiation -application/vnd.audiograph -application/vnd.blueice.multipass -application/vnd.bmi -application/vnd.businessobjects -application/vnd.canon-cpdl -application/vnd.canon-lips -application/vnd.cinderella -application/vnd.claymore -application/vnd.commerce-battelle -application/vnd.commonspace -application/vnd.contact.cmsg -application/vnd.cosmocaller -application/vnd.criticaltools.wbs+xml -application/vnd.ctc-posml -application/vnd.cups-postscript -application/vnd.cups-raster -application/vnd.cups-raw -application/vnd.curl -application/vnd.cybank -application/vnd.data-vision.rdz -application/vnd.dna -application/vnd.dpgraph -application/vnd.dreamfactory -application/vnd.dxr -application/vnd.ecdis-update -application/vnd.ecowin.chart -application/vnd.ecowin.filerequest -application/vnd.ecowin.fileupdate -application/vnd.ecowin.series -application/vnd.ecowin.seriesrequest -application/vnd.ecowin.seriesupdate -application/vnd.enliven -application/vnd.epson.esf -application/vnd.epson.msf -application/vnd.epson.quickanime -application/vnd.epson.salt -application/vnd.epson.ssf -application/vnd.ericsson.quickcall -application/vnd.eudora.data -application/vnd.fdf -application/vnd.ffsns -application/vnd.fints -application/vnd.flographit -application/vnd.framemaker -application/vnd.fsc.weblaunch -application/vnd.fujitsu.oasys -application/vnd.fujitsu.oasys2 -application/vnd.fujitsu.oasys3 -application/vnd.fujitsu.oasysgp -application/vnd.fujitsu.oasysprs -application/vnd.fujixerox.ddd -application/vnd.fujixerox.docuworks -application/vnd.fujixerox.docuworks.binder -application/vnd.fut-misnet -application/vnd.grafeq -application/vnd.groove-account -application/vnd.groove-help -application/vnd.groove-identity-message -application/vnd.groove-injector -application/vnd.groove-tool-message -application/vnd.groove-tool-template -application/vnd.groove-vcard -application/vnd.hbci -application/vnd.hhe.lesson-player -application/vnd.hp-hpgl -application/vnd.hp-hpid -application/vnd.hp-hps -application/vnd.hp-pcl -application/vnd.hp-pclxl -application/vnd.httphone -application/vnd.hzn-3d-crossword -application/vnd.ibm.afplinedata -application/vnd.ibm.electronic-media -application/vnd.ibm.minipay -application/vnd.ibm.modcap -application/vnd.ibm.rights-management -application/vnd.ibm.secure-container -application/vnd.informix-visionary -application/vnd.intercon.formnet -application/vnd.intertrust.digibox -application/vnd.intertrust.nncp -application/vnd.intu.qbo -application/vnd.intu.qfx -application/vnd.irepository.package+xml -application/vnd.is-xpr -application/vnd.japannet-directory-service -application/vnd.japannet-jpnstore-wakeup -application/vnd.japannet-payment-wakeup -application/vnd.japannet-registration -application/vnd.japannet-registration-wakeup -application/vnd.japannet-setstore-wakeup -application/vnd.japannet-verification -application/vnd.japannet-verification-wakeup -application/vnd.jisp -application/vnd.kde.karbon -application/vnd.kde.kchart -application/vnd.kde.kformula -application/vnd.kde.kivio -application/vnd.kde.kontour -application/vnd.kde.kpresenter -application/vnd.kde.kspread -application/vnd.kde.kword -application/vnd.kenameaapp -application/vnd.koan -application/vnd.liberty-request+xml -application/vnd.llamagraphics.life-balance.desktop -application/vnd.llamagraphics.life-balance.exchange+xml -application/vnd.lotus-1-2-3 -application/vnd.lotus-approach -application/vnd.lotus-freelance -application/vnd.lotus-notes -application/vnd.lotus-organizer -application/vnd.lotus-screencam -application/vnd.lotus-wordpro -application/vnd.mcd -application/vnd.mediastation.cdkey -application/vnd.meridian-slingshot -application/vnd.micrografx.flo -application/vnd.micrografx.igx -application/vnd.mif mif -application/vnd.minisoft-hp3000-save -application/vnd.mitsubishi.misty-guard.trustweb -application/vnd.mobius.daf -application/vnd.mobius.dis -application/vnd.mobius.mbk -application/vnd.mobius.mqy -application/vnd.mobius.msl -application/vnd.mobius.plc -application/vnd.mobius.txf -application/vnd.mophun.application -application/vnd.mophun.certificate -application/vnd.motorola.flexsuite -application/vnd.motorola.flexsuite.adsi -application/vnd.motorola.flexsuite.fis -application/vnd.motorola.flexsuite.gotap -application/vnd.motorola.flexsuite.kmr -application/vnd.motorola.flexsuite.ttc -application/vnd.motorola.flexsuite.wem -application/vnd.mozilla.xul+xml xul -application/vnd.ms-artgalry -application/vnd.ms-asf -application/vnd.ms-excel xls -application/vnd.ms-lrm -application/vnd.ms-powerpoint ppt -application/vnd.ms-project -application/vnd.ms-tnef -application/vnd.ms-works -application/vnd.ms-wpl -application/vnd.mseq -application/vnd.msign -application/vnd.music-niff -application/vnd.musician -application/vnd.netfpx -application/vnd.noblenet-directory -application/vnd.noblenet-sealer -application/vnd.noblenet-web -application/vnd.novadigm.edm -application/vnd.novadigm.edx -application/vnd.novadigm.ext -application/vnd.obn -application/vnd.osa.netdeploy -application/vnd.palm -application/vnd.pg.format -application/vnd.pg.osasli -application/vnd.powerbuilder6 -application/vnd.powerbuilder6-s -application/vnd.powerbuilder7 -application/vnd.powerbuilder7-s -application/vnd.powerbuilder75 -application/vnd.powerbuilder75-s -application/vnd.previewsystems.box -application/vnd.publishare-delta-tree -application/vnd.pvi.ptid1 -application/vnd.pwg-multiplexed -application/vnd.pwg-xhtml-print+xml -application/vnd.quark.quarkxpress -application/vnd.rapid -application/vnd.s3sms -application/vnd.sealed.net -application/vnd.seemail -application/vnd.shana.informed.formdata -application/vnd.shana.informed.formtemplate -application/vnd.shana.informed.interchange -application/vnd.shana.informed.package -application/vnd.smaf -application/vnd.sss-cod -application/vnd.sss-dtf -application/vnd.sss-ntf -application/vnd.street-stream -application/vnd.svd -application/vnd.swiftview-ics -application/vnd.triscape.mxs -application/vnd.trueapp -application/vnd.truedoc -application/vnd.ufdl -application/vnd.uplanet.alert -application/vnd.uplanet.alert-wbxml -application/vnd.uplanet.bearer-choice -application/vnd.uplanet.bearer-choice-wbxml -application/vnd.uplanet.cacheop -application/vnd.uplanet.cacheop-wbxml -application/vnd.uplanet.channel -application/vnd.uplanet.channel-wbxml -application/vnd.uplanet.list -application/vnd.uplanet.list-wbxml -application/vnd.uplanet.listcmd -application/vnd.uplanet.listcmd-wbxml -application/vnd.uplanet.signal -application/vnd.vcx -application/vnd.vectorworks -application/vnd.vidsoft.vidconference -application/vnd.visio -application/vnd.visionary -application/vnd.vividence.scriptfile -application/vnd.vsf -application/vnd.wap.sic -application/vnd.wap.slc -application/vnd.wap.wbxml wbxml -application/vnd.wap.wmlc wmlc -application/vnd.wap.wmlscriptc wmlsc -application/vnd.webturbo -application/vnd.wrq-hp3000-labelled -application/vnd.wt.stf -application/vnd.wv.csp+wbxml -application/vnd.xara -application/vnd.xfdl -application/vnd.yamaha.hv-dic -application/vnd.yamaha.hv-script -application/vnd.yamaha.hv-voice -application/vnd.yellowriver-custom-menu -application/voicexml+xml vxml -application/watcherinfo+xml -application/whoispp-query -application/whoispp-response -application/wita -application/wordperfect5.1 -application/x-bcpio bcpio -application/x-cdlink vcd -application/x-chess-pgn pgn -application/x-compress -application/x-cpio cpio -application/x-csh csh -application/x-director dcr dir dxr -application/x-dvi dvi -application/x-futuresplash spl -application/x-gtar gtar -application/x-gzip -application/x-hdf hdf -application/x-javascript js -application/x-koan skp skd skt skm -application/x-latex latex -application/x-netcdf nc cdf -application/x-sh sh -application/x-shar shar -application/x-shockwave-flash swf -application/x-stuffit sit -application/x-sv4cpio sv4cpio -application/x-sv4crc sv4crc -application/x-tar tar -application/x-tcl tcl -application/x-tex tex -application/x-texinfo texinfo texi -application/x-troff t tr roff -application/x-troff-man man -application/x-troff-me me -application/x-troff-ms ms -application/x-ustar ustar -application/x-wais-source src -application/x400-bp -application/xhtml+xml xhtml xht -application/xslt+xml xslt -application/xml xml xsl -application/xml-dtd dtd -application/xml-external-parsed-entity -application/zip zip -audio/32kadpcm -audio/amr -audio/amr-wb -audio/basic au snd -audio/cn -audio/dat12 -audio/dsr-es201108 -audio/dvi4 -audio/evrc -audio/evrc0 -audio/g722 -audio/g.722.1 -audio/g723 -audio/g726-16 -audio/g726-24 -audio/g726-32 -audio/g726-40 -audio/g728 -audio/g729 -audio/g729D -audio/g729E -audio/gsm -audio/gsm-efr -audio/l8 -audio/l16 -audio/l20 -audio/l24 -audio/lpc -audio/midi mid midi kar -audio/mpa -audio/mpa-robust -audio/mp4a-latm -audio/mpeg mpga mp2 mp3 -audio/parityfec -audio/pcma -audio/pcmu -audio/prs.sid -audio/qcelp -audio/red -audio/smv -audio/smv0 -audio/telephone-event -audio/tone -audio/vdvi -audio/vnd.3gpp.iufp -audio/vnd.cisco.nse -audio/vnd.cns.anp1 -audio/vnd.cns.inf1 -audio/vnd.digital-winds -audio/vnd.everad.plj -audio/vnd.lucent.voice -audio/vnd.nortel.vbk -audio/vnd.nuera.ecelp4800 -audio/vnd.nuera.ecelp7470 -audio/vnd.nuera.ecelp9600 -audio/vnd.octel.sbc -audio/vnd.qcelp -audio/vnd.rhetorex.32kadpcm -audio/vnd.vmx.cvsd -audio/x-aiff aif aiff aifc -audio/x-alaw-basic -audio/x-mpegurl m3u -audio/x-pn-realaudio ram ra -audio/x-pn-realaudio-plugin -application/vnd.rn-realmedia rm -audio/x-wav wav -chemical/x-pdb pdb -chemical/x-xyz xyz -image/bmp bmp -image/cgm cgm -image/g3fax -image/gif gif -image/ief ief -image/jpeg jpeg jpg jpe -image/naplps -image/png png -image/prs.btif -image/prs.pti -image/svg+xml svg -image/t38 -image/tiff tiff tif -image/tiff-fx -image/vnd.cns.inf2 -image/vnd.djvu djvu djv -image/vnd.dwg -image/vnd.dxf -image/vnd.fastbidsheet -image/vnd.fpx -image/vnd.fst -image/vnd.fujixerox.edmics-mmr -image/vnd.fujixerox.edmics-rlc -image/vnd.globalgraphics.pgb -image/vnd.mix -image/vnd.ms-modi -image/vnd.net-fpx -image/vnd.svf -image/vnd.wap.wbmp wbmp -image/vnd.xiff -image/x-cmu-raster ras -image/x-icon ico -image/x-portable-anymap pnm -image/x-portable-bitmap pbm -image/x-portable-graymap pgm -image/x-portable-pixmap ppm -image/x-rgb rgb -image/x-xbitmap xbm -image/x-xpixmap xpm -image/x-xwindowdump xwd -message/delivery-status -message/disposition-notification -message/external-body -message/http -message/news -message/partial -message/rfc822 -message/s-http -message/sip -message/sipfrag -model/iges igs iges -model/mesh msh mesh silo -model/vnd.dwf -model/vnd.flatland.3dml -model/vnd.gdl -model/vnd.gs-gdl -model/vnd.gtw -model/vnd.mts -model/vnd.parasolid.transmit.binary -model/vnd.parasolid.transmit.text -model/vnd.vtu -model/vrml wrl vrml -multipart/alternative -multipart/appledouble -multipart/byteranges -multipart/digest -multipart/encrypted -multipart/form-data -multipart/header-set -multipart/mixed -multipart/parallel -multipart/related -multipart/report -multipart/signed -multipart/voice-message -text/calendar ics ifb -text/css css -text/directory -text/enriched -text/html html htm -text/parityfec -text/plain asc txt -text/prs.lines.tag -text/rfc822-headers -text/richtext rtx -text/rtf rtf -text/sgml sgml sgm -text/t140 -text/tab-separated-values tsv -text/uri-list -text/vnd.abc -text/vnd.curl -text/vnd.dmclientscript -text/vnd.fly -text/vnd.fmi.flexstor -text/vnd.in3d.3dml -text/vnd.in3d.spot -text/vnd.iptc.nitf -text/vnd.iptc.newsml -text/vnd.latex-z -text/vnd.motorola.reflex -text/vnd.ms-mediapackage -text/vnd.net2phone.commcenter.command -text/vnd.sun.j2me.app-descriptor -text/vnd.wap.si -text/vnd.wap.sl -text/vnd.wap.wml wml -text/vnd.wap.wmlscript wmls -text/x-setext etx -text/xml -text/xml-external-parsed-entity -video/bmpeg -video/bt656 -video/celb -video/dv -video/h261 -video/h263 -video/h263-1998 -video/h263-2000 -video/jpeg -video/mp1s -video/mp2p -video/mp2t -video/mp4v-es -video/mpv -video/mpeg mpeg mpg mpe -video/nv -video/parityfec -video/pointer -video/quicktime qt mov -video/smpte292m -video/vnd.fvt -video/vnd.motorola.video -video/vnd.motorola.videop -video/vnd.mpegurl mxu m4u -video/vnd.nokia.interleaved-multimedia -video/vnd.objectvideo -video/vnd.vivo -video/x-msvideo avi -video/x-sgi-movie movie -x-conference/x-cooltalk ice diff --git a/cpp/sca/samples/AlertAggregator/httpserver/htdocs/index.html b/cpp/sca/samples/AlertAggregator/httpserver/htdocs/index.html deleted file mode 100644 index 911f66e013..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver/htdocs/index.html +++ /dev/null @@ -1,290 +0,0 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <TITLE>Apache Tuscany Alert Aggregator Sample</TITLE> - <link REL="stylesheet" TYPE="text/css" href="style.css"> -</HEAD> - -<BODY ONLOAD="getSources('')"> -<script type="text/javascript"> -function getXMLHTTP() -{ - var xmlHttp; - try - { - // Firefox, Opera 8.0+, Safari - xmlHttp=new XMLHttpRequest(); - } - catch (e) - { - // Internet Explorer - try - { - xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); - } - catch (e) - { - try - { - xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); - } - catch (e) - { - alert("Your browser does not support AJAX!"); - return false; - } - } - } - return xmlHttp; -} - -var callIsRunning = false; - -function getAlerts(sourceid) -{ - var xmlHttp = getXMLHTTP(); - xmlHttp.onreadystatechange=function() - { - var refr = document.getElementById("refresh"); - if(xmlHttp.readyState<4) - { - callIsRunning = true; - refr.innerHTML="<SPAN>Updating...</SPAN>"; - } - if(xmlHttp.readyState==4) - { - callIsRunning = false; - refr.innerHTML="<SPAN CLASS=\"clickable link\" ONCLICK=\"getAlerts('')\">Refresh</SPAN>"; - document.getElementById("alertTable").innerHTML=xmlHttp.responseText; - } - } - - if(!callIsRunning) - { - if(sourceid=='') - { - xmlHttp.open("GET","rest/sample.display.DisplayComponent/HTMLDisplayService/updateAllAlertsHTMLTable",true); - } - else - { - xmlHttp.open("GET","rest/sample.display.DisplayComponent/HTMLDisplayService/updateSourceAlertsHTMLTable?sourceId="+sourceid,true); - } - xmlHttp.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" ); - xmlHttp.send(null); - } - - // Call this function again after x minutes - setTimeout("getAlerts('');", 5*60000); -} - -function displayAlert(url, alertid) -{ - if(alertid=="") - { - document.getElementById("alertData").innerHTML="<IFRAME CLASS=\"alert_data\" SRC=\""+url+"\"/>"; - window.location="#data"; - return; - } - - document.getElementById(alertid).className="read_title"; - - var xmlHttp = getXMLHTTP() - xmlHttp.onreadystatechange=function() - { - if(xmlHttp.readyState==4) - { - if(xmlHttp.responseText=="") - { - document.getElementById("alertData").innerHTML="<IFRAME CLASS=\"alert_data\" SRC=\""+url+"\"/>"; - } - else - { - document.getElementById("alertData").innerHTML=xmlHttp.responseText; - } - window.location="#data"; - } - } - - xmlHttp.open("GET","rest/sample.display.DisplayComponent/HTMLDisplayService/readAlert?alertID="+alertid,true); - xmlHttp.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" ); - xmlHttp.send(null); -} - -function getSources(sourceid) -{ - var xmlHttp = getXMLHTTP() - xmlHttp.onreadystatechange=function() - { - var refreshSources = document.getElementById("refreshSources"); - var refresh = document.getElementById("refresh"); - if(xmlHttp.readyState<4) - { - refreshSources.innerHTML=" (Updating...)"; - refresh.innerHTML="<SPAN>Updating...</SPAN>"; - } - if(xmlHttp.readyState==4) - { - refreshSources.innerHTML=""; - document.getElementById("sourcesTable").innerHTML=xmlHttp.responseText; - getAlerts(sourceid); - } - } - xmlHttp.open("GET","rest/sample.display.DisplayComponent/HTMLDisplayService/getAlertSourcesHTMLTable",true); - xmlHttp.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" ); - xmlHttp.send(null); -} - -function showEditSource(sourceid) -{ - document.getElementById("edit_source_"+sourceid).className = "source_"+sourceid; -} - -function hideEditSource(sourceid) -{ - document.getElementById("edit_source_"+sourceid).className = "hidden source_"+sourceid; -} - -function updateSource(sourceid) -{ - hideEditSource(sourceid); - var type = document.getElementById("source_"+sourceid+"_type").value; - var sourceXML = constructSourceXML(sourceid, type); - - sendSourceData("rest/sample.display.DisplayComponent/HTMLDisplayService/updateAlertSource", sourceXML, sourceid); -} - -function sendSourceData(url, sourceXML, sourceid) -{ - var xmlHttp = getXMLHTTP() - xmlHttp.onreadystatechange=function() - { - var refreshSources = document.getElementById("refreshSources"); - var refresh = document.getElementById("refresh"); - if(xmlHttp.readyState<4) - { - refreshSources.innerHTML=" (Updating...)"; - refresh.innerHTML="<SPAN>Updating...</SPAN>"; - } - if(xmlHttp.readyState==4) - { - getSources(sourceid); - } - } - xmlHttp.open("POST",url,true); - xmlHttp.send(sourceXML); - -} - -function deleteSource(sourceid) -{ - var xmlHttp = getXMLHTTP() - xmlHttp.onreadystatechange=function() - { - if(xmlHttp.readyState==4) - { - getSources(''); - document.getElementById("alertData").innerHTML=""; - } - } - xmlHttp.open("GET","rest/sample.display.DisplayComponent/HTMLDisplayService/deleteAlertSource?sourceId="+sourceid,true); - xmlHttp.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" ); - xmlHttp.send(null); -} - -function showAddNewSource(sourceid) -{ - document.getElementById("add_source_"+sourceid).className = "source_"+sourceid; -} - -function hideAddNewSource(sourceid) -{ - document.getElementById("add_source_"+sourceid).className = "hidden source_"+sourceid; -} - -function showSourceType(sourceid) -{ - var typeElem = document.getElementById("source_"+sourceid+"_type"); - var type = typeElem.options[typeElem.selectedIndex].value; - - if(type=="rss") - { - document.getElementById("add_rss_source").className = ""; - document.getElementById("add_pop_source").className = "hidden"; - } - else if(type=="pop") - { - document.getElementById("add_rss_source").className = "hidden"; - document.getElementById("add_pop_source").className = ""; - } -} - -function addSource(sourceid) -{ - hideAddNewSource(sourceid); - - var typeElem = document.getElementById("source_"+sourceid+"_type"); - var type = typeElem.options[typeElem.selectedIndex].value; - var sourceXML = constructSourceXML(sourceid, type); - - sendSourceData("rest/sample.display.DisplayComponent/HTMLDisplayService/addAlertSource", sourceXML, sourceid); - -} - -function constructSourceXML(sourceid, type) -{ - var name = document.getElementById("source_"+sourceid+"_name").value; - var address = document.getElementById("source_"+sourceid+"_address").value; - - var sourceXML = "<source xmlns=\"http://tuscany.apache.org/samples/alerter\" type=\""+type+"\" id=\""+sourceid+"\">"; - sourceXML += "<name>"+name+"</name>"; - sourceXML += "<address>"+address+"</address>"; - - if(type=="rss") - { - var feedAddress = document.getElementById("source_"+sourceid+"_feedAddress").value; - sourceXML += "<feedAddress>"+feedAddress+"</feedAddress>"; - } - else if(type=="pop") - { - var popServer = document.getElementById("source_"+sourceid+"_popServer").value; - sourceXML += "<popServer>"+popServer+"</popServer>"; - var popUsername = document.getElementById("source_"+sourceid+"_popUsername").value; - sourceXML += "<popUsername>"+popUsername+"</popUsername>"; - var popPassword = document.getElementById("source_"+sourceid+"_popPassword").value; - sourceXML += "<popPassword>"+popPassword+"</popPassword>"; - } - sourceXML += "</source>"; - - return sourceXML; -} -</script> -<H1 ID="top">Apache Tuscany Alert Aggregator Sample</H1> -<P>Alert Sources<SPAN ID="refreshSources"></SPAN>:</P> -<DIV ID="sourcesTable"></DIV> -<P>Recent Alerts (<SPAN ID="refresh"><SPAN CLASS="clickable link" ONCLICK="getAlerts('')">Refresh</SPAN></SPAN>):</P> -<DIV ID="alertTable"></DIV> -<HR></HR> -<P><A ID="data" HREF="#top">Back to top</A></P> -<DIV ID="alertData"></DIV> - -</BODY> -</HTML> - diff --git a/cpp/sca/samples/AlertAggregator/httpserver/htdocs/pop.png b/cpp/sca/samples/AlertAggregator/httpserver/htdocs/pop.png Binary files differdeleted file mode 100644 index 1cf1df24a7..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver/htdocs/pop.png +++ /dev/null diff --git a/cpp/sca/samples/AlertAggregator/httpserver/htdocs/rss.png b/cpp/sca/samples/AlertAggregator/httpserver/htdocs/rss.png Binary files differdeleted file mode 100644 index b3c949d224..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver/htdocs/rss.png +++ /dev/null diff --git a/cpp/sca/samples/AlertAggregator/httpserver/htdocs/style.css b/cpp/sca/samples/AlertAggregator/httpserver/htdocs/style.css deleted file mode 100644 index cd377e90e5..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver/htdocs/style.css +++ /dev/null @@ -1,166 +0,0 @@ -/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-p,table,li,h1,h2,h3
-{
-font-family: verdana, arial, 'sans serif';
-}
-
-p, h1, h2, h3, table, li, hr
-{
-margin-left: 10pt;
-}
-
-table
-{
-border-color: black;
-border-collapse: separate;
-border-spacing: 0px 1px;
-
-margin-right: 10pt;
-margin-left: 10pt;
-width: 800px;
-}
-
-.sourceDetailsTable
-{
-width: 600px;
-}
-
-tr, td
-{
-margin-left: 0pt;
-margin-right: 0pt;
-padding-left: 10pt;
-font-size: 90%;
-}
-
-p,li,th
-{
-font-size: 90%;
-margin-left: 10pt;
-}
-
-pre
-{
-margin-left: 10pt;
-}
-
-body
-{
-#ffffff;
-}
-
-h1,h2,h3,hr
-{
-color: firebrick;
-}
-
-a:link {COLOR: firebrick;}
-a:visited {COLOR: firebrick;}
-a:active {COLOR: navy;}
-
-.link
-{
-COLOR: firebrick;
-text-decoration: underline;
-}
-
-.clickable
-{
-cursor: pointer
-}
-
-.unread_title
-{
-font-weight: bold;
-}
-
-.read_title
-{
-font-weight: normal;
-}
-
-.summary
-{
-color: DimGrey;
-}
-
-.hidden
-{
-display: none;
-}
-
-.alert_data
-{
-margin-left: 10px;
-width: 800px;
-height: 800px;
-}
-
-.source_0
-{
-background-color: LightGreen;
-}
-
-.source_1
-{
-background-color: LightSkyBlue;
-}
-
-.source_2
-{
-background-color: Khaki;
-}
-
-.source_3
-{
-background-color: LightPink;
-}
-
-.source_4
-{
-background-color: Orange;
-}
-
-.source_5
-{
-background-color: LightCoral;
-}
-
-.source_6
-{
-background-color: Orchid;
-}
-
-.source_7
-{
-background-color: Peru;
-}
-
-.source_8
-{
-background-color: SpringGreen;
-}
-
-.source_9
-{
-background-color: LightGrey;
-}
-
diff --git a/cpp/sca/samples/AlertAggregator/httpserver/startserver.bat b/cpp/sca/samples/AlertAggregator/httpserver/startserver.bat deleted file mode 100644 index fa4d66df31..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver/startserver.bat +++ /dev/null @@ -1,73 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -set APFULLDIR=%~d0%~p0 -echo Running from %APFULLDIR% - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo Using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo Using SDO installed at %TUSCANY_SDOCPP% - -if "%HTTPD_HOME%" == "" ( -echo "HTTPD_HOME not set" -goto end -) -echo Using HTTPD installed at %HTTPD_HOME% - -set PATH=%TUSCANY_SCACPP%\extensions\python\bin;%TUSCANY_SCACPP%\extensions\rest\interface\bin;%TUSCANY_SCACPP%\extensions\rest\service\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%HTTPD_HOME%\bin;%PATH% -set PYTHONPATH=%TUSCANY_SCACPP%\extensions\python\bin - -set TUSCANY_SCACPP_ROOT=%APFULLDIR%\..\ -set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -@REM Generate the tuscany_sca_mod_rest configuration -if not exist %APFULLDIR%\conf\tuscany_sca_mod_rest.conf ( - echo LoadModule sca_rest_module %TUSCANY_SCACPP%/extensions/rest\service/bin/tuscany_sca_mod_rest.dll > %APFULLDIR%\conf\tuscany_sca_mod_rest.conf - echo TuscanyHome %TUSCANY_SCACPP% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf - echo ^<Location /rest^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf - echo SetHandler sca_rest_module >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf - echo TuscanyRoot %TUSCANY_SCACPP_ROOT% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf - echo ^</Location^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf -) - -@REM Generate the base HTTPD configuration -if not exist %APFULLDIR%\conf\base.conf ( - echo LoadModule mime_module %HTTPD_HOME%\modules\mod_mime.so > %APFULLDIR%\conf\base.conf - echo LoadModule dir_module %HTTPD_HOME%\modules\mod_dir.so >> %APFULLDIR%\conf\base.conf - echo DocumentRoot %APFULLDIR%\htdocs >> %APFULLDIR%\conf\base.conf -) - -@REM Create logs directory -if not exist %APFULLDIR%\logs mkdir %APFULLDIR%\logs -set TUSCANY_SCACPP_LOG=%APFULLDIR%\logs\tuscany-server.log -set TUSCANY_SCACPP_LOGGING=9 - -@REM Start the HTTP server -echo Starting Apache httpd -httpd -d %APFULLDIR% diff --git a/cpp/sca/samples/AlertAggregator/httpserver/startserver.sh b/cpp/sca/samples/AlertAggregator/httpserver/startserver.sh deleted file mode 100755 index d197b94245..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver/startserver.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$PYTHON_LIB != x ]; then -echo "Using Python library installed at $PYTHON_LIB" -export LD_LIBRARY_PATH=$PYTHON_LIB:$LD_LIBRARY_PATH -export PATH=$PYTHON_LIB/../bin:$PATH -fi - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/python/lib:$TUSCANY_SCACPP/extensions/ruby/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$LD_LIBRARY_PATH -export PYTHONPATH=$TUSCANY_SCACPP/extensions/python/lib:$PYTHONPATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -libsuffix=.so -UNAME=`uname -s` -if [ "x$UNAME" = "xDarwin" ]; then - libsuffix=.dylib -fi - -# Generate the mod_rest configuration -if [ ! -f conf/tuscany_sca_mod_rest.conf ]; then - echo "LoadModule sca_rest_module $TUSCANY_SCACPP/extensions/rest/service/lib/libtuscany_sca_mod_rest$libsuffix" >conf/tuscany_sca_mod_rest.conf - echo "TuscanyHome $TUSCANY_SCACPP" >>conf/tuscany_sca_mod_rest.conf - echo "<Location /rest>" >>conf/tuscany_sca_mod_rest.conf - echo " SetHandler sca_rest_module" >>conf/tuscany_sca_mod_rest.conf - echo " TuscanyRoot $TUSCANY_SCACPP_ROOT" >>conf/tuscany_sca_mod_rest.conf - echo "</Location>" >>conf/tuscany_sca_mod_rest.conf -fi - -if [ ! -f conf/base.conf ]; then - echo "DocumentRoot $APFULLDIR/htdocs" >conf/base.conf -fi - -# Create logs directory -if [ ! -d logs ]; then - mkdir logs -fi - -# Start the HTTP server -echo "Starting Apache httpd" - -# Set LD_PRELOAD to use the expat included in Python to avoid incompatibilities -export LD_PRELOAD=$TUSCANY_SCACPP/extensions/python/lib/libtuscany_sca_python$libsuffix - -apachectl -k start -d $APFULLDIR - diff --git a/cpp/sca/samples/AlertAggregator/httpserver/stopserver.sh b/cpp/sca/samples/AlertAggregator/httpserver/stopserver.sh deleted file mode 100755 index c17f632a3e..0000000000 --- a/cpp/sca/samples/AlertAggregator/httpserver/stopserver.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -# Stop the HTTP server -echo "Stopping Apache httpd" -apachectl -k stop -d $APFULLDIR - diff --git a/cpp/sca/samples/AlertAggregator/sample.alerter.app.composite b/cpp/sca/samples/AlertAggregator/sample.alerter.app.composite deleted file mode 100644 index 4c0d4ccd1a..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.alerter.app.composite +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.alerter.app"> - - <component name="sample.display.DisplayComponent"> - <implementation.composite name="sample.display" /> - <reference name="AlerterService">sample.alerter.AlerterComponent/AlerterService</reference> - </component> - - <component name="sample.alerter.AlerterComponent"> - <implementation.composite name="sample.alerter" /> - </component> - -</composite> diff --git a/cpp/sca/samples/AlertAggregator/sample.alerter/AlertCheckerImpl.py b/cpp/sca/samples/AlertAggregator/sample.alerter/AlertCheckerImpl.py deleted file mode 100644 index d9aab820ac..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.alerter/AlertCheckerImpl.py +++ /dev/null @@ -1,116 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -import xml.etree.ElementTree, datetime - -def getAllNewAlerts (): - - returnXML = "<alerts xmlns=\"http://tuscany.apache.org/samples/alerter\">\n</alerts>" - returnElem = xml.etree.ElementTree.XML(returnXML) - - # Use the alertConfigService to get the configuration - configElem = alertConfigService.getAlertConfig() - - for sourceElem in configElem.findall("./{http://tuscany.apache.org/samples/alerter}source"): - - sourceid = sourceElem.attrib["id"] - - newAlerts = getAlerts(sourceElem) - if xml.etree.ElementTree.iselement(newAlerts): - # Add the sourceid to each alert and append to the entire list - for alert in newAlerts.findall("./{http://tuscany.apache.org/samples/alerter}alert"): - alert.attrib["sourceid"] = sourceid - returnElem.append(alert) - - return returnElem - -def getAlerts (sourceElem): - - lastcheckedElem = sourceElem.find("./{http://tuscany.apache.org/samples/alerter}lastChecked") - if not xml.etree.ElementTree.iselement(lastcheckedElem): - lastcheckedElem = xml.etree.ElementTree.SubElement(sourceElem, "lastChecked") - lastcheckedElem.text = "" - - if sourceElem.attrib["type"] == "rss": - - feedaddress = sourceElem.find("./{http://tuscany.apache.org/samples/alerter}feedAddress").text - - if feedaddress: - # Use the rssCheckerService to get new articles for this config - newAlerts = rssCheckerService.getNewAlerts(feedaddress, lastcheckedElem.text) - - lastcheckedElem.text = datetime.datetime.now().replace(microsecond=0).isoformat() - alertConfigService.updateSourceConfig(sourceElem) - return newAlerts - - elif sourceElem.attrib["type"] == "pop": - - popserver = sourceElem.find("./{http://tuscany.apache.org/samples/alerter}popServer").text - popusername = sourceElem.find("./{http://tuscany.apache.org/samples/alerter}popUsername").text - poppassword = sourceElem.find("./{http://tuscany.apache.org/samples/alerter}popPassword").text - - if popserver and popusername and poppassword: - # Use the popCheckerService to get new emails for this config - newAlerts = popCheckerService.getNewAlerts(popserver, popusername, poppassword, lastcheckedElem.text) - - lastcheckedElem.text = datetime.datetime.now().replace(microsecond=0).isoformat() - alertConfigService.updateSourceConfig(sourceElem) - return newAlerts - - else: - print "Source type not supported: ", sourceElem.attrib["type"] - - return None - - -def getNewAlerts (sourceId): - # Use the alertConfigService to get the configuration - sourceConfigElem = alertConfigService.getSourceConfig(sourceId) - - # Get the alerts - newAlerts = getAlerts(sourceConfigElem) - - if xml.etree.ElementTree.iselement(newAlerts): - # Add the sourceid to each alert - for alert in newAlerts.findall("./{http://tuscany.apache.org/samples/alerter}alert"): - alert.attrib["sourceid"] = sourceId - - return newAlerts - -def addAlertSource (sourceElem): - # Add the source directly to the configuration - return alertConfigService.addSourceConfig(sourceElem) - -def updateAlertSource (sourceElem): - # Update the source in the configuration - return alertConfigService.updateSourceConfig(sourceElem) - -def removeAlertSource (sourceId): - # Remove the source from the configuration - alertConfigService.removeSourceConfig(sourceId) - -def getAlertSources (): - # Get the config for all the sources - return alertConfigService.getAlertConfig() - -# # Testing -# import AlertConfigImpl as alertConfigService -# import RSSCheckerImpl as rssCheckerService -# import POPCheckerImpl as popCheckerService -# -# print xml.etree.ElementTree.tostring(getAlertSources()) -# print xml.etree.ElementTree.tostring(getAllNewAlerts()) diff --git a/cpp/sca/samples/AlertAggregator/sample.alerter/AlertConfigImpl.py b/cpp/sca/samples/AlertAggregator/sample.alerter/AlertConfigImpl.py deleted file mode 100644 index 2800a940b4..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.alerter/AlertConfigImpl.py +++ /dev/null @@ -1,175 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -import xml.etree.ElementTree, os.path, os - -def getAlertConfig (): - - # Set up some default config data - configData = "<config xmlns=\"http://tuscany.apache.org/samples/alerter\">\n</config>" - - if os.path.isfile(os.environ['TUSCANY_SCACPP_ROOT']+"/config.xml"): - # Retrieve the configuration from a file - f = open(os.environ['TUSCANY_SCACPP_ROOT']+"/config.xml") - try: - configData = f.read() - finally: - f.close() - - configElem = xml.etree.ElementTree.XML(configData) - - return configElem - -def getSourceConfig (sourceId): - - configElem = getAlertConfig() - - for sourceElem in configElem.findall("./{http://tuscany.apache.org/samples/alerter}source"): - if sourceElem.attrib["id"] == sourceId: - return sourceElem - - print "Source with id matching",sourceId,"not found" - return - -def updateSourceConfig (alertSourceConfigElem): - - configElem = getAlertConfig() - sourceId = alertSourceConfigElem.attrib["id"] - - for sourceElem in configElem.findall("./{http://tuscany.apache.org/samples/alerter}source"): - if sourceElem.attrib["id"] == sourceId: - configElem.remove(sourceElem) - configElem.append(alertSourceConfigElem) - saveConfigData(configElem) - return - print "Source with id matching",sourceId,"not found" - return - -def addSourceConfig (alertSourceConfigElem): - configElem = getAlertConfig() - - #check for source ID, make sure it's not the same as others and create one if it's missing - if "id" in alertSourceConfigElem.attrib: - configId = alertSourceConfigElem.attrib["id"] - else: - configId = "0" - - gotConfigId = False - - while gotConfigId == False: - - config = getSourceConfig(configId) - if config: - configId = str( int(configId)+1 ) - else: - gotConfigId = True - - - alertSourceConfigElem.attrib["id"] = configId - - configElem.append(alertSourceConfigElem) - saveConfigData(configElem) - - return configId - -def saveConfigData (configElem): - configData = xml.etree.ElementTree.tostring(configElem) - - # Save the configuration to a file - f = open(os.environ['TUSCANY_SCACPP_ROOT']+"/config.xml", "w") - - if not f: - print "Failed to open config file for writing" - try: - f.write(configData) - finally: - f.close() - -def removeSourceConfig(sourceId): - configElem = getAlertConfig() - for sourceElem in configElem.findall("./{http://tuscany.apache.org/samples/alerter}source"): - if sourceElem.attrib["id"] == sourceId: - configElem.remove(sourceElem) - saveConfigData(configElem) - return - -# # Testing -# if os.path.isfile("config.xml"): -# os.remove("config.xml") -# data = getAlertConfig() -# print xml.etree.ElementTree.tostring(data), "\n" -# -# newsrcxml = "<source xmlns=\"http://tuscany.apache.org/samples/alerter\" type=\"rss\" id=\"0\">\n" -# newsrcxml += "<name>PSP Updates</name>\n" -# newsrcxml += "<address>http://pspupdates.qj.net</address>\n" -# newsrcxml += "<feedAddress>http://pspupdates.qj.net/rss.xml</feedAddress></source>" -# -# newsrc = xml.etree.ElementTree.XML(newsrcxml) -# ID = addSourceConfig(newsrc) -# print "Added src with ID:", ID, "\n" -# -# newsrcxml = "<source xmlns=\"http://tuscany.apache.org/samples/alerter\" type=\"rss\" id=\"1\">\n" -# newsrcxml += "<name>PSP Updates</name>\n" -# newsrcxml += "<address>http://pspupdates.qj.net!</address>\n" -# newsrcxml += "<feedAddress>http://pspupdates.qj.net/atom.xml</feedAddress></source>" -# -# newsrc = xml.etree.ElementTree.XML(newsrcxml) -# ID = addSourceConfig(newsrc) -# print "Added src with ID:", ID, "\n" -# -# data = getAlertConfig() -# print xml.etree.ElementTree.tostring(data), "\n" -# -# data = getSourceConfig("0") -# print xml.etree.ElementTree.tostring(data), "\n" -# print dir(data), "\n" -# -# name = data.find("./{http://tuscany.apache.org/samples/alerter}name") -# name.text = "Hello world!" -# -# updateSourceConfig(data) -# data = getSourceConfig("1") -# print xml.etree.ElementTree.tostring(data), "\n" -# -# removeSourceConfig("1") -# data = getAlertConfig() -# print xml.etree.ElementTree.tostring(data), "\n" -# -# ID = addSourceConfig(newsrc) -# print "Added src with ID:", ID, "\n" -# -# ID = addSourceConfig(newsrc) -# print "Added src with ID:", ID, "\n" -# -# data = getAlertConfig() -# print xml.etree.ElementTree.tostring(data), "\n" -# -# -# newsrcxml = "<source xmlns=\"http://tuscany.apache.org/samples/alerter\" type=\"rss\">\n" -# newsrcxml += "<name>PSP Updates</name>\n" -# newsrcxml += "<address>http://pspupdates.qj.net!</address>\n" -# newsrcxml += "<feedAddress>http://pspupdates.qj.net/atom.xml</feedAddress></source>" -# -# newsrc = xml.etree.ElementTree.XML(newsrcxml) -# ID = addSourceConfig(newsrc) -# print "Added src with ID:", ID, "\n" -# -# data = getAlertConfig() -# print xml.etree.ElementTree.tostring(data), "\n" -# - diff --git a/cpp/sca/samples/AlertAggregator/sample.alerter/Alerter.xsd b/cpp/sca/samples/AlertAggregator/sample.alerter/Alerter.xsd deleted file mode 100644 index c59460995d..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.alerter/Alerter.xsd +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-
-<schema targetNamespace="http://tuscany.apache.org/samples/alerter"
- xmlns="http://www.w3.org/2001/XMLSchema"
- xmlns:ns="http://tuscany.apache.org/samples/alerter"> - <element name="alerts" type="ns:alerts"/>
- - <complexType name="alert"> - <sequence> - <element name="title" type="string"/>
- <element name="summary" type="string"/> - <element name="address" type="anyURI" maxOccurs="1" minOccurs="1"/> - <element name="date" type="string" maxOccurs="1" minOccurs="1"/> - </sequence>
- <attribute name="sourceid" type="string" use="optional"/>
- </complexType> - - <complexType name="alerts"> - <sequence> - <element name="alert" type="ns:alert" maxOccurs="unbounded" minOccurs="0" /> - </sequence>
- </complexType>
- - <element name="config" type="ns:config"/>
- <element name="source" type="ns:source"/>
- - <complexType name="source"> - <sequence> - <element name="name" type="string" maxOccurs="1" minOccurs="1"/>
- <element name="address" type="anyURI" maxOccurs="1" minOccurs="1"/>
- <element name="lastChecked" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="feedAddress" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="popServer" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="popUsername" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="popPassword" type="string" maxOccurs="1" minOccurs="0"/>
- <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> - </sequence>
- <attribute name="id" type="string" use="optional"/>
- <attribute name="type" use="required">
- <simpleType>
- <restriction base="string">
- <enumeration value="rss"/>
- <enumeration value="pop"/> - <enumeration value="nntp"/> - </restriction>
- </simpleType>
- </attribute> - </complexType> - - <complexType name="config"> - <sequence> - <element name="source" type="ns:source" maxOccurs="unbounded" minOccurs="0"/>
- </sequence>
- </complexType> -</schema>
\ No newline at end of file diff --git a/cpp/sca/samples/AlertAggregator/sample.alerter/Makefile.am b/cpp/sca/samples/AlertAggregator/sample.alerter/Makefile.am deleted file mode 100644 index 9a0ca276a0..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.alerter/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/AlertAggregator/deploy -compositedir=$(deploydir)/sample.alerter - -composite_DATA = *.composite *.py *.rb *.xsd -EXTRA_DIST = *.composite *.py *.rb *.xsd - diff --git a/cpp/sca/samples/AlertAggregator/sample.alerter/POPCheckerImpl.py b/cpp/sca/samples/AlertAggregator/sample.alerter/POPCheckerImpl.py deleted file mode 100644 index 0ae115ac2e..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.alerter/POPCheckerImpl.py +++ /dev/null @@ -1,104 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -import poplib, email, datetime, re, xml.etree.ElementTree - -def getNewAlerts(popserver, username, password, lastchecktimestamp): - - print "POPCheckerImpl getting new POP e-mail alerts\n" - - alertsXML = "<alerts xmlns=\"http://tuscany.apache.org/samples/alerter\">\n" - - # initially set lastchecked to the epoch before trying to use the lastchecked string - lastcheckdate = datetime.datetime.min - if lastchecktimestamp: - lastcheckdate = datetime.datetime.strptime(lastchecktimestamp, "%Y-%m-%dT%H:%M:%S") - - numberOfNewEmails = 0 - - mail = poplib.POP3(popserver) - mail.user(username) - mail.pass_(password) - msgCount, inboxSize = mail.stat() - - for msgNum in range(msgCount): - - print "getting msg", msgNum+1, "of", msgCount - - data = "" - for line in mail.retr(msgNum+1)[1]: - data += str(line) - data += "\n" - - msg = email.message_from_string(data) - - # date is of form "Sun, 21 Jan 2007 13:51:53 -0500" - msgDateString = msg.get("Date") - msgDateString, tz = msgDateString.rsplit(None, 1) - - timezoneadjust = datetime.timedelta(0, (int(tz)/100)*60*60 + int(tz[3:5])*60) - - msgdate = datetime.datetime.strptime(msgDateString, "%a, %d %b %Y %H:%M:%S") + timezoneadjust - - if msgdate >= lastcheckdate: - msgTo = msg.get("To") - msgFrom = msg.get("From") - msgSubject = msg.get("Subject") - - msgBody = "" - if msg.is_multipart(): - for msgPart in msg.get_payload(): - if msgPart.get_content_type() == "text/plain" or (msgPart.get_content_type() == "text/html" and msgBody == ""): - msgBody = msgPart.get_payload() - else: - msgBody = msg.get_payload() - - alertsXML += "<alert><title>" + encodeXML(msgFrom) + " - "+encodeXML(msgSubject)+"</title>\n" - alertsXML += "<address></address>\n" - alertsXML += "<date>" + msgdate.isoformat() + "</date>\n" - alertsXML += "<summary>From: " + encodeXML(msgFrom) - alertsXML += "\nTo: "+encodeXML(msgTo) - alertsXML += "\nSubject: "+encodeXML(msgSubject) - alertsXML += "\nDate: " + msgdate.isoformat() - alertsXML += "\n\n" + stripXML(msgBody) + "</summary></alert>\n" - - - mail.quit() - - alertsXML += "</alerts>" - - return xml.etree.ElementTree.XML(alertsXML) - - -def encodeXML(data): - data = re.sub("<","[", data) - data = re.sub(">","]", data) - return data - -def stripXML(data): - elementsRemoved = re.sub("<.*?>","", data) - entitiesRemoved = re.sub("&.*?;", " ", elementsRemoved) - asciiEncoded = entitiesRemoved.encode('ASCII', 'replace') - returnData = asciiEncoded.replace('&', 'and') - return returnData - - - -# Testing - -# print getNewAlerts("mail.eclipse.co.uk", "andrew@borley-hall.eclipse.co.uk", "app73sauc3", "2007-01-29T02:15:53") diff --git a/cpp/sca/samples/AlertAggregator/sample.alerter/POPCheckerImpl.rb b/cpp/sca/samples/AlertAggregator/sample.alerter/POPCheckerImpl.rb deleted file mode 100644 index e61046cb84..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.alerter/POPCheckerImpl.rb +++ /dev/null @@ -1,122 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -require 'net/pop' -require "rexml/document" -include REXML - -# class POPChecker -# -# def initialize() -# print "POPCheckerImpl.initialize\n" -# end - -def getNewAlerts(popserver, username, password, lastchecked) - - print "POPCheckerImpl getting new POP e-mail alerts\n" - - alertsXML = "<alerts xmlns=\"http://tuscany.apache.org/samples/alerter\">\n" - - # initially set lastchecked to the epoch before trying to use the lastchecked string - lastcheckedtime = Time.at(0) - if lastchecked != '' - # lastchecked (if provided) is of form 2007-02-17T23:34:56 - year , month, day, hour, min, sec = lastchecked.split(/[-T:]/) - lastcheckedtime = Time.gm(year , month, day, hour, min, sec, nil) - end - - numberOfEmails = 0 - - Net::POP3.start(popserver, 110, username, password) do |pop| - - if !pop.mails.empty? - pop.each_mail do |m| - msg = m.pop - - header, body = msg.split("\r\n\r\n", 2) - date = getMessageField("Date", header) - # date is of form "Sun, 21 Jan 2007 13:51:53 -0500" - parts = date.split(' ') - timeparts = parts[4].split(':') - timezoneSecs = (parts[5].to_i()/100)*60*60 + (parts[5].slice(-2,0).to_i())*60 - - msgtime = Time.gm(timeparts[2], timeparts[1], timeparts[0], parts[1], parts[2], parts[3], nil, nil, nil, nil) + timezoneSecs - - - if msgtime >= lastcheckedtime - from = getMessageField("From", header) - subject = getMessageField("Subject", header) - - alertsXML += "<alert><title>From: " + encodeXML(from) + "\nSubject: "+encodeXML(subject)+"</title>\n" - alertsXML += "<address></address>\n" - alertsXML += "<date>" + msgtime.strftime("%Y-%m-%dT%H:%M:%S") + "</date>\n" - alertsXML += "<summary>" + stripXML(body) + "</summary></alert>\n" - - numberOfEmails += 1 - end - - end - end - end - alertsXML += "</alerts>" - - # Print XML - # puts alertsXML - print "POPCheckerImpl retrieved "+numberOfEmails.to_s+" new POP e-mail alerts\n" - - # Return data as REXML document - result = Document.new(alertsXML) - - return result -end - - -def getMessageField(field, message) - - # Use a regex to get the field - pattern = '^'+field+': (.*?)$' - - re = Regexp.new(pattern) - re =~ message - - if $1 == nil - return '' - end - - return $1 -end - -def encodeXML(data) - data = data.gsub(/</,'<') - data = data.gsub(/>/,'>') - return data -end - -def stripXML(data) - data = data.gsub(/<.*?>/m,'') - data = data.gsub(/&.*?;/, ' ') - data = data.gsub(/&/, 'and') - data = encodeXML(data) - return data -end - - - -# # Testing -# pop = POPChecker.new() -# print pop.getNewAlerts("mail.eclipse.co.uk", "andrew@borley-hall.eclipse.co.uk", "app73sauc3", "2007-01-29T02:15:53") diff --git a/cpp/sca/samples/AlertAggregator/sample.alerter/RSSCheckerImpl.py b/cpp/sca/samples/AlertAggregator/sample.alerter/RSSCheckerImpl.py deleted file mode 100644 index 2e320c0b22..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.alerter/RSSCheckerImpl.py +++ /dev/null @@ -1,76 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -import feedparser, datetime, xml.etree.ElementTree, re - -def getNewAlerts(rssaddress, lastchecktimestamp): - - print "RSSCheckerImpl.getNewAlerts() called", rssaddress, lastchecktimestamp - - #Get and parse the RSS/Atom data - d = feedparser.parse(rssaddress) - - newalertsxml = "<alerts xmlns=\"http://tuscany.apache.org/samples/alerter\">\n" - - lastcheckdate = datetime.datetime.min - if lastchecktimestamp: - lastcheckdate = datetime.datetime.strptime(lastchecktimestamp, "%Y-%m-%dT%H:%M:%S") - - defaultTitle = d.feed.get('title', 'RSS feed article') - defaultLink = d.feed.get('link', 'http://incubator.apache.org/tuscany') - defaultSummary = 'No information provided' - - for entry in d.entries: - - if entry.has_key('date'): - (year, month, day, hour, minute, second, millisecond, microsecond, tzinfo) = entry.date_parsed - entrydate = datetime.datetime(year, month, day, hour, minute, second) - else: - entrydate = datetime.datetime.now() - - - if (entrydate > lastcheckdate) : - - newalertsxml += "<alert><title>" + stripXML(entry.get('title', defaultTitle)) + "</title>\n" - newalertsxml += "<address>" + entry.get('link', defaultLink) + "</address>\n" - newalertsxml += "<date>" + entrydate.isoformat() + "</date>\n" - newalertsxml += "<summary>" + stripXML(entry.get('description', defaultSummary)) + "</summary></alert>\n" - newalertsxml += "</alerts>" - - return xml.etree.ElementTree.XML(newalertsxml) - -def stripXML(data): - elementsRemoved = re.sub("<.*?>","", data) - entitiesRemoved = re.sub("&.*?;", " ", elementsRemoved) - asciiEncoded = entitiesRemoved.encode('ASCII', 'replace') - returnData = asciiEncoded.replace('&', 'and') - return returnData - - -# Testing -# print xml.etree.ElementTree.tostring(getNewAlerts("http://www.engadget.com/rss.xml", "2007-02-07T17:11:14")) -# -# -# today = datetime.datetime.now().replace(hour=0, minute=0, second=0, microsecond=0) -# data2 = getNewAlerts("http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml", today.isoformat()) -# print xml.etree.ElementTree.tostring(data2) -# -# print "1st call returned", len(data.findall("./{http://tuscany.apache.org/samples/alerter}alert")), "elements" -# print "2nd call returned", len(data2.findall("./{http://tuscany.apache.org/samples/alerter}alert")), "elements" - - diff --git a/cpp/sca/samples/AlertAggregator/sample.alerter/sample.alerter.composite b/cpp/sca/samples/AlertAggregator/sample.alerter/sample.alerter.composite deleted file mode 100644 index 21c4ee1093..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.alerter/sample.alerter.composite +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.alerter"> - - <service name="AlerterService"> - <binding.rest/> - <reference>AlertCheckerComponent</reference> - </service> - - <component name="AlertCheckerComponent"> - <implementation.python module="AlertCheckerImpl" scope="composite"/> - <reference name="alertConfigService">AlertConfigComponent</reference> - <reference name="rssCheckerService">RSSCheckerComponent</reference> - <reference name="popCheckerService">POPCheckerComponent</reference> - </component> - - <component name="RSSCheckerComponent"> - <implementation.python module="RSSCheckerImpl" scope="composite"/> - </component> - - <component name="POPCheckerComponent"> - <!--implementation.ruby script="POPCheckerImpl.rb" scope="stateless"/--> - <implementation.python module="POPCheckerImpl" scope="composite"/> - </component> - - <component name="AlertConfigComponent"> - <implementation.python module="AlertConfigImpl" scope="composite"/> - </component> - -</composite> diff --git a/cpp/sca/samples/AlertAggregator/sample.display/Alerter.xsd b/cpp/sca/samples/AlertAggregator/sample.display/Alerter.xsd deleted file mode 100644 index c59460995d..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.display/Alerter.xsd +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-
-<schema targetNamespace="http://tuscany.apache.org/samples/alerter"
- xmlns="http://www.w3.org/2001/XMLSchema"
- xmlns:ns="http://tuscany.apache.org/samples/alerter"> - <element name="alerts" type="ns:alerts"/>
- - <complexType name="alert"> - <sequence> - <element name="title" type="string"/>
- <element name="summary" type="string"/> - <element name="address" type="anyURI" maxOccurs="1" minOccurs="1"/> - <element name="date" type="string" maxOccurs="1" minOccurs="1"/> - </sequence>
- <attribute name="sourceid" type="string" use="optional"/>
- </complexType> - - <complexType name="alerts"> - <sequence> - <element name="alert" type="ns:alert" maxOccurs="unbounded" minOccurs="0" /> - </sequence>
- </complexType>
- - <element name="config" type="ns:config"/>
- <element name="source" type="ns:source"/>
- - <complexType name="source"> - <sequence> - <element name="name" type="string" maxOccurs="1" minOccurs="1"/>
- <element name="address" type="anyURI" maxOccurs="1" minOccurs="1"/>
- <element name="lastChecked" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="feedAddress" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="popServer" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="popUsername" type="string" maxOccurs="1" minOccurs="0"/>
- <element name="popPassword" type="string" maxOccurs="1" minOccurs="0"/>
- <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> - </sequence>
- <attribute name="id" type="string" use="optional"/>
- <attribute name="type" use="required">
- <simpleType>
- <restriction base="string">
- <enumeration value="rss"/>
- <enumeration value="pop"/> - <enumeration value="nntp"/> - </restriction>
- </simpleType>
- </attribute> - </complexType> - - <complexType name="config"> - <sequence> - <element name="source" type="ns:source" maxOccurs="unbounded" minOccurs="0"/>
- </sequence>
- </complexType> -</schema>
\ No newline at end of file diff --git a/cpp/sca/samples/AlertAggregator/sample.display/HTMLDisplayImpl.py b/cpp/sca/samples/AlertAggregator/sample.display/HTMLDisplayImpl.py deleted file mode 100644 index 0122701063..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.display/HTMLDisplayImpl.py +++ /dev/null @@ -1,379 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - - -import xml.etree.ElementTree, datetime, os.path, os - -ns = "./{http://tuscany.apache.org/samples/alerter}" - -def getSavedAlerts(): - - # Set up some default config data - alertsData = "<alerts xmlns=\"http://tuscany.apache.org/samples/alerter\">\n</alerts>" - - if os.path.isfile(os.environ['TUSCANY_SCACPP_ROOT']+"/sample.display/alerts.xml"): - # Retrieve the configuration from a file - f = open(os.environ['TUSCANY_SCACPP_ROOT']+"/sample.display/alerts.xml") - try: - alertsData = f.read() - finally: - f.close() - - alertsElem = xml.etree.ElementTree.XML(alertsData) - - return alertsElem - -def saveAlerts(alertsElem): - alertsData = xml.etree.ElementTree.tostring(alertsElem) - - # Save the configuration to a file - f = open(os.environ['TUSCANY_SCACPP_ROOT']+"/sample.display/alerts.xml", "w") - - if not f: - print "Failed to open alerts file for writing" - try: - f.write(alertsData) - finally: - f.close() - - -def updateAllAlertsHTMLTable (): - - alertsElem = getSavedAlerts() - - # Use the alertService reference - newAlertsElem = alertService.getAllNewAlerts() - #newAlertsElem = getAllNewAlerts(); # For testing - - for alert in newAlertsElem.findall(ns+"alert"): - - alert.attrib["unread"]="True" - alertsElem.append(alert) - - return generateHTMLTable(alertsElem) - - -def updateSourceAlertsHTMLTable (sourceId): - - alertsElem = getSavedAlerts() - - # Use the alertService reference - newAlertsElem = alertService.getNewAlerts(sourceId); - #newAlertsElem = getAllNewAlerts(); # For testing - - for alert in newAlertsElem.findall(ns+"alert"): - - alert.attrib["unread"]="True" - alertsElem.append(alert) - - return generateHTMLTable(alertsElem) - - - -def generateHTMLTable (alertsElem): - - returnData = "<TABLE border=\"0\">" - - # If we have more than x alerts, clear out any that have been read - # x is determined by the showNumberOfReadAlerts property - alerts = alertsElem.findall(ns+"alert") - if len(alerts) > int(showNumberOfReadAlerts): - for alert in alerts: - if alert.attrib["unread"]!="True": - alertsElem.remove(alert) - - alertIDNumber = 0 - for alert in alertsElem.findall(ns+"alert"): - - date = datetime.datetime.strptime(alert.find(ns+"date").text, "%Y-%m-%dT%H:%M:%S") - alertID = "alert_"+str(alertIDNumber) - alert.attrib["id"]= alertID - alertIDNumber += 1 - - returnData += "<TR class=\"source_" - returnData += alert.attrib["sourceid"] - returnData += " clickable\" onclick=\"displayAlert('" - address = alert.find(ns+"address").text - if address != None: - returnData += address - returnData += "', '"+alertID+"')\"><TD><SPAN id=\""+alertID+"\" class=\"" - if alert.attrib["unread"] == "True": - returnData += "unread_title" - else: - returnData += "read_title" - returnData += "\">" - title = alert.find(ns+"title").text - noOfChars = 75-len(title) - - if noOfChars>0: - returnData += title - returnData += "</SPAN><SPAN class=\"summary\"> - " - returnData += alert.find(ns+"summary").text[0:noOfChars] - returnData += "...</SPAN></TD><TD>" - else: - returnData += title[0:80] - returnData += "</SPAN></TD><TD>" - - returnData += date.strftime("%d/%m/%Y %I:%M %p") - returnData += "</TD></TR>\n" - - returnData += "</TABLE>" - - saveAlerts(alertsElem) - #print xml.etree.ElementTree.tostring(alertsElem) - return returnData - -def readAlert (alertID): - - alertsElem = getSavedAlerts() - - returnData = "" - for alert in alertsElem.findall(ns+"alert"): - - if alert.attrib["id"]==alertID: - alert.attrib["unread"] = "False" - - saveAlerts(alertsElem) - - srcType = getSourceType(alert.attrib["sourceid"]) - - if srcType=="pop": - returnData += "<PRE>" - returnData += alert.find(ns+"summary").text - returnData += "</PRE>" - return returnData - - return - -def getSourceType(sourceid): - # Use the alertService reference - alertSources = alertService.getAlertSources() - #alertSources = getAlertSources() #testing - - for source in alertSources.findall(ns+"source"): - - if sourceid == source.attrib["id"]: - return source.attrib["type"] - - return "none" - - -def getAlertSourcesHTMLTable(): - - returnData = "<TABLE border=\"0\">\n" - - # Use the alertService reference - alertSources = alertService.getAlertSources() - #alertSources = getAlertSources() #testing - - srcIdList = [] - - for source in alertSources.findall(ns+"source"): - - srcId = source.attrib["id"] - srcIdList.append(srcId) - srcType = source.attrib["type"] - - # Write out the source data row - returnData += "<TR CLASS=\"source_" - returnData += srcId - returnData += "\"><TD CLASS=\"clickable\" ONCLICK=\"displayAlert('" - returnData += source.find(ns+"address").text - returnData += "', '')\">" - returnData += "<IMG SRC=\"" - returnData += srcType - returnData += ".png\"/> " - returnData += source.find(ns+"name").text - returnData += "</TD><TD CLASS=\"clickable link\" ONCLICK=\"getAlerts('" - returnData += srcId - returnData += "')\">Update Alerts</TD><TD CLASS=\"clickable link\" ONCLICK=\"showEditSource('" - returnData += srcId - returnData += "')\">Edit Source</TD><TD CLASS=\"clickable link\" ONCLICK=\"deleteSource('" - returnData += srcId - returnData += "')\">Delete Source</TD></TR>\n" - - # Now write out the row that gets shown when "edit" is pressed - returnData += "<TR ID=\"edit_source_" - returnData += srcId - returnData += "\" CLASS=\"hidden source_" - returnData += srcId - returnData += "\"><TD COLSPAN=\"4\"><TABLE CLASS=\"sourceDetailsTable\"><TR><TD>Source name:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_name\" TYPE=\"TEXT\" SIZE=\"50\" VALUE=\"" - returnData += source.find(ns+"name").text - returnData += "\"/></TR><TR><TD>Source address:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_address\" TYPE=\"TEXT\" SIZE=\"50\" VALUE=\"" - returnData += source.find(ns+"address").text - returnData += "\"/></TR>" - if srcType=="rss": - returnData += "<TR><TD>Feed address:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_feedAddress\" TYPE=\"TEXT\" SIZE=\"50\" VALUE=\"" - returnData += source.find(ns+"feedAddress").text - returnData += "\"/></TR>" - elif srcType=="pop": - returnData += "<TR><TD>POP3 server:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_popServer\" TYPE=\"TEXT\" SIZE=\"50\" VALUE=\"" - returnData += source.find(ns+"popServer").text - returnData += "\"/></TR>" - returnData += "<TR><TD>Username:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_popUsername\" TYPE=\"TEXT\" SIZE=\"50\" VALUE=\"" - returnData += source.find(ns+"popUsername").text - returnData += "\"/></TD></TR>" - returnData += "<TR><TD>Password:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_popPassword\" TYPE=\"PASSWORD\" SIZE=\"50\" VALUE=\"" - returnData += source.find(ns+"popPassword").text - returnData += "\"/></TD></TR>" - returnData += "<TR><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_type\" TYPE=\"HIDDEN\" VALUE=\"" - returnData += srcType - returnData += "\"/><INPUT TYPE=\"BUTTON\" VALUE=\"Update\" ONCLICK=\"updateSource('" - returnData += srcId - returnData += "')\"><INPUT TYPE=\"BUTTON\" VALUE=\"Cancel\" ONCLICK=\"hideEditSource('" - returnData += srcId - returnData += "')\"></TR></TABLE></TD></TR>" - - # Get the first unused srcId - srcId = "0" - while srcId in srcIdList: - srcId = str(int(srcId)+1) - - # Now write out the "add new source" row - returnData += "<TR CLASS=\"source_" - returnData += srcId - returnData += "\"><TD COLSPAN=\"4\" CLASS=\"clickable link\" ONCLICK=\"showAddNewSource('" - returnData += srcId - returnData += "')\">Add new Alert Source</TD></TR>" - # Add the (initially hidden) new source details row - returnData += "<TR ID=\"add_source_" - returnData += srcId - returnData += "\"CLASS=\"hidden source_" - returnData += srcId - returnData += "\"><TD COLSPAN=\"4\"><TABLE CLASS=\"sourceDetailsTable\"><TR><TD>Source name:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_name\" TYPE=\"TEXT\" SIZE=\"50\"/></TD></TR><TR><TD>Source address:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_address\" TYPE=\"TEXT\" SIZE=\"50\"/></TD></TR><TR><TD>Source type:</TD><TD><SELECT ID=\"source_" - returnData += srcId - returnData += "_type\" ONCHANGE=\"showSourceType('" - returnData += srcId - returnData += "')\"><OPTION value=\"rss\" selected=\"selected\">RSS/Atom feed</OPTION>" - returnData += "<OPTION value=\"pop\">POP3 Email</OPTION></SELECT></TD></TR>" - # Section for RSS feeds - returnData += "<TR ID=\"add_rss_source\"><TD COLSPAN=\"2\"><TABLE CLASS=\"sourceDetailsTable\"><TR><TD>Feed address:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_feedAddress\" TYPE=\"TEXT\" SIZE=\"50\"/></TD></TR></TABLE></TD></TR>" - # Section for POP3 email - returnData += "<TR ID=\"add_pop_source\" CLASS=\"hidden\"><TD COLSPAN=\"2\"><TABLE CLASS=\"sourceDetailsTable\"><TR><TD>POP3 server:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_popServer\" TYPE=\"TEXT\" SIZE=\"50\"/></TR>" - returnData += "<TR><TD>Username:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_popUsername\" TYPE=\"TEXT\" SIZE=\"50\"/></TD></TR>" - returnData += "<TR><TD>Password:</TD><TD><INPUT ID=\"source_" - returnData += srcId - returnData += "_popPassword\" TYPE=\"PASSWORD\" SIZE=\"50\"/></TD></TR></TABLE></TD></TR>" - # Last row for buttons - returnData += "<TR><TD><INPUT TYPE=\"BUTTON\" VALUE=\"Add\" ONCLICK=\"addSource('" - returnData += srcId - returnData += "')\"><INPUT TYPE=\"BUTTON\" VALUE=\"Cancel\" ONCLICK=\"hideAddNewSource('" - returnData += srcId - returnData += "')\"></TD></TR></TABLE></TD></TR>" - returnData += "</TABLE>\n" - return returnData - - -def deleteAlertSource (sourceId): - # Use the alertService reference - alertService.removeAlertSource(sourceId) - - - # Remove all alerts with this sourceid - alertsElem = getSavedAlerts() - for alert in alertsElem.findall(ns+"alert"): - if alert.attrib["sourceid"]==sourceId: - alertsElem.remove(alert) - - saveAlerts(alertsElem) - -def addAlertSource(alertSourceElem): - if xml.etree.ElementTree.iselement(alertSourceElem): - # Use the alertService reference - alertService.addAlertSource(alertSourceElem) - return - -def updateAlertSource(alertSourceElem): - - if xml.etree.ElementTree.iselement(alertSourceElem): - - alertsElem = getSavedAlerts() - - # Get the sourceid - sourceId = alertSourceElem.attrib["id"] - - # Remove all alerts with this sourceid - they may have changed - for alert in alertsElem.findall(ns+"alert"): - if alert.attrib["sourceid"]==sourceId: - alertsElem.remove(alert) - - # Use the alertService reference to update the config - alertService.updateAlertSource(alertSourceElem) - - saveAlerts(alertsElem) - - return - - -# # For testing -# showNumberOfReadAlerts = 3 -# -# def getAllNewAlerts (): -# -# data = "<alerts xmlns=\"http://tuscany.apache.org/samples/alerter\">" -# -# data += "<alert sourceid=\"0\" id=\"alert_0\"><title>Arrests over 'terror kidnap plot'</title>" -# data += "<summary>Anti-terror police arrest eight people in Birmingham over an alleged plot to kidnap a member of the armed forces.</summary>" -# data += "<address>http://news.bbc.co.uk/go/rss/-/1/hi/uk/6315989.stm</address><date>2007-01-31T15:34:18</date></alert>" -# -# data += "</alerts>" -# -# return xml.etree.ElementTree.XML(data) -# -# print getAlertsHTMLTable () + "\n" -# -# readAlert("http://news.bbc.co.uk/go/rss/-/1/hi/uk/6315989.stm") -# -# print getAlertsHTMLTable () + "\n" -# -# def getAlertSources (): -# -# data = "<config xmlns=\"http://tuscany.apache.org/samples/alerter\">" -# data += "<source id=\"0\" type=\"rss\"><name>BBC News</name>" -# data += "<address>http://news.bbc.co.uk/</address>" -# data += "<lastChecked>2007-02-02T10:08:40</lastChecked>" -# data += "<feedAddress>http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml</feedAddress></source>" -# data += "</config>" -# return xml.etree.ElementTree.XML(data) -# -# print getAlertSourcesHTMLTable() diff --git a/cpp/sca/samples/AlertAggregator/sample.display/Makefile.am b/cpp/sca/samples/AlertAggregator/sample.display/Makefile.am deleted file mode 100644 index 6ac781c7df..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.display/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/AlertAggregator/deploy -compositedir=$(deploydir)/sample.display - -composite_DATA = *.composite *.py *.xsd -EXTRA_DIST = *.composite *.py *.xsd - diff --git a/cpp/sca/samples/AlertAggregator/sample.display/sample.display.composite b/cpp/sca/samples/AlertAggregator/sample.display/sample.display.composite deleted file mode 100644 index 593c53c15f..0000000000 --- a/cpp/sca/samples/AlertAggregator/sample.display/sample.display.composite +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.display"> - - <service name="HTMLDisplayService"> - <binding.rest/> - <reference>HTMLDisplayComponent</reference> - </service> - - <component name="HTMLDisplayComponent"> - <implementation.python module="HTMLDisplayImpl" scope="composite"/> - <reference name="alertService">AlerterService</reference> - <property name="showNumberOfReadAlerts">20</property> - </component> - - <reference name="AlerterService"> - <binding.rest/> - </reference> - -</composite>
\ No newline at end of file diff --git a/cpp/sca/samples/COPYING b/cpp/sca/samples/COPYING deleted file mode 100755 index 6b0b1270ff..0000000000 --- a/cpp/sca/samples/COPYING +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/cpp/sca/samples/ChangeLog b/cpp/sca/samples/ChangeLog deleted file mode 100644 index e69de29bb2..0000000000 --- a/cpp/sca/samples/ChangeLog +++ /dev/null diff --git a/cpp/sca/samples/CppBigBank/Makefile.am b/cpp/sca/samples/CppBigBank/Makefile.am deleted file mode 100644 index 95045e0be6..0000000000 --- a/cpp/sca/samples/CppBigBank/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/CppBigBank/deploy -SUBDIRS = bigbank.account bigbank.client bigbank.phpwsclient -EXTRA_DIST = *.composite README.html -deploy_DATA = *.composite diff --git a/cpp/sca/samples/CppBigBank/README b/cpp/sca/samples/CppBigBank/README deleted file mode 100644 index 341db17b63..0000000000 --- a/cpp/sca/samples/CppBigBank/README +++ /dev/null @@ -1,26 +0,0 @@ -Tuscany SCA for C++ Samples - C++ BigBank Sample -=============================================== - -This sample implements the "Simplified BigBank" scenario. A whitepaper -describing the scenario based on the SCA 0.9 Assembly specification can be -found here. This sample uses multiple C++ components, calls out to an -external Web Service via a reference, exposes the service as a Web Service -and also provides a PHP based client. - -There are three sub projects in this workspace: - - bigbank.account - This contains the source code and SCDL artifacts for the SCA BigBank - composite implementing the account services. - - - bigbank.client - A sample client which does a local call to the BigBank service. - - - bigbank.phpclient - A sample PHP client which calls the BigBank Web service and then - deconstructs and displays the result by using the SDO for PHP extension. - -Additionally, there is the bigbank.app.composite file. This describes the -configuration of the SCA BigBank composite deployed to the SCA runtime. - -See the README.html file for instructions to build and run this sample - diff --git a/cpp/sca/samples/CppBigBank/README.html b/cpp/sca/samples/CppBigBank/README.html deleted file mode 100644 index 4720dd7b57..0000000000 --- a/cpp/sca/samples/CppBigBank/README.html +++ /dev/null @@ -1,389 +0,0 @@ - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../../doc/css/maven-base.css"); -@import url("../../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - C++ BigBank Sample</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany SCA Native Samples - C++ BigBank Sample</H1> - - <P>This sample implements the "Simplified BigBank" scenario. A whitepaper describing - the scenario based on the SCA 0.9 Assembly specification can be found - <A HREF="http://www.osoa.org/display/Main/SCA+-+Previously+Published+Specifications">here</A>. - This sample uses multiple C++ components, calls out to an external Web Service via a reference, - exposes the service as a Web Service and also provides a PHP based client. - </P> - <P>There are three sub projects in this workspace:</P> - <UL> - <LI>bigbank.account<BR/> - This contains the source code and SCDL artifacts for the SCA BigBank - composite implementing the account services. - </LI> - <LI>bigbank.client<BR/> - A sample client which does a local call to the BigBank service. - </LI> - <LI>bigbank.phpclient<BR/> - A sample PHP client which calls the BigBank Web service and then deconstructs - and displays the result by using the - <A HREF="http://www.osoa.org/display/PHP/SOA+PHP+Homepage">SDO for PHP extension</A>. - <P>This is a pair of very simple PHP scripts to demonstrate how the Accounts service - that the C++ Big Bank sample exposes can be used from within the PHP scripting - language. - </P> - <P>bigwelcome.php<BR/> - A bootstrap script that shows a form and allows the user to press a button - in order to invoke the bigaccount.php script - </P> - <P>bigaccount.php<BR/> - Makes a call to a locally installed BigBank Accounts service. The script - shows how to use PHP SDO and SOAP extensions to construct the call - and interpret the result. - </P> - </LI> - </UL> - <P>Additionally, there is the bigbank.app.composite file. This describes the - configuration of the SCA BigBank composite deployed to the SCA runtime. - </P> - - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the C++ samples on Linux and Mac OS X</A></LI> - <LI><A HREF="#linuxrun">Running the C++ BigBank sample on Linux and Mac OS X:</A></LI> - <UL> - <LI><A HREF="#linuxbasic">Running the basic client</A></LI> - <LI><A HREF="#linuxphp">Installing and running the PHP web client</A></LI> - </UL> - <LI><A HREF="#winbld">Building the C++ BigBank sample on Windows</A></LI> - <LI><A HREF="#winrun">Running the C++ BigBank sample on Windows:</A></LI> - <UL> - <LI><A HREF="#winbasic">Running the basic client</A></LI> - <LI><A HREF="#winphp">Installing and running the PHP web client</A></LI> - </UL> - <LI><A HREF="#help">Getting help</A></LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the C++ samples on Linux and Mac OS X</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the samples on Linux and Mac OS X</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>Build the C++ samples with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure --prefix=$TUSCANY_SCACPP/samples --enable-static=no</LI> - <LI>make</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide the --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/CppBigBank</LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the C++ BigBank sample on Linux and Mac OS X</H2></A> - <A NAME="linuxbasic"><H3>BigBank with basic client</H3></A> - <OL> - <LI>The C++ BigBank sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/CppExtension.html">C++ Extension</A></LI> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Services Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to Axis2/C version 0.96></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/CppBigBank/deploy/bigbank.client</LI> - <LI>./runclient.sh</LI> - </UL> - </LI> - </OL> - <A NAME="linuxphp"><H3>BigBank with PHP web client</H3></A> - <OL> - <LI>The C++ BigBank sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/CppExtension.html">C++ Extension</A></LI> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Services Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>Ensure you have enabled Axis2/C to run Tuscany SCA services. Follow the instructions - found <A HREF="../../doc/Axis2CWSExtension.html#deploy">here</A>. - </LI> - <LI>Start the Axis2/C simple http server: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to Axis2/C version 0.96></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>/samples/CppBigBank/deploy/bin - </LI> - <LI>./runwsserver.sh</LI> - </OL> - </LI> - <LI>To run the php scripts requires some configuration and setup of a php runtime with - the SDO and SimpleXML extensions enabled. The bits you will need are: - <UL> - <LI><A HREF="http://httpd.apache.org/">Apache web server</A> (tested with version 2.0.55)</LI> - <LI><A HREF="http://www.php.net/downloads.php">PHP 5</A> (tested with version 5.1.6)</LI> - <LI><A HREF="http://pecl.php.net/package/sdo">PHP SDO</A> (tested with version 1.0.3)</LI> - </UL> - <P>Follow - <A HREF="http://livedocs.phpdoc.info/index.php?l=en&q=ref.sdo">these instructions</A> to - install SDO and DAS. - </P> - </LI> - <LI>You need to configure Apache to run PHP of course. This is well documented but this - is what to put at the end of httpd.conf: - <PRE># PHP5 Support -LoadModule php5_module "/home/php/php5.1.6/php5apache2.so" -AddType application/x-httpd-php .php - -# configure the path to php.ini -PHPIniDir "/home/php/php5.1.6"</PRE> - </LI> - <LI>Copy the <tuscany_sca_install_dir>/samples/CppBigBank/bigbank.phpwsclient - directory to your Apache document root directory (by default this is named 'htdocs'). - </LI> - <LI>Finally, start your Apache web server. - </LI> - <LI>Run the PHP web client by pointing your browser at - <A HREF="http://localhost/bigbank.phpwsclient/welcome.php">http://localhost/bigbank.phpwsclient/welcome.php</A>. - You should now be able to press the "GetAccount" button and see the values - returned from the BigBank SCA application. - </LI> - - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winbld"><H2>Building the C++ BigBank sample on Windows</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>\samples - go directly to <A HREF="#winrun">Running the samples on Windows</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>You must have set up the environment for Microsoft Visual C++ tools. - The build command will call vcvars32 to set the environment. Ensure the - directory containing this is on your path. This will be where you - installed the compiler. - </LI> - <LI>Build the source, either via the Visual Studio Express projects under - <tuscany_sca_install_dir>\samples\CppBigBank\VSExpress\CppBigBank.sln or via the command-line build file - found at <tuscany_sca_install_dir>\samples\CppBigBank\VSExpress\CppBigBank\build.bat - which will build and deploy the samples. - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winrun"><H2>Running the C++ BigBank sample on Windows</H2></A> - <A NAME="winbasic"><H3>BigBank with basic client</H3></A> - <OL> - <LI>The C++ BigBank sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/CppExtension.html">C++ Extension</A></LI> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Services Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\CppBigBank\deploy\bigbank.client</LI> - <LI>runclient.bat</LI> - </UL> - </LI> - </OL> - <A NAME="winphp"><H3>BigBank with PHP web client</H3></A> - <OL> - <LI>The C++ BigBank sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/CppExtension.html">C++ Extension</A></LI> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Services Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>Ensure you have enabled Axis2/C to run Tuscany SCA services. Follow the instructions - found <A HREF="../../doc/Axis2CWSExtension.html#deploy">here</A>. - </LI> - <LI>Start the Axis2/C simple http server: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to Axis2/C version 0.96></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>\samples\CppBigBank\deploy\bigbank.account - </LI> - <LI>runwsserver.bat</LI> - </OL> - </LI> - <LI>To run the php scripts requires some configuration and setup of a php runtime with - the SDO and SimpleXML extensions enabled. The bits you will need are: - <UL> - <LI><A HREF="http://httpd.apache.org/">Apache web server</A> (tested with version 2.0.55)</LI> - <LI><A HREF="http://www.php.net/downloads.php">PHP 5</A> (tested with version 5.1.6)</LI> - <LI><A HREF="http://pecl.php.net/package/sdo">PHP SDO</A> (tested with version 1.0.3)</LI> - </UL> - <P>You can get Windows binary builds from - <A HREF="http://www.php.net/downloads.php">http://www.php.net/downloads.php</A>. - For SDO you need two dlls as follows: - </P> - <UL> - <LI><A HREF="http://pecl4win.php.net/ext.php/php_sdo.dll">php_sdo.dll</A></LI> - <LI><A HREF="http://pecl4win.php.net/ext.php/php_sdo_das_xml.dll">php_sdo_das_xml.dll</A></LI> - </UL> - <P>Copy these to the php5.1.6\ext dir ( php_soap.dll is already there) and add the - following to php.ini file (having already renamed php.ini-recommended to php.ini - of course) - <PRE>extension=php_soap.dll -extension=php_sdo.dll -extension=php_sdo_das_xml.dll</PRE> - I also changed the extension_dir directive to point to my extensions directory: - <PRE>extension_dir="C:\php5.1.6\ext"</PRE> - </P> - <P>Asking PHP to list what modules are active gives the following: - <PRE>C:\php5.1.6>php -m -[PHP Modules] -bcmath -calendar -com_dotnet -ctype -date -dom -ftp -hash -iconv -libxml -odbc -pcre -Reflection -sdo -sdo_das_xml -session -SimpleXML -soap -SPL -standard -tokenizer -wddx -xml -xmlreader -xmlwriter -zlib - -[Zend Modules]</PRE> - Of particular relevance to these scripts note that soap, sdo and sdo_das_xml are active. - </P> - </LI> - <LI>You need to configure Apache to run PHP of course. This is well documented but this - is what to put at the end of httpd.conf: - <PRE># PHP5 Support -LoadModule php5_module "C:\php5.1.6\php5apache2.dll" -AddType application/x-httpd-php .php - -# configure the path to php.ini -PHPIniDir "C:\php5.1.6"</PRE> - </LI> - <LI>Copy the <tuscany_sca_install_dir>\samples\CppBigBank\bigbank.phpwsclient - directory to your Apache document root directory (by default this is named 'htdocs'). - </LI> - <LI>Finally, start your Apache web server. - </LI> - <LI>Run the PHP web client by pointing your browser at - <A HREF="http://localhost/bigbank.phpwsclient/welcome.php">http://localhost/bigbank.phpwsclient/welcome.php</A>. - You should now be able to press the "GetAccount" button and see the values - returned from the BigBank SCA application. - </LI> - </OL> - </DIV> - - - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> - diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataService.h b/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataService.h deleted file mode 100644 index 64d093ac6f..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataService.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#include <string> - -#include "commonj/sdo/SDO.h" - -namespace services -{ - namespace accountdata - { - - /** - * AccountDataService business interface - */ - class AccountDataService - { - public: - - // CheckingAccount is a data object containing - // string accountNumber - // float balance - - virtual commonj::sdo::DataObjectPtr /* CheckingAccount*/ getCheckingAccount( - const std::string id) = 0; - - // SavingsAccount is a data object containing - // string accountNumber - // float balance - - virtual commonj::sdo::DataObjectPtr /* SavingsAccount */ getSavingsAccount( - const std::string id) = 0; - - // StockAccount is a data object containing - // string accountNumber - // string symbol - // int quantity - - virtual commonj::sdo::DataObjectPtr /* StockAccount */ getStockAccount ( - const std::string id) = 0; - - }; - - } // End accountdata -} // End services diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataServiceImpl.componentType b/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataServiceImpl.componentType deleted file mode 100644 index b1cab9e1f9..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataServiceImpl.componentType +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - - <service name="AccountDataService"> - <interface.cpp header="AccountDataService.h"/> - </service> - -</componentType> -
\ No newline at end of file diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataServiceImpl.cpp b/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataServiceImpl.cpp deleted file mode 100644 index 2deee17eb2..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataServiceImpl.cpp +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "commonj/sdo/SDO.h" -#include "osoa/sca/sca.h" - -#include "AccountDataServiceImpl.h" - -using namespace std; -using namespace commonj::sdo; -using namespace osoa::sca; - -/** - * AccountDataServiceImpl component implementation - */ - -namespace services -{ - namespace accountdata - { - - DataObjectPtr /* CheckingAccount*/ - AccountDataServiceImpl::getCheckingAccount(const string id) - { - try { - - DataFactoryPtr factory = ComponentContext::getCurrent().getDataFactory(); - - DataObjectPtr newaccount = - factory->create("http://www.bigbank.com/AccountService","CheckingAccount"); - - char* name = new char[id.size() + 10]; - strcpy(name,id.c_str()); - strcat(name,"_CHA12345"); - - newaccount->setCString("accountNumber",name); - - delete name; - - newaccount->setFloat("balance",1500.0f); - - return newaccount; - - } - catch (SDORuntimeException&) - { - return 0; - } - } - - - - DataObjectPtr /* SavingsAccount */ - AccountDataServiceImpl::getSavingsAccount(const string id) - { - try { - - DataFactoryPtr factory = ComponentContext::getCurrent().getDataFactory(); - - DataObjectPtr newaccount = - factory->create("http://www.bigbank.com/AccountService","SavingsAccount"); - - char* name = new char[id.size() + 10]; - strcpy(name,id.c_str()); - strcat(name,"_SAA12345"); - - newaccount->setCString("accountNumber",name); - - delete name; - - newaccount->setFloat("balance",1500.0f); - - return newaccount; - - } - catch (SDORuntimeException&) - { - return 0; - } - } - - - DataObjectPtr /* StockAccount */ - AccountDataServiceImpl::getStockAccount (const string id) - { - try { - - DataFactoryPtr factory = ComponentContext::getCurrent().getDataFactory(); - - DataObjectPtr newaccount = - factory->create("http://www.bigbank.com/AccountService","StockAccount"); - - char* name = new char[id.size() + 10]; - strcpy(name,id.c_str()); - strcat(name,"_STA12345"); - - newaccount->setCString("accountNumber",name); - - delete name; - - newaccount->setCString("symbol","IBM"); - - newaccount->setInt("quantity",100); - - return newaccount; - - } - catch (SDORuntimeException&) - { - return 0; - } - } - - } // End accountdata -} // End services diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataServiceImpl.h b/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataServiceImpl.h deleted file mode 100644 index 9312175540..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/AccountDataServiceImpl.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#include "AccountDataService.h" - -namespace services -{ - namespace accountdata - { - - /** - * AccountDataServiceImpl component implementation class - */ - class AccountDataServiceImpl : public AccountDataService - { - public: - - // CheckingAccount is a data object containing - // string accountNumber - // float balance - - virtual commonj::sdo::DataObjectPtr /* CheckingAccount*/ getCheckingAccount( - const std::string id); - - // SavingsAccount is a data object containing - // string accountNumber - // float balance - - virtual commonj::sdo::DataObjectPtr /* SavingsAccount */ getSavingsAccount( - const std::string id); - - // StockAccount is a data object containing - // string accountNumber - // string symbol - // int quantity - - virtual commonj::sdo::DataObjectPtr /* StockAccount */ getStockAccount ( - const std::string id); - - }; - - } // End accountdata -} // End services diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/AccountService.h b/cpp/sca/samples/CppBigBank/bigbank.account/AccountService.h deleted file mode 100644 index 85337d37a9..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/AccountService.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#include <string> - -#include "commonj/sdo/SDO.h" - -namespace services -{ - namespace account - { - - /** - * AccountService business interface - */ - class AccountService - { - public: - - // The account report data object has one many-valued - // property "accountSummaries", containing the following - // properties: - // string accountNumber - // string accountType - // float balance. - - virtual commonj::sdo::DataObjectPtr /*AccountReport*/ - getAccountReport(const std::string customerID) = 0; - - }; - - } // End account -} // End services diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/AccountService.wsdl b/cpp/sca/samples/CppBigBank/bigbank.account/AccountService.wsdl deleted file mode 100644 index b83c453462..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/AccountService.wsdl +++ /dev/null @@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:tns="http://www.bigbank.com/AccountService" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.bigbank.com/AccountService" - name="AccountService"> - - <wsdl:types> - <xsd:schema - targetNamespace="http://www.bigbank.com/AccountService" - xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - - <xsd:element name="getAccountReport"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="customerID" - type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="getAccountReportResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="result" - type="tns:AccountReport" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:complexType name="AccountReport"> - <xsd:sequence> - <xsd:element name="checking" - type="tns:CheckingAccount" maxOccurs="unbounded" /> - <xsd:element name="savings" - type="tns:SavingsAccount" maxOccurs="unbounded" /> - <xsd:element name="stocks" type="tns:StockAccount" - maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="StockAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="symbol" type="xsd:string" /> - <xsd:element name="quantity" type="xsd:integer" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="CheckingAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="SavingsAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - </xsd:schema> - </wsdl:types> - - <wsdl:message name="getAccountReportRequest"> - <wsdl:part element="tns:getAccountReport" - name="getAccountReportRequest" /> - </wsdl:message> - - <wsdl:message name="getAccountReportResponse"> - <wsdl:part element="tns:getAccountReportResponse" - name="getAccountReportResponse" /> - </wsdl:message> - - <wsdl:portType name="AccountService"> - <wsdl:operation name="getAccountReport"> - <wsdl:input message="tns:getAccountReportRequest" /> - <wsdl:output message="tns:getAccountReportResponse" /> - </wsdl:operation> - </wsdl:portType> - - <wsdl:binding name="AccountServiceSOAP" type="tns:AccountService"> - <soap:binding style="document" - transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="getAccountReport"> - <soap:operation - soapAction="http://www.bigbank.com/AccountService/getAccountReport" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - - <wsdl:service name="AccountService"> - <wsdl:port binding="tns:AccountServiceSOAP" - name="AccountServiceSOAP"> - <soap:address - location="http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/AccountService" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/AccountServiceImpl.componentType b/cpp/sca/samples/CppBigBank/bigbank.account/AccountServiceImpl.componentType deleted file mode 100644 index b65fa1dc18..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/AccountServiceImpl.componentType +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <service name="AccountService"> - <interface.cpp header="AccountService.h"/> - </service> - - <reference name="accountDataService"> - <interface.cpp header="AccountDataService.h"/> - </reference> - - <reference name="stockQuoteService"> - <interface.cpp header="StockQuoteService.h"/> - </reference> - - <property name="currency" type="xs:string">USD</property> - -</componentType> -
\ No newline at end of file diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/AccountServiceImpl.cpp b/cpp/sca/samples/CppBigBank/bigbank.account/AccountServiceImpl.cpp deleted file mode 100644 index e9fcace81f..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/AccountServiceImpl.cpp +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "osoa/sca/sca.h" - -#include "AccountServiceImpl.h" -#include "StockQuoteService.h" -#include "AccountDataService.h" - -using namespace std; -using namespace commonj::sdo; -using namespace osoa::sca; -using namespace services::accountdata; -using namespace services::stockquote; - -/** - * AccountServiceImpl component implementation - */ -namespace services -{ - namespace account - { - - DataObjectPtr /*AccountReport**/ - AccountServiceImpl::getAccountReport(const string customerID) - { - ComponentContext theContext = ComponentContext::getCurrent(); - - commonj::sdo::DataFactoryPtr factory = theContext.getDataFactory(); - - commonj::sdo::DataObjectPtr newReport = - factory->create("http://www.bigbank.com/AccountService","AccountReport"); - - // Get the accountDataService service - AccountDataService *dataService = - (AccountDataService*)theContext.getService("accountDataService"); - - // would be better to return a list of accounts - this only - // gets the first of each. - - commonj::sdo::DataObjectPtr checking = - dataService->getCheckingAccount(customerID); - - if (checking != 0) - { - commonj::sdo::DataObjectList& dl = newReport->getList("checking"); - checking->setFloat("balance", - fromUSDollarToCurrency(checking->getFloat("balance"))); - dl.append(checking); - } - - commonj::sdo::DataObjectPtr savings = dataService->getSavingsAccount(customerID); - - if (savings != 0) - { - commonj::sdo::DataObjectList& dl = newReport->getList("savings"); - savings->setFloat("balance", - fromUSDollarToCurrency(savings->getFloat("balance"))); - dl.append(savings); - } - - // Get the stockQuoteService service - StockQuoteService* stockService = - (StockQuoteService*)theContext.getService("stockQuoteService"); - - commonj::sdo::DataObjectPtr stocks = dataService->getStockAccount(customerID); - - if (stocks != 0) - { - commonj::sdo::DataObjectList& dl = newReport->getList("stocks"); - - float value = 10.0f; - try { - value = stockService->getQuote( - stocks->getCString("symbol")); - } - catch (ServiceRuntimeException& e) - { - std::cout << "Fault from stock quote service" << e << std::endl; - } - stocks->setFloat("balance", - fromUSDollarToCurrency(stocks->getInt("quantity") * - value)); - dl.append(stocks); - } - - return newReport; - } - - float AccountServiceImpl::fromUSDollarToCurrency(float value) - { - // Get the "currency" property - ComponentContext myContext = ComponentContext::getCurrent(); - - commonj::sdo::DataObjectPtr properties = myContext.getProperties(); - if (properties) - { - const char* currency = properties->getCString("currency"); - if (currency != 0) - { - std::cout << "Currency is : " << currency << std::endl; - if (!strcmp(currency,"USD")) return value; - if (!strcmp(currency,"EURO")) return 0.8f * value; - } - } - return 0.0f; - } - - } // End account -} // End services diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/AccountServiceImpl.h b/cpp/sca/samples/CppBigBank/bigbank.account/AccountServiceImpl.h deleted file mode 100644 index 0c172823fb..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/AccountServiceImpl.h +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "AccountService.h" - - -namespace services -{ - namespace account - { - - /** - * AccountServiceImpl component implementation class - */ - class AccountServiceImpl: public AccountService - { - public: - - virtual commonj::sdo::DataObjectPtr /*AccountReport*/ - getAccountReport(const std::string customerID); - - private: - - float fromUSDollarToCurrency(float value); - - }; - - } // End account -} // End services - diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/Makefile.am b/cpp/sca/samples/CppBigBank/bigbank.account/Makefile.am deleted file mode 100644 index e9af461312..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/Makefile.am +++ /dev/null @@ -1,59 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/CppBigBank/deploy -compositedir=$(deploydir)/bigbank.account - -BUILT_SOURCES = scagen - -noinst_HEADERS = *.h - -composite_SCRIPTS = runwsserver.sh - -scagen: - java -jar $(TUSCANY_SCACPP)/bin/scagen.jar -dir . -output . - -composite_LTLIBRARIES = libAccount.la -composite_DATA = *.composite *.componentType *.wsdl *.xsd -EXTRA_DIST = *.composite *.componentType *.wsdl *.xsd runwsserver.sh - -dist_libAccount_la_SOURCES = \ -AccountDataServiceImpl.cpp \ -AccountServiceImpl.cpp \ -StockQuoteServiceImpl.cpp - -nodist_libAccount_la_SOURCES = \ -AccountDataServiceImpl_AccountDataService_Proxy.cpp \ -AccountDataServiceImpl_AccountDataService_Wrapper.cpp \ -AccountServiceImpl_accountDataService_Proxy.cpp \ -AccountServiceImpl_AccountService_Proxy.cpp \ -AccountServiceImpl_AccountService_Wrapper.cpp \ -AccountServiceImpl_stockQuoteService_Proxy.cpp \ -StockQuoteServiceImpl_StockQuoteService_Proxy.cpp \ -StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp \ -StockQuoteServiceImpl_webService_Proxy.cpp - -libAccount_la_LIBADD = \ --L${TUSCANY_SCACPP}/lib \ - -ltuscany_sca \ --L${TUSCANY_SCACPP}/extensions/cpp/lib \ - -ltuscany_sca_cpp - -INCLUDES = \ - -I$(TUSCANY_SCACPP)/extensions/cpp/include \ - -I$(TUSCANY_SCACPP)/include \ - -I${TUSCANY_SDOCPP}/include diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteService.h b/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteService.h deleted file mode 100644 index 379af5b425..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteService.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include <string> - -namespace services -{ - namespace stockquote - { - /** - * StockQuoteService business interface - */ - class StockQuoteService - { - public: - - virtual float getQuote(const std::string symbol) = 0; - - }; - - } // End stockquote -} // End services diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteServiceImpl.componentType b/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteServiceImpl.componentType deleted file mode 100644 index 6ac2b77255..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteServiceImpl.componentType +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - - <service name="StockQuoteService"> - <interface.cpp header="StockQuoteService.h"/> - </service> - - <reference name="webService"> - <interface.cpp header="StockQuoteWebService.h"/> - </reference> - -</componentType> -
\ No newline at end of file diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteServiceImpl.cpp b/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteServiceImpl.cpp deleted file mode 100644 index 8332730d73..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteServiceImpl.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "osoa/sca/sca.h" -#include "commonj/sdo/SDO.h" - -#include "StockQuoteServiceImpl.h" -#include "StockQuoteWebService.h" - -using namespace std; -using namespace osoa::sca; -using namespace commonj::sdo; - -/** - * StockQuoteServiceImpl component implementation - */ -namespace services { - namespace stockquote { - - // Map the format returned by the StockQuote Web service to - // the format expected in the BigBank application - float StockQuoteServiceImpl::getQuote(const string symbol) - { - ComponentContext myContext = ComponentContext::getCurrent(); - - // Get the StockQuote Web service - StockQuoteWebService* webService = - (StockQuoteWebService*)myContext.getService("webService"); - - // Invoke the service - const string result = webService->GetQuote(symbol); - - float stockPrice = 0.0f; - - // Get the stock price out of the document returned by the StockQuote - // Web service - try - { - XMLHelperPtr xmlHelper = HelperProvider::getXMLHelper(myContext.getDataFactory()); - XMLDocumentPtr stockDoc = xmlHelper->load(result); - if (stockDoc->getRootDataObject()) - { - stockPrice=stockDoc->getRootDataObject()->getFloat("Stock.0/Last"); - } - } - catch (SDORuntimeException& e) - { - std::cout << e << std::endl; - return 0.0f; - } - return stockPrice; - } - - } // End stockquote -} // End services diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteServiceImpl.h b/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteServiceImpl.h deleted file mode 100644 index 9b0ac69b0c..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteServiceImpl.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "StockQuoteService.h" - -namespace services -{ - namespace stockquote - { - - /** - * StockQuoteServiceImpl component implementation class - */ - class StockQuoteServiceImpl : public StockQuoteService - { - public: - - virtual float getQuote(const std::string symbol); - }; - - } // End stockquote -} // End services diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteTypes.xsd b/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteTypes.xsd deleted file mode 100644 index 5bce3a63dc..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteTypes.xsd +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<!-- - Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <xs:element name="StockQuotes" type="tStockQuotes"/> - <xs:complexType name="tStockQuotes"> - <xs:sequence> - <xs:element name="Stock" type="tStock" minOccurs="0" maxOccurs="unbounded"/> - <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - <xs:anyAttribute namespace="##any" processContents="lax"/> - </xs:complexType> - - <xs:complexType name="tStock"> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="1" name="Symbol" type="xs:string"/> - <xs:element minOccurs="0" maxOccurs="1" name="Last" type="xs:float"/> - <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - <xs:anyAttribute namespace="##any" processContents="lax"/> - </xs:complexType> -</xs:schema>
\ No newline at end of file diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteWebService.h b/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteWebService.h deleted file mode 100644 index 5c32ff8eaa..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteWebService.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include <string> - -namespace services -{ - namespace stockquote - { - - /** - * StockQuoteWebService business interface - * - * This is the interface of the Web service used to get - * live stock quotes. - */ - class StockQuoteWebService - { - public: - - virtual const std::string GetQuote(const std::string symbol) = 0; - - }; - - } // End stockquote -} // End services diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteWebService.wsdl b/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteWebService.wsdl deleted file mode 100644 index c14f97c87b..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/StockQuoteWebService.wsdl +++ /dev/null @@ -1,165 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:s="http://www.w3.org/2001/XMLSchema" - xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:tns="http://www.webserviceX.NET/" - xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" - xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" - targetNamespace="http://www.webserviceX.NET/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - <wsdl:types> - <s:schema elementFormDefault="qualified" - targetNamespace="http://www.webserviceX.NET/"> - <s:element name="GetQuote"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" - name="symbol" type="s:string" /> - </s:sequence> - </s:complexType> - - </s:element> - <s:element name="GetQuoteResponse"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" - name="GetQuoteResult" type="s:string" /> - </s:sequence> - </s:complexType> - </s:element> - <s:element name="string" nillable="true" type="s:string" /> - - </s:schema> - </wsdl:types> - <wsdl:message name="GetQuoteSoapIn"> - <wsdl:part name="parameters" element="tns:GetQuote" /> - </wsdl:message> - <wsdl:message name="GetQuoteSoapOut"> - <wsdl:part name="parameters" element="tns:GetQuoteResponse" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpGetIn"> - - <wsdl:part name="symbol" type="s:string" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpGetOut"> - <wsdl:part name="Body" element="tns:string" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpPostIn"> - <wsdl:part name="symbol" type="s:string" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpPostOut"> - - <wsdl:part name="Body" element="tns:string" /> - </wsdl:message> - <wsdl:portType name="StockQuoteSoap"> - <wsdl:operation name="GetQuote"> - <documentation xmlns="http://schemas.xmlsoap.org/wsdl/"> - Get Stock quote for a company Symbol - </documentation> - <wsdl:input message="tns:GetQuoteSoapIn" /> - <wsdl:output message="tns:GetQuoteSoapOut" /> - </wsdl:operation> - - </wsdl:portType> - <wsdl:portType name="StockQuoteHttpGet"> - <wsdl:operation name="GetQuote"> - <documentation xmlns="http://schemas.xmlsoap.org/wsdl/"> - Get Stock quote for a company Symbol - </documentation> - <wsdl:input message="tns:GetQuoteHttpGetIn" /> - <wsdl:output message="tns:GetQuoteHttpGetOut" /> - </wsdl:operation> - </wsdl:portType> - - <wsdl:portType name="StockQuoteHttpPost"> - <wsdl:operation name="GetQuote"> - <documentation xmlns="http://schemas.xmlsoap.org/wsdl/"> - Get Stock quote for a company Symbol - </documentation> - <wsdl:input message="tns:GetQuoteHttpPostIn" /> - <wsdl:output message="tns:GetQuoteHttpPostOut" /> - </wsdl:operation> - </wsdl:portType> - <wsdl:binding name="StockQuoteSoap" type="tns:StockQuoteSoap"> - - <soap:binding transport="http://schemas.xmlsoap.org/soap/http" - style="document" /> - <wsdl:operation name="GetQuote"> - <soap:operation - soapAction="http://www.webserviceX.NET/GetQuote" style="document" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - - </wsdl:operation> - </wsdl:binding> - <wsdl:binding name="StockQuoteHttpGet" - type="tns:StockQuoteHttpGet"> - <http:binding verb="GET" /> - <wsdl:operation name="GetQuote"> - <http:operation location="/GetQuote" /> - <wsdl:input> - <http:urlEncoded /> - </wsdl:input> - - <wsdl:output> - <mime:mimeXml part="Body" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:binding name="StockQuoteHttpPost" - type="tns:StockQuoteHttpPost"> - <http:binding verb="POST" /> - <wsdl:operation name="GetQuote"> - <http:operation location="/GetQuote" /> - - <wsdl:input> - <mime:content type="application/x-www-form-urlencoded" /> - </wsdl:input> - <wsdl:output> - <mime:mimeXml part="Body" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:service name="StockQuote"> - - <wsdl:port name="StockQuoteSoap" binding="tns:StockQuoteSoap"> - <soap:address - location="http://www.webservicex.net/stockquote.asmx" /> - </wsdl:port> - <wsdl:port name="StockQuoteHttpGet" - binding="tns:StockQuoteHttpGet"> - <http:address - location="http://www.webservicex.net/stockquote.asmx" /> - </wsdl:port> - <wsdl:port name="StockQuoteHttpPost" - binding="tns:StockQuoteHttpPost"> - <http:address - location="http://www.webservicex.net/stockquote.asmx" /> - </wsdl:port> - - </wsdl:service> -</wsdl:definitions>
\ No newline at end of file diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/bigbank.account.composite b/cpp/sca/samples/CppBigBank/bigbank.account/bigbank.account.composite deleted file mode 100644 index 7173d584d2..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/bigbank.account.composite +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="bigbank.account"> - - <service name="AccountService"> - <interface.wsdl interface="http://www.bigbank.com/AccountService#wsdl.interface(AccountService)"/> - <!-- The endpoint is optional --> - <!-- <binding.ws endpoint="http://www.bigbank.com/AccountService#wsdl.endpoint(AccountService/AccountServiceSOAP)"/> --> - <binding.ws/> - <reference>AccountServiceComponent</reference> - </service> - - <component name="AccountServiceComponent"> - <implementation.cpp library="Account" header="AccountServiceImpl.h"/> - <reference name="accountDataService">AccountDataServiceComponent</reference> - <reference name="stockQuoteService">StockQuoteServiceComponent</reference> - <property name="currency">EURO</property> - </component> - - <component name="AccountDataServiceComponent"> - <implementation.cpp library="Account" header="AccountDataServiceImpl.h"/> - </component> - - <component name="StockQuoteServiceComponent"> - <implementation.cpp library="Account" header="StockQuoteServiceImpl.h"/> - <reference name="webService">StockQuoteWebService</reference> - </component> - - <reference name="StockQuoteWebService"> - <interface.wsdl interface="http://www.webserviceX.NET/#wsdl.interface(StockQuoteSoap)"/> - <binding.ws endpoint="http://www.webserviceX.NET/#wsdl.endpoint(StockQuote/StockQuoteSoap)"/> - </reference> - -</composite> diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/runwsserver.bat b/cpp/sca/samples/CppBigBank/bigbank.account/runwsserver.bat deleted file mode 100644 index c08a8fc5d9..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/runwsserver.bat +++ /dev/null @@ -1,50 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo Using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo Using SDO installed at %TUSCANY_SDOCPP% - -if "%AXIS2C_HOME%" == "" ( -echo "AXIS2C_HOME not set" -goto end -) -echo Using Axis2C installed at %AXIS2C_HOME% - -rem Run the server -set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SCACPP%\extensions\cpp\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH% - -set APFULLDIR=%~d0%~p0 -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ - -cd %AXIS2C_HOME%\bin -.\axis2_http_server.exe - -:end -endlocal diff --git a/cpp/sca/samples/CppBigBank/bigbank.account/runwsserver.sh b/cpp/sca/samples/CppBigBank/bigbank.account/runwsserver.sh deleted file mode 100755 index 047e541360..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.account/runwsserver.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ - -cd $AXIS2C_HOME/bin -./axis2_http_server diff --git a/cpp/sca/samples/CppBigBank/bigbank.app.composite b/cpp/sca/samples/CppBigBank/bigbank.app.composite deleted file mode 100644 index 5d68e0ae1a..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.app.composite +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="bigbank.app"> - - <component name="bigbank.AccountManagementComponent"> - <implementation.composite name="bigbank.account"/> - </component> - -</composite> diff --git a/cpp/sca/samples/CppBigBank/bigbank.client/AccountClient.cpp b/cpp/sca/samples/CppBigBank/bigbank.client/AccountClient.cpp deleted file mode 100644 index 009c2d0c4d..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.client/AccountClient.cpp +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include <iostream> -#include <stdlib.h> - -#include "osoa/sca/sca.h" - -#include "AccountService.h" - -using namespace std; -using namespace commonj::sdo; -using namespace osoa::sca; -using namespace services::account; - -int main(int argc, char* argv[]) -{ - - if (argc != 2) - { - cout << "account_client: Argument must be the name of the account" << endl; - return 0; - } - try - { - - // Locate a service - CompositeContext myContext = CompositeContext::getCurrent(); - AccountService *accountService = - (AccountService*) myContext.locateService("AccountServiceComponent"); - if (accountService == 0) - { - cout << "account_client: Unable to find Account service" << endl; - } - else - { - try - { - // exercise the account service - - DataObjectPtr report = - accountService->getAccountReport(argv[1]); - - XMLHelperPtr xmlHelper = HelperProvider::getXMLHelper(myContext.getDataFactory()); - char* doc = xmlHelper->save(report, report->getType().getURI(), report->getType().getName()); - cout << "XML: " << doc <<endl; - - if (report != 0) - { - unsigned int i; - char balanceStr[20]; - float balance; - - cout << "My Account Report" << endl; - cout << "=================" << endl; - - DataObjectList& stocks = report->getList("stocks"); - - for (i=0;i< stocks.size() ;i++) - { - cout << "Stock Account " << stocks[i]->getCString("accountNumber") << endl; - cout << "Stock Symbol : " << stocks[i]->getCString("symbol") << endl; - cout << " Holding : " << stocks[i]->getCString("quantity") << endl; - balance = stocks[i]->getFloat("balance"); - sprintf(balanceStr,"%.2f",balance); - cout << " Value : " << balanceStr << endl << endl; - } - - DataObjectList& checking = report->getList("checking"); - - for (i=0;i< checking.size() ;i++) - { - cout << "Checking Account " << checking[i]->getCString("accountNumber") << endl; - balance = checking[i]->getFloat("balance"); - sprintf(balanceStr,"%.2f",balance); - cout << " Balance : " << balanceStr << endl << endl; - } - - DataObjectList& savings = report->getList("savings"); - - for (i=0;i< savings.size() ;i++) - { - cout << "Savings Account " << savings[i]->getCString("accountNumber") << endl; - balance = savings[i]->getFloat("balance"); - sprintf(balanceStr,"%.2f",balance); - cout << " Balance : " << balanceStr << endl << endl; - } - - cout << endl; - } - } - catch (SDORuntimeException& e) - { - cout << e << endl; - } - } - - } - catch (ServiceRuntimeException& ex) - { - cout << ex << endl; - } - return 0; -} - diff --git a/cpp/sca/samples/CppBigBank/bigbank.client/Makefile.am b/cpp/sca/samples/CppBigBank/bigbank.client/Makefile.am deleted file mode 100644 index cfc5e8a661..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.client/Makefile.am +++ /dev/null @@ -1,35 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/CppBigBank/deploy -clientdir=$(deploydir)/bigbank.client - -client_PROGRAMS = account_client -client_SCRIPTS = runclient.sh -EXTRA_DIST = runclient.sh - -account_client_SOURCES = AccountClient.cpp - -account_client_LDADD = -L${TUSCANY_SCACPP}/lib -ltuscany_sca \ - -L${TUSCANY_SCACPP}/extensions/cpp/lib -ltuscany_sca_cpp \ - -L${TUSCANY_SDOCPP}/lib -ltuscany_sdo - - -INCLUDES = -I$(TUSCANY_SCACPP)/extensions/cpp/include \ - -I${TUSCANY_SCACPP}/include \ - -I${TUSCANY_SDOCPP}/include \ - -I../bigbank.account diff --git a/cpp/sca/samples/CppBigBank/bigbank.client/runclient.bat b/cpp/sca/samples/CppBigBank/bigbank.client/runclient.bat deleted file mode 100644 index 069463ba2d..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.client/runclient.bat +++ /dev/null @@ -1,50 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo Using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo Using SDO installed at %TUSCANY_SDOCPP% - -if "%AXIS2C_HOME%" == "" ( -echo "AXIS2C_HOME not set" -goto end -) -echo Using Axis2C installed at %AXIS2C_HOME% - -rem Run the client -set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SCACPP%\extensions\cpp\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH% - -set APFULLDIR=%~d0%~p0 -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ -set TUSCANY_SCACPP_COMPONENT=bigbank.AccountManagementComponent - -.\AccountClient.exe 1234 - -:end -endlocal diff --git a/cpp/sca/samples/CppBigBank/bigbank.client/runclient.sh b/cpp/sca/samples/CppBigBank/bigbank.client/runclient.sh deleted file mode 100755 index 1cf924a008..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.client/runclient.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_COMPONENT=bigbank.AccountManagementComponent - -./AccountClient 1234 - diff --git a/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/AccountService.wsdl b/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/AccountService.wsdl deleted file mode 100644 index b83c453462..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/AccountService.wsdl +++ /dev/null @@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:tns="http://www.bigbank.com/AccountService" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.bigbank.com/AccountService" - name="AccountService"> - - <wsdl:types> - <xsd:schema - targetNamespace="http://www.bigbank.com/AccountService" - xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - - <xsd:element name="getAccountReport"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="customerID" - type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="getAccountReportResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="result" - type="tns:AccountReport" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:complexType name="AccountReport"> - <xsd:sequence> - <xsd:element name="checking" - type="tns:CheckingAccount" maxOccurs="unbounded" /> - <xsd:element name="savings" - type="tns:SavingsAccount" maxOccurs="unbounded" /> - <xsd:element name="stocks" type="tns:StockAccount" - maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="StockAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="symbol" type="xsd:string" /> - <xsd:element name="quantity" type="xsd:integer" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="CheckingAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="SavingsAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - </xsd:schema> - </wsdl:types> - - <wsdl:message name="getAccountReportRequest"> - <wsdl:part element="tns:getAccountReport" - name="getAccountReportRequest" /> - </wsdl:message> - - <wsdl:message name="getAccountReportResponse"> - <wsdl:part element="tns:getAccountReportResponse" - name="getAccountReportResponse" /> - </wsdl:message> - - <wsdl:portType name="AccountService"> - <wsdl:operation name="getAccountReport"> - <wsdl:input message="tns:getAccountReportRequest" /> - <wsdl:output message="tns:getAccountReportResponse" /> - </wsdl:operation> - </wsdl:portType> - - <wsdl:binding name="AccountServiceSOAP" type="tns:AccountService"> - <soap:binding style="document" - transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="getAccountReport"> - <soap:operation - soapAction="http://www.bigbank.com/AccountService/getAccountReport" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - - <wsdl:service name="AccountService"> - <wsdl:port binding="tns:AccountServiceSOAP" - name="AccountServiceSOAP"> - <soap:address - location="http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/AccountService" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> diff --git a/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/Makefile.am b/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/Makefile.am deleted file mode 100644 index bdc846e58c..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/CppBigBank/deploy -phpwsclientdir=$(deploydir)/bigbank.phpwsclient - -phpwsclient_DATA = *.php *.wsdl README -EXTRA_DIST = *.php *.wsdl README diff --git a/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/README b/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/README deleted file mode 100644 index d02873e860..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/README +++ /dev/null @@ -1,137 +0,0 @@ -Big Bank PHP Client -=================== - -Overview --------- - -This is a pair of very simple PHP scripts to demonstrate how the Accounts service -that the C++ Big Bank sample exposes can be used from within the PHP scripting -language. - -bigwelcome.php - A bootstrap script that shows a form and allows the user to press a button - in order to invoke the bigaccount.php script - -bigaccount.php - Makes a call to a locally installed BigBank Accounts service. The script - shows how to use PHP SDO and SOAP extensions to construct the call - and interpret the result. - -As this is a very simple test client once you have reached bigaccount.php you are done. -So there are no further buttons other than the browser back button. - -Installation ------------- - -This assumes that you have the BigBank sample runnig as a web service in your local -Axis2C container at http://localhost:9090/axis2/services/AccountService - -To run the php scripts requires some configuration and setup of a php runtime with -the SDO and SimpleXML extensions enabled. The bits you will need are: - -Apache web server - http://httpd.apache.org/ (I'm currently at 2.0.55) -PHP 5.1.6 - http://www.php.net/downloads.php (I'm currently at 5.1.6) -PHP SDO - http://pecl.php.net/package/sdo (I'm currently at 1.0.3) - -Windows -------- -If you are on windows you can get binary builds from http://www.php.net/downloads.php. -For SDO you need two dlls as followd - -php_sdo.dll http://pecl4win.php.net/ext.php/php_sdo.dll -php_sdo_das_xml.dll http://pecl4win.php.net/ext.php/php_sdo_das_xml.dll - -I copied these to my php5.1.6/ext dir ( php_soap.dll is already there) - -And added the following to my php.ini file (having already renamed php.ini-recommended to -php.ini of course) - -extension=php_soap.dll -extension=php_sdo.dll -extension=php_sdo_das_xml.dll - -I also changed the extension_dir directive to point to my extensions directory: - -extension_dir="C:/simon/apps/php5.1.6/ext" - -When I ask PHP to list what modules are active in my version of PHP I get the -following - -C:\simon\apps\php5.1.6>php -m -[PHP Modules] -bcmath -calendar -com_dotnet -ctype -date -dom -ftp -hash -iconv -libxml -odbc -pcre -Reflection -sdo -sdo_das_xml -session -SimpleXML -soap -SPL -standard -tokenizer -wddx -xml -xmlreader -xmlwriter -zlib - -[Zend Modules] - -Of particular relevance to these scripts note that soap, sdo and sd_das_xml are active. - -Other Platforms ---------------- - -If your on on another platform, such as Linux, then you will need to compile the -SDO extension. The documentation at the SDO extension page (http://livedocs.phpdoc.info/index.php?l=en&q=ref.sdo) -is currently a bit missleading and needs updating. What you need to do is do a -phpize build of the SDO PECL extension. This is discussed in the SDO documentation -but is also discussed in many other places, for example, http://www.php.net/manual/en/install.pecl.phpize.php. -Here is not the time to go into the details of how to build PHP extensions using -phpize but if you are familar with the process I use the following configure line -on windows. - -cscript configure.js --with-extra-includes=c:\simon\projects\tuscany\php\win32build\include; - c:\simon\apps\libxml2-2.6.23.win32\include; - c:\simon\apps\iconv-1.9.1.win32\include - --with-extra-libs=c:\simon\projects\tuscany\php\win32build\lib; - c:\simon\apps\libxml2-2.6.23.win32\lib; - c:\simon\apps\iconv-1.9.1.win32\lib - --enable-sdo=shared - --enable-soap - -There are no newlines in my command line by the way. I've just included them -here so you can see the command. - -Running -------- - -You need to configure Apache to run PHP of course. This is well documented but this -is what I put at the end of httpd.conf - -# PHP5 Support -LoadModule php5_module "C:/simon/apps/php5.1.6/php5apache2.dll" -AddType application/x-httpd-php .php - -# configure the path to php.ini -PHPIniDir "C:/simon/apps/php5.1.6" - -Having set up Apache all that remains is to - -- put the bigbank.phpwsclient directory in your web server's root documents directory -- start up the Axis2C runtime configured to run BigBank -- point your browser at http://myserver:port/bigbank.phpwsclient/bigwelcome.php - -You should now be able to press the "GetAccount" button and see the values -returned from the BigBank SCA application. diff --git a/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/bigaccount.php b/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/bigaccount.php deleted file mode 100644 index b9f77d3297..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/bigaccount.php +++ /dev/null @@ -1,113 +0,0 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -$Rev$ $Date: 2005/12/22 11:33:21 $ ---> -<head> - <title>BigBank Sample</title> -</head> - -<body BGCOLOR="#EFEFEF"> - -<script type="text/javascript"></script> - -<?php - try - { - // In case we want to see what's in the request - //print_r ($_POST); - - // get the entered account name - $accountname = $_POST['accountname']; - - try - { - // configure the SOAP client - $client = new SoapClient("AccountService.wsdl"); - - // make the call but its a wrapped call so we - // can't just do... - // $result = $client->getAccountReport($accountname); - // we have to construct an object hierarchy that matches the - // WSDL request. We can use SDO to do this for us - - // configure SDO based on the WSDL - $xmldas = SDO_DAS_XML::create("AccountService.wsdl"); - - // Get a document that represents the request - // and get the root element - $requestxdoc = $xmldas->createDocument("getAccountReport"); - $requestsdo = $requestxdoc->getRootDataObject(); - - // add the parameter - $requestsdo['customerID'] = $accountname; - - // make the call - $result = $client->getAccountReport($requestsdo); - - // now we have the result as a PHP object - // we can turn this into an SDO but we have to do it manually - // as the SOAP extension won't generate types for us - // automatically just yet - $responsexdoc = $xmldas->createDocument("getAccountReportResponse"); - $responsesdo = $responsexdoc->getRootDataObject(); - - // flesh out the object hierarchy - $account = $responsesdo->createDataObject ('result'); - $checking = $account->createDataObject ('checking'); - $saving = $account->createDataObject ('savings'); - $stocks = $account->createDataObject ('stocks'); - - //copy the data - $checking['accountNumber'] = $result->result->checking->accountNumber; - $checking['balance'] = $result->result->checking->balance; - //etc.. - // This is a bit rubbish as we would want this to happen automatically - - // Now just put the data on the screen - // To do this we don't need to use SDO as you can see but - // it would be really handy if we wanted to pass the XML doc - // onto another service or if we wanted to do some other - // more complex XML manipulation or XPath searches - echo "<h2>Account $accountname</h2>"; - echo "<h2>Checking Account</h2><table>"; - echo "<tr><td>Account Number</td><td> $checking->accountNumber </td></tr>"; - echo "<tr><td>Balance</td><td> $checking->balance </td></tr>"; - echo "</table><h2>Saving Account</h2><table>"; - echo "<tr><td>Account Number</td><td>" . $result->result->savings->accountNumber . "</td></tr>"; - echo "<tr><td>Balance</td><td>" . $result->result->savings->balance . "</td></tr>"; - echo "</table><h2>Stock Account</h2><table>"; - echo "<tr><td>Account Number</td><td>" . $result->result->stocks->accountNumber . "</td></tr>"; - echo "<tr><td>Symbol</td><td>" . $result->result->stocks->symbol . "</td></tr>"; - echo "<tr><td>Quantity</td><td>" . $result->result->stocks->quantity . "</td></tr>"; - echo "<tr><td>Banalce</td><td>" . $result->result->stocks->balance . "</td></tr>"; - echo "</table>"; - } - catch (SoapFault $f) - { - echo "Caught soap exception: \n"; - print_r ( $f ); - } - } - catch ( Exception $e ) - { - echo "Caught exception: \n"; - print_r ( $e ); - - } -?> diff --git a/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/bigwelcome.php b/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/bigwelcome.php deleted file mode 100644 index 32159ddc16..0000000000 --- a/cpp/sca/samples/CppBigBank/bigbank.phpwsclient/bigwelcome.php +++ /dev/null @@ -1,44 +0,0 @@ -<html> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - -$Rev$ $Date: 2005/12/22 11:33:21 $ ---> -<head> - <title>BigBank Sample</title> -</head> - -<body BGCOLOR="#EFEFEF"> - -<script type="text/javascript"></script> - -<?php -define('APP_ROOT', $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].'/bigbank.phpwsclient'); -?> - -<h1>Welcome To The BigBank Sample</h1> - - <form action="http://<?php echo APP_ROOT . '/bigaccount.php' ?>" method="POST"> - Please enter your account ID - <input type="text" name="accountname" size="30" value="ED" /> - <button type="submit">GetAccount</button> - </form> - - <div id="statusString"/> -</body> -</html> diff --git a/cpp/sca/samples/CppCalculator/Makefile.am b/cpp/sca/samples/CppCalculator/Makefile.am deleted file mode 100644 index d9d4b499b7..0000000000 --- a/cpp/sca/samples/CppCalculator/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/CppCalculator/deploy -SUBDIRS = sample.calculator sample.calculator.client -EXTRA_DIST = *.composite README.html -deploy_DATA = *.composite diff --git a/cpp/sca/samples/CppCalculator/README b/cpp/sca/samples/CppCalculator/README deleted file mode 100644 index b9dedd2da3..0000000000 --- a/cpp/sca/samples/CppCalculator/README +++ /dev/null @@ -1,4 +0,0 @@ -Tuscany SCA for C++ Samples - C++ Calculator Sample -=================================================== - -See the README.html file for instructions to build and run this sample diff --git a/cpp/sca/samples/CppCalculator/README.html b/cpp/sca/samples/CppCalculator/README.html deleted file mode 100644 index 264ba3d881..0000000000 --- a/cpp/sca/samples/CppCalculator/README.html +++ /dev/null @@ -1,176 +0,0 @@ - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../../doc/css/maven-base.css"); -@import url("../../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - C++ Calculator Sample</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany SCA Native Samples - C++ Calculator Sample</H1> - - <P>This is a very simple sample to show how an SCA composite can wire - together two C++ components to implement a Calculator service and invoke - the service via a local client. - </P> - <P>There are two sub projects in this workspace:</P> - <UL> - <LI>sample.calculator<BR/> - This contains the source code and SCDL artifacts for the SCA Calculator - composite implementing the sample Calculator. - </LI> - <LI>sample.calculator.client<BR/> - A sample client which does a local call to the Calculator service. - </LI> - </UL> - <P>Additionally, there is the sample.calculator.app.composite file. This - describes the configuration of the SCA Calculator composite deployed to the SCA - runtime. - </P> - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the C++ samples on Linux and Mac OS X</A></LI> - <LI><A HREF="#linuxrun">Running the C++ Calculator sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#winbld">Building the C++ Calculator sample on Windows</A></LI> - <LI><A HREF="#winrun">Running the C++ Calculator sample on Windows</A></LI> - <LI><A HREF="#help">Getting help</A></LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the C++ samples on Linux and Mac OS X</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the samples on Linux and Mac OS X</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>Build the C++ samples with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure --prefix=$TUSCANY_SCACPP/samples --enable-static=no</LI> - <LI>make</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide the --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/CppCalculator</LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the C++ Calculator sample on Linux and Mac OS X</H2></A> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/CppCalculator/deploy/sample.calculator.client</LI> - <LI>./runclient.sh</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winbld"><H2>Building the C++ Calculator sample on Windows</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>\samples - go directly to <A HREF="#winrun">Running the samples on Windows</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>You must have set up the environment for Microsoft Visual C++ tools. - The build command will call vcvars32 to set the environment. Ensure the - directory containing this is on your path. This will be where you - installed the compiler. - </LI> - <LI>Build the source, either via the Visual Studio Express projects under - <tuscany_sca_install_dir>\samples\CppCalculator\VSExpress\CppCalculator.sln or via the command-line build file - found at <tuscany_sca_install_dir>\samples\CppCalculator\VSExpress\CppCalculator\build.bat - which will build and deploy the samples. - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winrun"><H2>Running the C++ Calculator sample on Windows</H2></A> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\CppCalculator\deploy\sample.calculator.client</LI> - <LI>runclient.bat</LI> - </UL> - </LI> - </DIV> - - - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> - diff --git a/cpp/sca/samples/CppCalculator/sample.calculator.app.composite b/cpp/sca/samples/CppCalculator/sample.calculator.app.composite deleted file mode 100644 index 5753b3c593..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator.app.composite +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.calculator.app"> - - <component name="sample.calculator.CalculatorComponent"> - <implementation.composite name="sample.calculator" /> - </component> - -</composite> - diff --git a/cpp/sca/samples/CppCalculator/sample.calculator.client/CalculatorClient.cpp b/cpp/sca/samples/CppCalculator/sample.calculator.client/CalculatorClient.cpp deleted file mode 100644 index 37e9d40f66..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator.client/CalculatorClient.cpp +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#include <iostream> -#include <stdlib.h> - -#include "osoa/sca/sca.h" - -#include "Calculator.h" - -using namespace std; -using namespace osoa::sca; - - -void usage(); -bool IsNumber(const char *p); - -int main(int argc, char* argv[]) -{ - const char *operation; - float arg1 = 0; - float arg2 = 0; - - if (argc == 4) - { - operation = argv[1]; - - if (!IsNumber(argv[2])) - { - cout << "calculator_client: Argument 1 is not a number" << endl; - usage(); - } - else - { - arg1 = atof(argv[2]); - } - - if (!IsNumber(argv[3])) - { - cout << "calculator_client: Argument 2 is not a number" << endl; - usage(); - } - else - { - arg2 = atof(argv[3]); - } - } - else - { - usage(); - } - - try - { - // Locate a service - CompositeContext myContext = CompositeContext::getCurrent(); - Calculator *calcService = (Calculator*) myContext.locateService("CalculatorComponent/CalculatorService"); - if (calcService == 0) - { - cout << "calculator_client: Unable to find Calculator service" << endl; - } - else - { - float result = 0; - if (strcmp(operation, "add") == 0) - { - result = calcService->add(arg1, arg2); - cout << "calculator_client: add(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - if (strcmp(operation, "sub") == 0) - { - result = calcService->sub(arg1, arg2); - cout << "calculator_client: sub(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - if (strcmp(operation, "mul") == 0) - { - result = calcService->mul(arg1, arg2); - cout << "calculator_client: mul(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - if (strcmp(operation, "div") == 0) - { - result = calcService->div(arg1, arg2); - cout << "calculator_client: div(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - { - cout << "calculator_client: Unrecognized operation: " << operation << endl; - } - } - } - catch (ServiceRuntimeException& ex) - { - cout << "calculator_client: exception caught: " << ex << endl; - } - return 0; -} - -void usage() -{ - cout << "Usage: calculator_client add|sub|mul|div arg1 arg2" << endl; - exit(1); -} - -bool IsNumber (const char *p) -{ - int len = strlen(p); - int pointcount = 0; - - if (!isdigit (p[0]) && p[0] != '-' && p[0] != '+') - { - return false; - } - for (int i = 1; i < len; i++) - { - if (!isdigit (p[i])) - { - if (p[i] == '.') - { - if (pointcount > 0) return false; - pointcount++; - } - else - { - return false; - } - } - } - return true; -} diff --git a/cpp/sca/samples/CppCalculator/sample.calculator.client/Makefile.am b/cpp/sca/samples/CppCalculator/sample.calculator.client/Makefile.am deleted file mode 100644 index 9782bf5041..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator.client/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/CppCalculator/deploy -clientdir=$(deploydir)/sample.calculator.client - -client_PROGRAMS = calculator_client -client_SCRIPTS = runclient.sh -EXTRA_DIST = runclient.sh - -calculator_client_SOURCES = \ -CalculatorClient.cpp - -calculator_client_LDADD = \ --L${TUSCANY_SCACPP}/lib \ - -ltuscany_sca \ --L${TUSCANY_SCACPP}/extensions/cpp/lib \ - -ltuscany_sca_cpp \ --L${TUSCANY_SDOCPP}/lib \ - -ltuscany_sdo - -INCLUDES = \ --I$(TUSCANY_SCACPP)/extensions/cpp/include \ --I${TUSCANY_SCACPP}/include \ --I${TUSCANY_SDOCPP}/include \ --I../sample.calculator diff --git a/cpp/sca/samples/CppCalculator/sample.calculator.client/runclient.bat b/cpp/sca/samples/CppCalculator/sample.calculator.client/runclient.bat deleted file mode 100644 index 795325ab52..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator.client/runclient.bat +++ /dev/null @@ -1,42 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo using SDO installed at %TUSCANY_SDOCPP% - -set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SCACPP%\extensions\cpp\bin;%TUSCANY_SDOCPP%\bin;%PATH% - -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ -set TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorComponent - -.\calculator_client.exe div 5 2 - -:end -endlocal diff --git a/cpp/sca/samples/CppCalculator/sample.calculator.client/runclient.sh b/cpp/sca/samples/CppCalculator/sample.calculator.client/runclient.sh deleted file mode 100755 index feae29d557..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator.client/runclient.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorComponent - -./calculator_client div 5 2 diff --git a/cpp/sca/samples/CppCalculator/sample.calculator/Calculator.h b/cpp/sca/samples/CppCalculator/sample.calculator/Calculator.h deleted file mode 100644 index 90e97b5319..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator/Calculator.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#ifndef sample_calculator_h -#define sample_calculator_h - -class Calculator -{ -public: - virtual float add(float arg1, float arg2) = 0; - virtual float sub(float arg1, float arg2) = 0; - virtual float mul(float arg1, float arg2) = 0; - virtual float div(float arg1, float arg2) = 0; -}; - -#endif // sample_calculator_h diff --git a/cpp/sca/samples/CppCalculator/sample.calculator/CalculatorImpl.componentType b/cpp/sca/samples/CppCalculator/sample.calculator/CalculatorImpl.componentType deleted file mode 100644 index 72fe9842e8..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator/CalculatorImpl.componentType +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - - <service name="CalculatorService"> - <interface.cpp header="Calculator.h"/> - </service> - - <reference name="divideService"> - <interface.cpp header="Divide.h"/> - </reference> - -</componentType>
\ No newline at end of file diff --git a/cpp/sca/samples/CppCalculator/sample.calculator/CalculatorImpl.cpp b/cpp/sca/samples/CppCalculator/sample.calculator/CalculatorImpl.cpp deleted file mode 100644 index 01dac77c92..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator/CalculatorImpl.cpp +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#include <stdio.h> - -#include "osoa/sca/ComponentContext.h" -#include "osoa/sca/ServiceRuntimeException.h" - -#include "CalculatorImpl.h" -#include "Divide.h" - -CalculatorImpl::CalculatorImpl() -{ -} - -CalculatorImpl::~CalculatorImpl() -{ -} - -// Calculator interface -float CalculatorImpl::add(float arg1, float arg2) -{ - float result = arg1 + arg2; - - printf("CalculatorImpl::add %f + %f = %f\n", arg1, arg2, result); - return result; -} - -float CalculatorImpl::sub(float arg1, float arg2) -{ - float result = arg1 - arg2; - printf("CalculatorImpl::sub %f - %f = %f\n", arg1, arg2, result); - return result; -} - -float CalculatorImpl::mul(float arg1, float arg2) -{ - float result = arg1 * arg2; - printf("CalculatorImpl::mul %f * %f = %f\n", arg1, arg2, result); - return result; -} - -float CalculatorImpl::div(float arg1, float arg2) -{ - float result = 0; - - // This method shows how to invoke a service on a different component from within a component - - // First, get the current ComponentContext - osoa::sca::ComponentContext myContext = osoa::sca::ComponentContext::getCurrent(); - - try - { - // Find the required service, as referenced in CalculatorImpl.componentType - Divide* divideService = (Divide*)myContext.getService("divideService"); - - // Finally, invoke the service - result = divideService->divide(arg1, arg2); - - printf("CalculatorImpl::div Divide returned result: %f\n", result); - - } - catch (osoa::sca::ServiceRuntimeException& e) - { - // Print out error message and carry on - printf("CalculatorImpl::div Error whilst invoking Divide: %s", e.getMessageText()); - } - - return result; -} - - diff --git a/cpp/sca/samples/CppCalculator/sample.calculator/CalculatorImpl.h b/cpp/sca/samples/CppCalculator/sample.calculator/CalculatorImpl.h deleted file mode 100644 index af8a5eeab1..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator/CalculatorImpl.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#ifndef sample_calculatorimpl_h -#define sample_calculatorimpl_h - -#include "Calculator.h" - -class CalculatorImpl : public Calculator -{ -public: - CalculatorImpl(); - virtual ~CalculatorImpl(); - - // Calculator interface - virtual float add(float arg1, float arg2); - virtual float sub(float arg1, float arg2); - virtual float mul(float arg1, float arg2); - virtual float div(float arg1, float arg2); -}; - -#endif // sample_calculatorimpl_h - diff --git a/cpp/sca/samples/CppCalculator/sample.calculator/Divide.h b/cpp/sca/samples/CppCalculator/sample.calculator/Divide.h deleted file mode 100644 index 6e171ed733..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator/Divide.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - - -#ifndef sample_divide_h -#define sample_divide_h - -class Divide -{ -public: - virtual float divide(float arg1, float arg2) = 0; -}; - -#endif // sample_divide_h - - diff --git a/cpp/sca/samples/CppCalculator/sample.calculator/DivideImpl.componentType b/cpp/sca/samples/CppCalculator/sample.calculator/DivideImpl.componentType deleted file mode 100644 index d7369e3ff0..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator/DivideImpl.componentType +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - - <service name="DivideService"> - <interface.cpp header="Divide.h"/> - </service> - -</componentType> diff --git a/cpp/sca/samples/CppCalculator/sample.calculator/DivideImpl.cpp b/cpp/sca/samples/CppCalculator/sample.calculator/DivideImpl.cpp deleted file mode 100644 index f1a927cf4c..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator/DivideImpl.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#include <stdio.h> - -#include "DivideImpl.h" - -DivideImpl::DivideImpl() -{ -} - -DivideImpl::~DivideImpl() -{ -} - -// Divide interface -float DivideImpl::divide(float arg1, float arg2) -{ - if(arg2 == 0.0) - { - printf("DivideImpl::div %f / %f !! Cannot divide by zero, so returning 0\n", arg1, arg2); - return 0; - } - - float result = arg1 / arg2; - printf("DivideImpl::div %f / %f = %f\n", arg1, arg2, result); - return result; -} - - diff --git a/cpp/sca/samples/CppCalculator/sample.calculator/DivideImpl.h b/cpp/sca/samples/CppCalculator/sample.calculator/DivideImpl.h deleted file mode 100644 index 64045f1899..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator/DivideImpl.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - - -#ifndef sample_divideimpl_h -#define sample_divideimpl_h - -#include "Divide.h" - -class DivideImpl : public Divide -{ -public: - DivideImpl(); - virtual ~DivideImpl(); - - // Divide interface - virtual float divide(float arg1, float arg2); -}; - -#endif // sample_divideimpl_h - diff --git a/cpp/sca/samples/CppCalculator/sample.calculator/Makefile.am b/cpp/sca/samples/CppCalculator/sample.calculator/Makefile.am deleted file mode 100644 index de6dad787d..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator/Makefile.am +++ /dev/null @@ -1,53 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/CppCalculator/deploy -compositedir=$(deploydir)/sample.calculator - -BUILT_SOURCES = scagen - -noinst_HEADERS = *.h - -scagen: - java -jar $(TUSCANY_SCACPP)/bin/scagen.jar -dir . -output . - -composite_LTLIBRARIES = libCalculator.la -composite_DATA = *.composite *.componentType -EXTRA_DIST = *.composite *.componentType - -dist_libCalculator_la_SOURCES = \ -CalculatorImpl.cpp \ -DivideImpl.cpp - -nodist_libCalculator_la_SOURCES = \ -CalculatorImpl_CalculatorService_Proxy.cpp \ -CalculatorImpl_CalculatorService_Wrapper.cpp \ -CalculatorImpl_divideService_Proxy.cpp \ -DivideImpl_DivideService_Proxy.cpp \ -DivideImpl_DivideService_Wrapper.cpp - -libCalculator_la_LIBADD = \ --L${TUSCANY_SCACPP}/lib \ - -ltuscany_sca \ --L${TUSCANY_SCACPP}/extensions/cpp/lib \ - -ltuscany_sca_cpp - -INCLUDES = \ --I$(TUSCANY_SCACPP)/extensions/cpp/include \ --I$(TUSCANY_SCACPP)/include \ --I${TUSCANY_SDOCPP}/include - diff --git a/cpp/sca/samples/CppCalculator/sample.calculator/sample.calculator.composite b/cpp/sca/samples/CppCalculator/sample.calculator/sample.calculator.composite deleted file mode 100644 index 6903cf21d8..0000000000 --- a/cpp/sca/samples/CppCalculator/sample.calculator/sample.calculator.composite +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.calculator"> - - <component name="CalculatorComponent"> - <implementation.cpp library="Calculator" header="CalculatorImpl.h"/> - <reference name="divideService">DivideComponent/DivideService</reference> - </component> - - <component name="DivideComponent"> - <implementation.cpp library="Calculator" header="DivideImpl.h"/> - </component> - -</composite>
\ No newline at end of file diff --git a/cpp/sca/samples/GettingStarted.html b/cpp/sca/samples/GettingStarted.html deleted file mode 100644 index dcb2cfd19c..0000000000 --- a/cpp/sca/samples/GettingStarted.html +++ /dev/null @@ -1,513 +0,0 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../doc/css/maven-base.css"); -@import url("../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - Getting Started</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany Samples - Getting Started - SCA Native Milestone release 3</H1> - - <P>Tuscany SCA Native includes a set of simple technology samples that demonstrates some of the functionality of - the Tuscany SCA Native runtime. This page describes the samples and links to the documents that describe how to - build and run them - </P> - </DIV> - - <DIV CLASS="section"> - <A NAME="samples"><H2>Samples</H2></A> - <TABLE CLASS="bodyTable"> - <TBODY> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="CppCalculator/README.html">CppCalculator</A></TD> - <TD>A very simple sample to show how an SCA composite can wire - together two C++ components to implement a Calculator service - </TD> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="PythonCalculator/README.html">PythonCalculator</A></TD> - <TD>A very simple sample to show how an SCA composite can wire - together two Python components to implement a Calculator service - </TD> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RubyCalculator/README.html">RubyCalculator</A></TD> - <TD>A very simple sample to show how an SCA composite can wire - together two Ruby components to implement a Calculator service - </TD> - </TR> -<!-- <TR CLASS="a"> --> -<!-- <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="PHPCalculator/README.html">PHPCalculator</A></TD> --> -<!-- <TD>This is a simple sample to show how an SCA composite can wire together --> -<!-- a number of components to implement a Calculator service and expose that service as --> -<!-- to a number of different tpyes of client. The sample components are implemented in various --> -<!-- ways to demonstrate the different features of the PHP SCA extension. --> -<!-- </TD> --> -<!-- </TR> --> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RestCalculator/README.html">RESTCalculator</A></TD> - <TD>This sample is based on RubyCalculator but exposes the Calculator service as a REST Service - running under the Apache HTTPD server</TD> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="CppBigBank/README.html">CppBigBank</A></TD> - <TD>A more complex sample that implements the "Simplified BigBank" scenario. A whitepaper describing - the scenario based on the SCA 0.9 Assembly specification can be found - <A HREF="http://www.osoa.org/display/Main/SCA+-+Previously+Published+Specifications">here</A>. - This sample uses multiple C++ components, calls out to an external Web Service via a reference, - exposes the service as a Web Service and also provides a PHP based client. - </TD> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RubyBigBank/README.html">RubyBigBank</A></TD> - <TD>A more complex sample that implements the "Simplified BigBank" scenario. This sample uses multiple - Ruby components, calls out to an external Web Service via a reference and exposes the service as a - Web Service. - </TD> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="HTTPDBigBank/README.html">HTTPDBigBank</A></TD> - <TD>A more complex sample that implements the "Simplified BigBank" scenario. This sample contains the same - SCA components and calls as RubyBigBank, but demonstrates running the sample under the Apache HTTPD server - </TD> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="PythonWeatherForecast/README.html">PythonWeatherForecast</A></TD> - <TD>This sample makes calls to an external Web Service via a reference, demonstrating how Python - ElementTree objects are used in Tuscany to access the XML data returned from the service.</TD> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RestCustomer/README.html">RestCustomer</A></TD> - <TD>This sample demonstrates a Python component exposed as a REST Service either with or without the REST - interface (which specifies whether the service uses CRUD operations that translate to HTTP POST, GET, PUT - and DELETE or uses HTTP GET and XML over HTTP POST to invoke named operations) running under the Apache - HTTPD server</TD> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RestYahoo/README.html">RestYahoo</A></TD> - <TD>This sample demonstrates a Python component that is wired to make REST calls out to the external - Yahoo! Web Search service. This sample uses a Ruby local client to invoke the Python component.</TD> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="AlertAggregator/README.html">AlertAggregator</A></TD> - <TD>A more complex sample that shows how a Web 2.0-style application can be built using SCA. The Alert - Aggregator Sample aggregates various data sources and presents a unified view of data from these sources, - served as XML and displayed via a web page</TD> - </TR> - </TBODY> - </TABLE> - <BR> - </DIV> - <DIV CLASS="section"> - <A NAME="samples"><H2>Sample Dependencies</H2></A> - <P>The Tuscany samples each demonstrate different aspects of functionality provided by Tuscany, often in - particular extensions. The table below documents the extension dependencies that each sample has. - Please see the extension documentation for more details on the dependencies that particular extensions have. - </P> - <TABLE CLASS="bodyTable"> - <THEAD> - <TR STYLE="vertical-align: top;"> - <TD></TD> - <TD><A HREF="../doc/CppExtension.html">C++ Extension</A></TD> - <TD><A HREF="../doc/PythonExtension.html">Python Extension</A></TD> - <TD><A HREF="../doc/RubyExtension.html">Ruby Extension</A></TD> - <!--TD><A HREF="../doc/PHPExtension.html">PHP Extension</A></TD> --> - <TD><A HREF="../doc/Axis2CWSExtension.html#service">Axis2C Web Service Service Extension</A></TD> - <TD><A HREF="../doc/Axis2CWSExtension.html#reference">Axis2C Web Service Reference Extension</A></TD> - <TD><A HREF="../doc/RESTExtension.html#service">REST Service Extension</A></TD> - <TD><A HREF="../doc/RESTExtension.html#reference">REST Reference Extension</A></TD> - <TD><A HREF="../doc/RESTExtension.html#interface">REST Interface Extension</A></TD> - <TD><A HREF="../doc/SCAExtension.html#service">SCA Service Extension</A></TD> - <TD><A HREF="../doc/SCAExtension.html#reference">SCA Reference Extension</A></TD> - </TR> - </THEAD> - <TBODY> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="CppCalculator/README.html">CppCalculator</A></TD> - <TD>Yes</TD> <!-- C++ --> - <TD></TD> <!-- Python --> - <TD></TD> <!-- Ruby --> - <TD></TD> <!-- WS Service --> - <TD></TD> <!-- WS Reference --> - <TD></TD> <!-- REST Service --> - <TD></TD> <!-- REST Reference --> - <TD></TD> <!-- REST Interface --> - <TD></TD> <!-- SCA Service --> - <TD></TD> <!-- SCA Reference --> - </TR> - <TR CLASS="b"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="PythonCalculator/README.html">PythonCalculator</A></TD> - <TD></TD> <!-- C++ --> - <TD>Yes</TD> <!-- Python --> - <TD></TD> <!-- Ruby --> - <TD></TD> <!-- WS Service --> - <TD></TD> <!-- WS Reference --> - <TD></TD> <!-- REST Service --> - <TD></TD> <!-- REST Reference --> - <TD></TD> <!-- REST Interface --> - <TD></TD> <!-- SCA Service --> - <TD></TD> <!-- SCA Reference --> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RubyCalculator/README.html">RubyCalculator</A></TD> - <TD></TD> <!-- C++ --> - <TD></TD> <!-- Python --> - <TD>Yes</TD> <!-- Ruby --> - <TD></TD> <!-- WS Service --> - <TD></TD> <!-- WS Reference --> - <TD></TD> <!-- REST Service --> - <TD></TD> <!-- REST Reference --> - <TD></TD> <!-- REST Interface --> - <TD></TD> <!-- SCA Service --> - <TD></TD> <!-- SCA Reference --> - </TR> -<!-- <TR CLASS="b"> --> -<!-- <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="PHPCalculator/README.html">PHPCalculator</A></TD> --> -<!-- <TD></TD> <!-- C++ - -> --> -<!-- <TD></TD> <!-- Python - -> --> -<!-- <TD></TD> <!-- Ruby - -> --> -<!-- <TD>Yes</TD> <!-- PHP - -> --> -<!-- <TD>?</TD> <!-- WS Service - -> --> -<!-- <TD>?</TD> <!-- WS Reference - -> --> -<!-- <TD></TD> <!-- REST Service - -> --> -<!-- <TD></TD> <!-- REST Reference - -> --> -<!-- <TD></TD> <!-- REST Interface - -> --> -<!-- <TD></TD> <!-- SCA Service - -> --> -<!-- <TD></TD> <!-- SCA Reference - -> --> -<!-- </TR> --> - <TR CLASS="b"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RestCalculator/README.html">RESTCalculator</A></TD> - <TD></TD> <!-- C++ --> - <TD></TD> <!-- Python --> - <TD>Yes</TD> <!-- Ruby --> - <TD></TD> <!-- WS Service --> - <TD></TD> <!-- WS Reference --> - <TD>Yes</TD> <!-- REST Service --> - <TD>Yes</TD> <!-- REST Reference --> - <TD></TD> <!-- REST Interface --> - <TD></TD> <!-- SCA Service --> - <TD></TD> <!-- SCA Reference --> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="CppBigBank/README.html">CppBigBank</A></TD> - <TD>Yes</TD> <!-- C++ --> - <TD></TD> <!-- Python --> - <TD></TD> <!-- Ruby --> - <TD>Yes</TD> <!-- WS Service --> - <TD>Yes</TD> <!-- WS Reference --> - <TD></TD> <!-- REST Service --> - <TD></TD> <!-- REST Reference --> - <TD></TD> <!-- REST Interface --> - <TD></TD> <!-- SCA Service --> - <TD></TD> <!-- SCA Reference --> - </TR> - <TR CLASS="b"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RubyBigBank/README.html">RubyBigBank</A></TD> - <TD></TD> <!-- C++ --> - <TD></TD> <!-- Python --> - <TD>Yes</TD> <!-- Ruby --> - <TD>Yes</TD> <!-- WS Service --> - <TD>Yes</TD> <!-- WS Reference --> - <TD></TD> <!-- REST Service --> - <TD></TD> <!-- REST Reference --> - <TD></TD> <!-- REST Interface --> - <TD></TD> <!-- SCA Service --> - <TD></TD> <!-- SCA Reference --> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="HTTPDBigBank/README.html">HTTPDBigBank</A></TD> - <TD></TD> <!-- C++ --> - <TD></TD> <!-- Python --> - <TD>Yes</TD> <!-- Ruby --> - <TD>Yes</TD> <!-- WS Service --> - <TD>Yes</TD> <!-- WS Reference --> - <TD></TD> <!-- REST Service --> - <TD></TD> <!-- REST Reference --> - <TD></TD> <!-- REST Interface --> - <TD>Yes</TD> <!-- SCA Service --> - <TD>Yes</TD> <!-- SCA Reference --> - </TR> - <TR CLASS="b"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="PythonWeatherForecast/README.html">PythonWeatherForecast</A></TD> - <TD></TD> <!-- C++ --> - <TD>Yes</TD> <!-- Python --> - <TD></TD> <!-- Ruby --> - <TD></TD> <!-- WS Service --> - <TD>Yes</TD> <!-- WS Reference --> - <TD></TD> <!-- REST Service --> - <TD></TD> <!-- REST Reference --> - <TD></TD> <!-- REST Interface --> - <TD></TD> <!-- SCA Service --> - <TD></TD> <!-- SCA Reference --> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RestCustomer/README.html">RestCustomer</A></TD> - <TD></TD> <!-- C++ --> - <TD>Yes</TD> <!-- Python --> - <TD></TD> <!-- Ruby --> - <TD></TD> <!-- WS Service --> - <TD></TD> <!-- WS Reference --> - <TD>Yes</TD> <!-- REST Service --> - <TD>Yes</TD> <!-- REST Reference --> - <TD>Yes</TD> <!-- REST Interface --> - <TD></TD> <!-- SCA Service --> - <TD></TD> <!-- SCA Reference --> - </TR> - <TR CLASS="b"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RestYahoo/README.html">RestYahoo</A></TD> - <TD></TD> <!-- C++ --> - <TD>Yes</TD> <!-- Python --> - <TD>Yes</TD> <!-- Ruby --> - <TD></TD> <!-- WS Service --> - <TD></TD> <!-- WS Reference --> - <TD></TD> <!-- REST Service --> - <TD>Yes</TD> <!-- REST Reference --> - <TD></TD> <!-- REST Interface --> - <TD></TD> <!-- SCA Service --> - <TD></TD> <!-- SCA Reference --> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="AlertAggregator/README.html">AlertAggregator</A></TD> - <TD></TD> <!-- C++ --> - <TD>Yes</TD> <!-- Python --> - <TD></TD> <!-- Ruby --> - <TD></TD> <!-- WS Service --> - <TD></TD> <!-- WS Reference --> - <TD>Yes</TD> <!-- REST Service --> - <TD>Yes</TD> <!-- REST Reference --> - <TD></TD> <!-- REST Interface --> - <TD></TD> <!-- SCA Service --> - <TD></TD> <!-- SCA Reference --> - </TR> - </TBODY> - </TABLE> - <BR/> - <P>The table below documents the libraries or environments necessary to build and/or run each sample. These are generally - required by the Tuscany extensions that the sample employs. - Please see the extension documentation for more details (such as the version required) about the dependencies that particular - extensions require. - </P> - <TABLE CLASS="bodyTable"> - <THEAD> - <TR STYLE="vertical-align: top;"> - <TD></TD> - <TD><A HREF="http://java.sun.com/javase/downloads/index.jsp">Java runtime</A></TD> - <TD><A HREF="http://www.python.org/">Python runtime</A></TD> - <TD><A HREF="http://www.ruby-lang.org/">Ruby runtime</A></TD> -<!-- <TD><A HREF="http://www.php.net/">PHP runtime</A></TD> --> -<!-- <TD><A HREF="http://pecl.php.net/package/SCA_SDO/">PHP SCA_SDO package</A></TD> --> - <TD><A HREF="http://ws.apache.org/axis2/c/">Axis2/C library</A></TD> - <TD><A HREF="http://ws.apache.org/axis2/c/">Axis2/C HTTP server</A></TD> - <TD><A HREF="http://curl.haxx.se/">libcurl library</A></TD> - <TD><A HREF="http://httpd.apache.org/">HTTPD server</A></TD> - <TD><A HREF="http://feedparser.org/">Universal Feed Parser library</A></TD> - </TR> - </THEAD> - <TBODY> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="CppCalculator/README.html">CppCalculator</A></TD> - <TD>Build</TD> <!-- Java runtime --> - <TD></TD> <!--Python runtime --> - <TD></TD> <!--Ruby runtime --> - <TD></TD> <!--Axis2/C library --> - <TD></TD> <!--Axis2/C server --> - <TD></TD> <!--libcurl library --> - <TD></TD> <!--HTTPD server --> - <TD></TD> <!--Universal Feed Parser --> - </TR> - <TR CLASS="b"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="PythonCalculator/README.html">PythonCalculator</A></TD> - <TD></TD> <!-- Java runtime --> - <TD>Run</TD> <!--Python runtime --> - <TD></TD> <!--Ruby runtime --> - <TD></TD> <!--Axis2/C library --> - <TD></TD> <!--Axis2/C server --> - <TD></TD> <!--libcurl library --> - <TD></TD> <!--HTTPD server --> - <TD></TD> <!--Universal Feed Parser --> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RubyCalculator/README.html">RubyCalculator</A></TD> - <TD></TD> <!-- Java runtime --> - <TD></TD> <!--Python runtime --> - <TD>Run</TD> <!--Ruby runtime --> - <TD></TD> <!--Axis2/C library --> - <TD></TD> <!--Axis2/C server --> - <TD></TD> <!--libcurl library --> - <TD></TD> <!--HTTPD server --> - <TD></TD> <!--Universal Feed Parser --> - </TR> -<!-- <TR CLASS="b"> --> -<!-- <!-- TODO - check/fix/remove this - -> --> -<!-- <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="PHPCalculator/README.html">PHPCalculator</A></TD> --> -<!-- <TD></TD> <!-- Java runtime - -> --> -<!-- <TD></TD> <!--Python runtime - -> --> -<!-- <TD></TD> <!--Ruby runtime - -> --> -<!-- <TD>Run</TD> <!--PHP runtime - -> --> -<!-- <TD>Run</TD> <!--PHP SCA_SDO package - -> --> -<!-- <TD>?</TD> <!--Axis2/C library - -> --> -<!-- <TD>?</TD> <!--Axis2/C server - -> --> -<!-- <TD></TD> <!--libcurl library - -> --> -<!-- <TD>?</TD> <!--HTTPD server - -> --> -<!-- <TD></TD> <!--Universal Feed Parser - -> --> -<!-- </TR> --> - <TR CLASS="b"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RestCalculator/README.html">RESTCalculator</A></TD> - <TD></TD> <!-- Java runtime --> - <TD></TD> <!--Python runtime --> - <TD>Run</TD> <!--Ruby runtime --> - <TD></TD> <!--Axis2/C library --> - <TD></TD> <!--Axis2/C server --> - <TD>Run</TD> <!--libcurl library --> - <TD>Run</TD> <!--HTTPD server --> - <TD></TD> <!--Universal Feed Parser --> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="CppBigBank/README.html">CppBigBank</A></TD> - <TD>Build</TD> <!-- Java runtime --> - <TD></TD> <!--Python runtime --> - <TD></TD> <!--Ruby runtime --> - <TD>Run</TD> <!--Axis2/C library --> - <TD></TD> <!--Axis2/C server --> - <TD></TD> <!--libcurl library --> - <TD></TD> <!--HTTPD server --> - <TD></TD> <!--Universal Feed Parser --> - </TR> - <TR CLASS="b"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RubyBigBank/README.html">RubyBigBank</A></TD> - <TD></TD> <!-- Java runtime --> - <TD></TD> <!--Python runtime --> - <TD>Run</TD> <!--Ruby runtime --> - <TD>Run</TD> <!--Axis2/C library --> - <TD>Run</TD> <!--Axis2/C server --> - <TD></TD> <!--libcurl library --> - <TD></TD> <!--HTTPD server --> - <TD></TD> <!--Universal Feed Parser --> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="HTTPDBigBank/README.html">HTTPDBigBank</A></TD> - <TD></TD> <!-- Java runtime --> - <TD></TD> <!--Python runtime --> - <TD>Run</TD> <!--Ruby runtime --> - <TD>Run</TD> <!--Axis2/C library --> - <TD></TD> <!--Axis2/C server --> - <TD></TD> <!--libcurl library --> - <TD>Run</TD> <!--HTTPD server --> - <TD></TD> <!--Universal Feed Parser --> - </TR> - <TR CLASS="b"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="PythonWeatherForecast/README.html">PythonWeatherForecast</A></TD> - <TD></TD> <!-- Java runtime --> - <TD>Run</TD> <!--Python runtime --> - <TD></TD> <!--Ruby runtime --> - <TD>Run</TD> <!--Axis2/C library --> - <TD></TD> <!--Axis2/C server --> - <TD></TD> <!--libcurl library --> - <TD></TD> <!--HTTPD server --> - <TD></TD> <!--Universal Feed Parser --> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RestCustomer/README.html">RestCustomer</A></TD> - <TD></TD> <!-- Java runtime --> - <TD>Run</TD> <!--Python runtime --> - <TD></TD> <!--Ruby runtime --> - <TD></TD> <!--Axis2/C library --> - <TD></TD> <!--Axis2/C server --> - <TD>Run</TD> <!--libcurl library --> - <TD>Run</TD> <!--HTTPD server --> - <TD></TD> <!--Universal Feed Parser --> - </TR> - <TR CLASS="b"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="RestYahoo/README.html">RestYahoo</A></TD> - <TD></TD> <!-- Java runtime --> - <TD>Run</TD> <!--Python runtime --> - <TD>Run</TD> <!--Ruby runtime --> - <TD></TD> <!--Axis2/C library --> - <TD></TD> <!--Axis2/C server --> - <TD>Run</TD> <!--libcurl library --> - <TD></TD> <!--HTTPD server --> - <TD></TD> <!--Universal Feed Parser --> - </TR> - <TR CLASS="a"> - <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="AlertAggregator/README.html">AlertAggregator</A></TD> - <TD></TD> <!-- Java runtime --> - <TD>Run</TD> <!--Python runtime --> - <TD></TD> <!--Ruby runtime --> - <TD></TD> <!--Axis2/C library --> - <TD></TD> <!--Axis2/C server --> - <TD>Run</TD> <!--libcurl library --> - <TD>Run</TD> <!--HTTPD server --> - <TD>Run</TD> <!--Universal Feed Parser --> - </TR> - </TBODY> - </TABLE> - <BR/> - </DIV> - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - - <P> </P> - - <P> </P> - - <P> </P> - <TABLE CLASS="bodyTable"> - <TBODY> - <TR CLASS="a"> - <TD> - - <P>Thank you for your interest in Tuscany.</P> <STRONG><EM>-The - Tuscany Development Team</EM></STRONG> - </TD> - </TR> - </TBODY> - </TABLE> - </DIV> - - </DIV> - -</DIV> -</BODY> - -</HTML> diff --git a/cpp/sca/samples/HttpdBigBank/Makefile.am b/cpp/sca/samples/HttpdBigBank/Makefile.am deleted file mode 100644 index 7ae86e6d2c..0000000000 --- a/cpp/sca/samples/HttpdBigBank/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/HttpdBigBank/deploy -SUBDIRS = bigbank.account bigbank.accountdata bigbank.wsclient httpserver -EXTRA_DIST = *.composite -deploy_DATA = *.composite diff --git a/cpp/sca/samples/HttpdBigBank/README b/cpp/sca/samples/HttpdBigBank/README deleted file mode 100644 index a3442236bd..0000000000 --- a/cpp/sca/samples/HttpdBigBank/README +++ /dev/null @@ -1,37 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -This sample shows how to run the Bigbank app with the Apache HTTP server - -This is a more modular version of the original Bigbank app, the account -service and the account data service are in different composites. - -The httpserver directory contains a minimal httpd configuration. -Make sure that Apache apachectl and httpd 2.2.x are on the PATH. - -To start the server, cd to httpserver, and run ./startserver.sh. - -To verify that the server is working, point your Web browser to -http://localhost:9090. - -To verify that Axis2C is working, point your Web browser to -http://localhost:9090/axis2, you should see a list of deployed services. - -To stop the server, cd to httpserver, and run ./stopserver.sh. - -To run the sample go to bigbank.wsclient, and run ./runwsclient.sh. - diff --git a/cpp/sca/samples/HttpdBigBank/README.html b/cpp/sca/samples/HttpdBigBank/README.html deleted file mode 100644 index bfd33ee1cd..0000000000 --- a/cpp/sca/samples/HttpdBigBank/README.html +++ /dev/null @@ -1,197 +0,0 @@ - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../../doc/css/maven-base.css"); -@import url("../../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - HTTPD BigBank Sample</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany SCA Native Samples - HTTPD BigBank Sample</H1> - - <P>This sample implements the "Simplified BigBank" scenario. A whitepaper describing - the scenario based on the SCA 0.9 Assembly specification can be found - <A HREF="http://www.osoa.org/display/Main/SCA+-+Previously+Published+Specifications">here</A>. - This is a more modular version of the original Bigbank app, with the account - service and the account data service are in different composites. - </P> - <P>The HTTPD BigBank sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Services Extension</A></LI> - <LI><A HREF="../../doc/SCAExtension.html">SCA Binding Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </P> - <P>There are three sub-projects in this workspace:</P> - <UL> - <LI>bigbank.account<BR/> - This contains the source code and SCDL artifacts for the SCA HTTPD BigBank - composite implementing the account services. - </LI> - <LI>bigbank.accountdata<BR/> - This contains the source code and SCDL artifacts for the SCA HTTPD BigBank - composite implementing the account data services. - </LI> - <LI>bigbank.wsclient<BR/> - A sample client which uses an SCA Web Service reference to make a remote - call to the BigBank service. - </LI> - </UL> - <P>Additionally, there is the bigbank.app.composite file. This - describes the configuration of the SCA BigBank composite deployed to the SCA - runtime. - </P> - <P>Note that this sample does not run on Windows, due to threading incompatibilities - between Apache HTTPD and the Ruby runtime</P> - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the HTTPD BigBank sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#linuxrun">Running the HTTPD BigBank sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#win">The HTTPD BigBank sample on Windows</A></LI> - <LI><A HREF="#help">Getting help</A></LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the HTTPD BigBank sample on Linux and Mac OS X</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the samples on Linux and Mac OS X</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>As the HTTPD BigBank sample is based on Ruby scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the Ruby samples only with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure --enable-ruby --enable-cpp=no --prefix=$TUSCANY_SCACPP/samples</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide the --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/HttpdBigBank - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the HTTPD BigBank sample on Linux and Mac OS X</H2></A> - <OL> - <LI>The HTTPD BigBank sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Services Extension</A></LI> - <LI><A HREF="../../doc/SCAExtension.html">SCA Binding Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>Ensure you have enabled Axis2/C to run Tuscany SCA services. Follow the instructions - found <A HREF="../../doc/Axis2CWSExtension.html#deploy">here</A>. - </LI> - <LI>Start the Apache HTTPD server: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to Axis2/C version 0.96></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>/samples/HttpdBigBank/deploy/httpserver</LI> - <LI>./startserver.sh<BR/> - NOTE: Depending on your installation of Apache HTTPD you may need to log in as root before following - these steps. If so, you may also need to uncomment the User and Group directives in the - <tuscany_sca_install_dir>/samples/HttpdBigBank/deploy/httpserver/conf/httpd.conf file - and set these to the appropriate username and group that the server should run as</LI> - </OL> - </LI> - <LI>Now run the Web Service client: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to Axis2/C version 0.96></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/HttpdBigBank/deploy/bigbank.wsclient</LI> - <LI>./runwsclient.sh</LI> - </UL> - </LI> - </OL> - </LI> - <LI>The PHP web client detailed in the - <A HREF="../CppBigBank/README.html">CppBigBank</A> sample can also be used - with the HTTPD BigBank service that is served by the HTTPD server started above. - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="win"><H2>The HTTPD BigBank sample on Windows</H2></A> - <P>The HttpdBigBank sample does not currently run on Windows, due to the sample being based on Ruby - components running under Apache HTTPD. The Ruby runtime is single-threaded and, on Windows, HTTPD - is multi-threaded, which means that Ruby throws "cross-thread violation" errors when Tuscany - attempts to run a Ruby script under HTTPD.</P> - </DIV> - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> - diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.account/AccountService.wsdl b/cpp/sca/samples/HttpdBigBank/bigbank.account/AccountService.wsdl deleted file mode 100644 index b83c453462..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.account/AccountService.wsdl +++ /dev/null @@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:tns="http://www.bigbank.com/AccountService" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.bigbank.com/AccountService" - name="AccountService"> - - <wsdl:types> - <xsd:schema - targetNamespace="http://www.bigbank.com/AccountService" - xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - - <xsd:element name="getAccountReport"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="customerID" - type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="getAccountReportResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="result" - type="tns:AccountReport" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:complexType name="AccountReport"> - <xsd:sequence> - <xsd:element name="checking" - type="tns:CheckingAccount" maxOccurs="unbounded" /> - <xsd:element name="savings" - type="tns:SavingsAccount" maxOccurs="unbounded" /> - <xsd:element name="stocks" type="tns:StockAccount" - maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="StockAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="symbol" type="xsd:string" /> - <xsd:element name="quantity" type="xsd:integer" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="CheckingAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="SavingsAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - </xsd:schema> - </wsdl:types> - - <wsdl:message name="getAccountReportRequest"> - <wsdl:part element="tns:getAccountReport" - name="getAccountReportRequest" /> - </wsdl:message> - - <wsdl:message name="getAccountReportResponse"> - <wsdl:part element="tns:getAccountReportResponse" - name="getAccountReportResponse" /> - </wsdl:message> - - <wsdl:portType name="AccountService"> - <wsdl:operation name="getAccountReport"> - <wsdl:input message="tns:getAccountReportRequest" /> - <wsdl:output message="tns:getAccountReportResponse" /> - </wsdl:operation> - </wsdl:portType> - - <wsdl:binding name="AccountServiceSOAP" type="tns:AccountService"> - <soap:binding style="document" - transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="getAccountReport"> - <soap:operation - soapAction="http://www.bigbank.com/AccountService/getAccountReport" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - - <wsdl:service name="AccountService"> - <wsdl:port binding="tns:AccountServiceSOAP" - name="AccountServiceSOAP"> - <soap:address - location="http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/AccountService" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.account/AccountServiceImpl.rb b/cpp/sca/samples/HttpdBigBank/bigbank.account/AccountServiceImpl.rb deleted file mode 100644 index 20af2cfedb..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.account/AccountServiceImpl.rb +++ /dev/null @@ -1,83 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -require "rexml/document" -include REXML - -class AccountServiceImpl - - attr_writer :accountDataService - attr_writer :stockQuoteService - attr_writer :currency - - def initialize() - print "Ruby - AccountServiceImpl.initialize\n" - end - - def getAccountReport(customerID) - - # Get the checking account info - checking = @accountDataService.getCheckingAccount(customerID) - - # Get the savings account info - savings = @accountDataService.getSavingsAccount(customerID) - - # Get the stocks account info - stock = @accountDataService.getStockAccount(customerID); - - symbol = stock.root.elements["symbol"].text - quantity = stock.root.elements["quantity"].text - - # Get the stock price - price = @stockQuoteService.getQuote(symbol); - - # Convert to the configured currency - price = price.to_f * 0.80 if @currency == "EUR" - - # Calculate the balance - balance = price.to_f * quantity.to_f - - # Form the AccountReport document - report = Document.new <<-eof - <AccountReport xmlns="http://www.bigbank.com/AccountService" - xsi:type="AccountReport" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - - <checking> - <accountNumber>#{ checking.root.elements["accountNumber"].text }</accountNumber> - <balance>#{ checking.root.elements["balance"].text }</balance> - </checking> - - <savings> - <accountNumber>#{ savings.root.elements["accountNumber"].text }</accountNumber> - <balance>#{ savings.root.elements["balance"].text }</balance> - </savings> - - <stocks> - <accountNumber>#{ stock.root.elements["accountNumber"].text }</accountNumber> - <symbol>#{ symbol }</symbol> - <quantity>#{ quantity }</quantity> - <balance>#{ balance }</balance> - </stocks> - - </AccountReport> - eof - - return report - end - -end diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.account/Makefile.am b/cpp/sca/samples/HttpdBigBank/bigbank.account/Makefile.am deleted file mode 100644 index 01c8681555..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.account/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/HttpdBigBank/deploy -compositedir=$(deploydir)/bigbank.account - -composite_DATA = *.composite *.wsdl *.xsd *.rb -EXTRA_DIST = *.composite *.wsdl *.xsd *.rb diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.account/StockQuoteServiceImpl.rb b/cpp/sca/samples/HttpdBigBank/bigbank.account/StockQuoteServiceImpl.rb deleted file mode 100644 index 7f8634072c..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.account/StockQuoteServiceImpl.rb +++ /dev/null @@ -1,52 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -require "rexml/document" -include REXML - -class StockQuoteServiceImpl - - attr_writer :webService - - def initialize() - print "Ruby - StockQuoteServiceImpl.initialize\n" - end - - def getQuote(symbol) - print "Ruby - StockQuoteServiceImpl.getQuote ", symbol, "\n" - - price = 0 - catch (:RuntimeError) do - begin - - result = @webService.GetQuote(symbol) - doc = Document.new(result) - price = doc.root.elements["Stock"].elements["Last"].text; - - rescue - # offline or StockQuote web service is down - price = 95.0 - end - end - - print "Ruby - stock price = ", price, "\n" - - return price.to_f - end - -end
\ No newline at end of file diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.account/StockQuoteTypes.xsd b/cpp/sca/samples/HttpdBigBank/bigbank.account/StockQuoteTypes.xsd deleted file mode 100644 index 2f7012b5fb..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.account/StockQuoteTypes.xsd +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <xs:element name="StockQuotes" type="tStockQuotes"/> - <xs:complexType name="tStockQuotes"> - <xs:sequence> - <xs:element name="Stock" type="tStock" minOccurs="0" maxOccurs="unbounded"/> - <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - <xs:anyAttribute namespace="##any" processContents="lax"/> - </xs:complexType> - - <xs:complexType name="tStock"> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="1" name="Symbol" type="xs:string"/> - <xs:element minOccurs="0" maxOccurs="1" name="Last" type="xs:float"/> - <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - <xs:anyAttribute namespace="##any" processContents="lax"/> - </xs:complexType> -</xs:schema>
\ No newline at end of file diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.account/StockQuoteWebService.wsdl b/cpp/sca/samples/HttpdBigBank/bigbank.account/StockQuoteWebService.wsdl deleted file mode 100644 index c14f97c87b..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.account/StockQuoteWebService.wsdl +++ /dev/null @@ -1,165 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:s="http://www.w3.org/2001/XMLSchema" - xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:tns="http://www.webserviceX.NET/" - xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" - xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" - targetNamespace="http://www.webserviceX.NET/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - <wsdl:types> - <s:schema elementFormDefault="qualified" - targetNamespace="http://www.webserviceX.NET/"> - <s:element name="GetQuote"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" - name="symbol" type="s:string" /> - </s:sequence> - </s:complexType> - - </s:element> - <s:element name="GetQuoteResponse"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" - name="GetQuoteResult" type="s:string" /> - </s:sequence> - </s:complexType> - </s:element> - <s:element name="string" nillable="true" type="s:string" /> - - </s:schema> - </wsdl:types> - <wsdl:message name="GetQuoteSoapIn"> - <wsdl:part name="parameters" element="tns:GetQuote" /> - </wsdl:message> - <wsdl:message name="GetQuoteSoapOut"> - <wsdl:part name="parameters" element="tns:GetQuoteResponse" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpGetIn"> - - <wsdl:part name="symbol" type="s:string" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpGetOut"> - <wsdl:part name="Body" element="tns:string" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpPostIn"> - <wsdl:part name="symbol" type="s:string" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpPostOut"> - - <wsdl:part name="Body" element="tns:string" /> - </wsdl:message> - <wsdl:portType name="StockQuoteSoap"> - <wsdl:operation name="GetQuote"> - <documentation xmlns="http://schemas.xmlsoap.org/wsdl/"> - Get Stock quote for a company Symbol - </documentation> - <wsdl:input message="tns:GetQuoteSoapIn" /> - <wsdl:output message="tns:GetQuoteSoapOut" /> - </wsdl:operation> - - </wsdl:portType> - <wsdl:portType name="StockQuoteHttpGet"> - <wsdl:operation name="GetQuote"> - <documentation xmlns="http://schemas.xmlsoap.org/wsdl/"> - Get Stock quote for a company Symbol - </documentation> - <wsdl:input message="tns:GetQuoteHttpGetIn" /> - <wsdl:output message="tns:GetQuoteHttpGetOut" /> - </wsdl:operation> - </wsdl:portType> - - <wsdl:portType name="StockQuoteHttpPost"> - <wsdl:operation name="GetQuote"> - <documentation xmlns="http://schemas.xmlsoap.org/wsdl/"> - Get Stock quote for a company Symbol - </documentation> - <wsdl:input message="tns:GetQuoteHttpPostIn" /> - <wsdl:output message="tns:GetQuoteHttpPostOut" /> - </wsdl:operation> - </wsdl:portType> - <wsdl:binding name="StockQuoteSoap" type="tns:StockQuoteSoap"> - - <soap:binding transport="http://schemas.xmlsoap.org/soap/http" - style="document" /> - <wsdl:operation name="GetQuote"> - <soap:operation - soapAction="http://www.webserviceX.NET/GetQuote" style="document" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - - </wsdl:operation> - </wsdl:binding> - <wsdl:binding name="StockQuoteHttpGet" - type="tns:StockQuoteHttpGet"> - <http:binding verb="GET" /> - <wsdl:operation name="GetQuote"> - <http:operation location="/GetQuote" /> - <wsdl:input> - <http:urlEncoded /> - </wsdl:input> - - <wsdl:output> - <mime:mimeXml part="Body" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:binding name="StockQuoteHttpPost" - type="tns:StockQuoteHttpPost"> - <http:binding verb="POST" /> - <wsdl:operation name="GetQuote"> - <http:operation location="/GetQuote" /> - - <wsdl:input> - <mime:content type="application/x-www-form-urlencoded" /> - </wsdl:input> - <wsdl:output> - <mime:mimeXml part="Body" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:service name="StockQuote"> - - <wsdl:port name="StockQuoteSoap" binding="tns:StockQuoteSoap"> - <soap:address - location="http://www.webservicex.net/stockquote.asmx" /> - </wsdl:port> - <wsdl:port name="StockQuoteHttpGet" - binding="tns:StockQuoteHttpGet"> - <http:address - location="http://www.webservicex.net/stockquote.asmx" /> - </wsdl:port> - <wsdl:port name="StockQuoteHttpPost" - binding="tns:StockQuoteHttpPost"> - <http:address - location="http://www.webservicex.net/stockquote.asmx" /> - </wsdl:port> - - </wsdl:service> -</wsdl:definitions>
\ No newline at end of file diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.account/bigbank.account.composite b/cpp/sca/samples/HttpdBigBank/bigbank.account/bigbank.account.composite deleted file mode 100644 index 208402cdb3..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.account/bigbank.account.composite +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="bigbank.account"> - - <service name="AccountService"> - <interface.wsdl interface="http://www.bigbank.com/AccountService#wsdl.interface(AccountService)"/> - <binding.ws/> - <reference>AccountServiceComponent</reference> - </service> - - <component name="AccountServiceComponent"> - <implementation.ruby script="AccountServiceImpl.rb" class="AccountServiceImpl"/> - <reference name="accountDataService">AccountDataService</reference> - <reference name="stockQuoteService">StockQuoteServiceComponent</reference> - <property name="currency">USD</property> - </component> - - <component name="StockQuoteServiceComponent"> - <implementation.ruby script="StockQuoteServiceImpl.rb" class="StockQuoteServiceImpl"/> - <reference name="webService">StockQuoteWebService</reference> - </component> - - <reference name="StockQuoteWebService"> - <interface.wsdl interface="http://www.webserviceX.NET/#wsdl.interface(StockQuoteSoap)"/> - <binding.ws endpoint="http://www.webserviceX.NET/#wsdl.endpoint(StockQuote/StockQuoteSoap)"/> - </reference> - - <reference name="AccountDataService"> - <binding.sca/> - </reference> - -</composite> diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/AccountData.xsd b/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/AccountData.xsd deleted file mode 100644 index 8c8ff7c637..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/AccountData.xsd +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<xsd:schema targetNamespace="http://www.bigbank.com/AccountService" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - - <xsd:complexType name="StockAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="symbol" type="xsd:string" /> - <xsd:element name="quantity" type="xsd:integer" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="CheckingAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="SavingsAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - -</xsd:schema> diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/AccountDataServiceImpl.rb b/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/AccountDataServiceImpl.rb deleted file mode 100644 index 8ae0e23bab..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/AccountDataServiceImpl.rb +++ /dev/null @@ -1,72 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -require "rexml/document" -include REXML - -class AccountDataServiceImpl - - def initialize() - print "Ruby - AccountDataServiceImpl.initialize\n" - end - - def getCheckingAccount(id) - print "Ruby - AccountDataServiceImpl.getCheckingAccount ", id, "\n" - - result = Document.new <<-eof - <CheckingAccount xmlns="http://www.bigbank.com/AccountService" - xsi:type="CheckingAccount" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <accountNumber>#{ id.to_s + "_CHA12345"}</accountNumber> - <balance>1500.0</balance> - </CheckingAccount> - eof - - return result - end - - def getSavingsAccount(id) - print "Ruby - AccountDataServiceImpl.getSavingsAccount ", id, "\n" - - result = Document.new <<-eof - <SavingsAccount xmlns="http://www.bigbank.com/AccountService" - xsi:type="SavingsAccount" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <accountNumber>#{ id.to_s + "_SAA12345"}</accountNumber> - <balance>1500.0</balance> - </SavingsAccount> - eof - - return result - end - - def getStockAccount(id) - print "Ruby - AccountDataServiceImpl.getStockAccount ", id, "\n" - - result = Document.new <<-eof - <StockAccount xmlns="http://www.bigbank.com/AccountService" - xsi:type="StockAccount" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <accountNumber>#{ id.to_s + "_STA12345"}</accountNumber> - <symbol>IBM</symbol> - <quantity>100</quantity> - <balance></balance> - </StockAccount> - eof - - return result - end - -end diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/Makefile.am b/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/Makefile.am deleted file mode 100644 index 7735720b26..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/HttpdBigBank/deploy -compositedir=$(deploydir)/bigbank.accountdata - -composite_DATA = *.composite *.xsd *.rb -EXTRA_DIST = *.composite *.xsd *.rb diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/bigbank.accountdata.composite b/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/bigbank.accountdata.composite deleted file mode 100644 index 30c2802d5b..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.accountdata/bigbank.accountdata.composite +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="bigbank.accountdata"> - - <service name="AccountDataService"> - <binding.sca/> - <reference>AccountDataServiceComponent</reference> - </service> - - <component name="AccountDataServiceComponent"> - <implementation.ruby script="AccountDataServiceImpl.rb" class="AccountDataServiceImpl"/> - </component> - -</composite> diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.app.composite b/cpp/sca/samples/HttpdBigBank/bigbank.app.composite deleted file mode 100644 index 9507997464..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.app.composite +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="bigbank.app"> - - <component name="bigbank.AccountManagementComponent"> - <implementation.composite name="bigbank.account"/> - <reference name="AccountDataService">bigbank.AccountDataManagementComponent/AccountDataService</reference> - </component> - - <component name="bigbank.AccountDataManagementComponent"> - <implementation.composite name="bigbank.accountdata"/> - </component> - - <component name="bigbank.AccountWSClientComponent"> - <implementation.composite name="bigbank.wsclient"/> - <reference name="AccountService">bigbank.AccountManagementComponent/AccountService</reference> - </component> - -</composite> -
\ No newline at end of file diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/AccountService.wsdl b/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/AccountService.wsdl deleted file mode 100644 index b83c453462..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/AccountService.wsdl +++ /dev/null @@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:tns="http://www.bigbank.com/AccountService" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.bigbank.com/AccountService" - name="AccountService"> - - <wsdl:types> - <xsd:schema - targetNamespace="http://www.bigbank.com/AccountService" - xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - - <xsd:element name="getAccountReport"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="customerID" - type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="getAccountReportResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="result" - type="tns:AccountReport" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:complexType name="AccountReport"> - <xsd:sequence> - <xsd:element name="checking" - type="tns:CheckingAccount" maxOccurs="unbounded" /> - <xsd:element name="savings" - type="tns:SavingsAccount" maxOccurs="unbounded" /> - <xsd:element name="stocks" type="tns:StockAccount" - maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="StockAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="symbol" type="xsd:string" /> - <xsd:element name="quantity" type="xsd:integer" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="CheckingAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="SavingsAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - </xsd:schema> - </wsdl:types> - - <wsdl:message name="getAccountReportRequest"> - <wsdl:part element="tns:getAccountReport" - name="getAccountReportRequest" /> - </wsdl:message> - - <wsdl:message name="getAccountReportResponse"> - <wsdl:part element="tns:getAccountReportResponse" - name="getAccountReportResponse" /> - </wsdl:message> - - <wsdl:portType name="AccountService"> - <wsdl:operation name="getAccountReport"> - <wsdl:input message="tns:getAccountReportRequest" /> - <wsdl:output message="tns:getAccountReportResponse" /> - </wsdl:operation> - </wsdl:portType> - - <wsdl:binding name="AccountServiceSOAP" type="tns:AccountService"> - <soap:binding style="document" - transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="getAccountReport"> - <soap:operation - soapAction="http://www.bigbank.com/AccountService/getAccountReport" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - - <wsdl:service name="AccountService"> - <wsdl:port binding="tns:AccountServiceSOAP" - name="AccountServiceSOAP"> - <soap:address - location="http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/AccountService" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/AccountWSClient.rb b/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/AccountWSClient.rb deleted file mode 100644 index 6775b80f7a..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/AccountWSClient.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -require("tuscany_sca_ruby") - -accountService = SCA::locateService("AccountService") - -report = accountService.getAccountReport(1234) - -checking = report.root.elements["checking"] -savings = report.root.elements["savings"] -stocks = report.root.elements["stocks"] - -print "\n\n" -print "Checking account #: ", checking.elements["accountNumber"].text.strip, "\n" -print "Balance: ", checking.elements["balance"].text.strip, "\n" - -print "Savings account #: ", savings.elements["accountNumber"].text.strip, "\n" -print "Balance: ", savings.elements["balance"].text.strip, "\n" - -print "Stocks account #:", stocks.elements["accountNumber"].text.strip, "\n" -print "Symbol: ", stocks.elements["symbol"].text.strip, "\n" -print "Quantity: ", stocks.elements["quantity"].text.strip, "\n" -print "Balance: ", stocks.elements["balance"].text.strip, "\n" diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/Makefile.am b/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/Makefile.am deleted file mode 100644 index b1f1cfff0e..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -deploydir=$(prefix)/HttpdBigBank/deploy -clientdir=$(deploydir)/bigbank.wsclient - -client_DATA = *.rb *.composite *.wsdl -client_SCRIPTS = runwsclient.sh -EXTRA_DIST = runwsclient.sh *.rb *.composite *.wsdl diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/bigbank.wsclient.composite b/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/bigbank.wsclient.composite deleted file mode 100644 index f484a2fc7c..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/bigbank.wsclient.composite +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="bigbank.wsclient"> - - <reference name="AccountService"> - <interface.wsdl interface="http://www.bigbank.com/AccountService#wsdl.interface(AccountService)"/> - <binding.ws/> - </reference> - -</composite> diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/runwsclient.bat b/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/runwsclient.bat deleted file mode 100644 index 05d0ee2153..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/runwsclient.bat +++ /dev/null @@ -1,51 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo Using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo Using SDO installed at %TUSCANY_SDOCPP% - -if "%AXIS2C_HOME%" == "" ( -echo "AXIS2C_HOME not set" -goto end -) -echo Using Axis2C installed at %AXIS2C_HOME% - -rem Run the client -set PATH=%TUSCANY_SCACPP%\extensions\ruby\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SCACPP%\extensions\ws\reference\bin;%TUSCANY_SCACPP%\extensions\ws\service\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH% - -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ -set TUSCANY_SCACPP_COMPONENT=bigbank.AccountWSClientComponent -set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd %TUSCANY_SCACPP_ROOT%\bigbank.wsclient -ruby -I%TUSCANY_SCACPP%\extensions\ruby\bin AccountWSClient.rb - -:end -endlocal diff --git a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/runwsclient.sh b/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/runwsclient.sh deleted file mode 100755 index d50e6a4b0a..0000000000 --- a/cpp/sca/samples/HttpdBigBank/bigbank.wsclient/runwsclient.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/ruby/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_COMPONENT=bigbank.AccountWSClientComponent -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd $TUSCANY_SCACPP_ROOT/bigbank.wsclient -ruby -I$TUSCANY_SCACPP/extensions/ruby/lib AccountWSClient.rb diff --git a/cpp/sca/samples/HttpdBigBank/httpserver/Makefile.am b/cpp/sca/samples/HttpdBigBank/httpserver/Makefile.am deleted file mode 100644 index 1195ee1aae..0000000000 --- a/cpp/sca/samples/HttpdBigBank/httpserver/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -deploydir=$(prefix)/HttpdBigBank/deploy -serverdir=$(deploydir)/httpserver - -server_SCRIPTS = startserver.sh stopserver.sh -EXTRA_DIST = startserver.sh stopserver.sh conf htdocs -nobase_server_DATA = conf/httpd.conf conf/mime.types htdocs/index.html diff --git a/cpp/sca/samples/HttpdBigBank/httpserver/conf/httpd.conf b/cpp/sca/samples/HttpdBigBank/httpserver/conf/httpd.conf deleted file mode 100644 index e9a438dc85..0000000000 --- a/cpp/sca/samples/HttpdBigBank/httpserver/conf/httpd.conf +++ /dev/null @@ -1,35 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# This is the main Apache HTTP server configuration file. It contains the
-# configuration directives that give the server its instructions.
-# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
-
-Listen 9090
-
-# Generated by the startserver script
-Include conf/base.conf
-Include conf/mod_axis2.conf
-# Include conf/tuscany_sca_mod_rest.conf
-
-# User and Group directives may be required if the server must be
-# started from the root account. Uncomment the following lines and
-# set the correct username and group
-#
-# User myusername
-# Group mygroupname
-
diff --git a/cpp/sca/samples/HttpdBigBank/httpserver/conf/mime.types b/cpp/sca/samples/HttpdBigBank/httpserver/conf/mime.types deleted file mode 100644 index 4279f51bca..0000000000 --- a/cpp/sca/samples/HttpdBigBank/httpserver/conf/mime.types +++ /dev/null @@ -1,607 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# This file controls what Internet media types are sent to the client for -# given file extension(s). Sending the correct media type to the client -# is important so they know how to handle the content of the file. -# Extra types can either be added here or by using an AddType directive -# in your config files. For more information about Internet media types, -# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type -# registry is at <http://www.iana.org/assignments/media-types/>. - -# MIME type Extensions -application/activemessage -application/andrew-inset ez -application/applefile -application/atom+xml atom -application/atomicmail -application/batch-smtp -application/beep+xml -application/cals-1840 -application/cnrp+xml -application/commonground -application/cpl+xml -application/cybercash -application/dca-rft -application/dec-dx -application/dvcs -application/edi-consent -application/edifact -application/edi-x12 -application/eshop -application/font-tdpfr -application/http -application/hyperstudio -application/iges -application/index -application/index.cmd -application/index.obj -application/index.response -application/index.vnd -application/iotp -application/ipp -application/isup -application/mac-binhex40 hqx -application/mac-compactpro cpt -application/macwriteii -application/marc -application/mathematica -application/mathml+xml mathml -application/msword doc -application/news-message-id -application/news-transmission -application/ocsp-request -application/ocsp-response -application/octet-stream bin dms lha lzh exe class so dll dmg -application/oda oda -application/ogg ogg -application/parityfec -application/pdf pdf -application/pgp-encrypted -application/pgp-keys -application/pgp-signature -application/pkcs10 -application/pkcs7-mime -application/pkcs7-signature -application/pkix-cert -application/pkix-crl -application/pkixcmp -application/postscript ai eps ps -application/prs.alvestrand.titrax-sheet -application/prs.cww -application/prs.nprend -application/prs.plucker -application/qsig -application/rdf+xml rdf -application/reginfo+xml -application/remote-printing -application/riscos -application/rtf -application/sdp -application/set-payment -application/set-payment-initiation -application/set-registration -application/set-registration-initiation -application/sgml -application/sgml-open-catalog -application/sieve -application/slate -application/smil smi smil -application/srgs gram -application/srgs+xml grxml -application/timestamp-query -application/timestamp-reply -application/tve-trigger -application/vemmi -application/vnd.3gpp.pic-bw-large -application/vnd.3gpp.pic-bw-small -application/vnd.3gpp.pic-bw-var -application/vnd.3gpp.sms -application/vnd.3m.post-it-notes -application/vnd.accpac.simply.aso -application/vnd.accpac.simply.imp -application/vnd.acucobol -application/vnd.acucorp -application/vnd.adobe.xfdf -application/vnd.aether.imp -application/vnd.amiga.ami -application/vnd.anser-web-certificate-issue-initiation -application/vnd.anser-web-funds-transfer-initiation -application/vnd.audiograph -application/vnd.blueice.multipass -application/vnd.bmi -application/vnd.businessobjects -application/vnd.canon-cpdl -application/vnd.canon-lips -application/vnd.cinderella -application/vnd.claymore -application/vnd.commerce-battelle -application/vnd.commonspace -application/vnd.contact.cmsg -application/vnd.cosmocaller -application/vnd.criticaltools.wbs+xml -application/vnd.ctc-posml -application/vnd.cups-postscript -application/vnd.cups-raster -application/vnd.cups-raw -application/vnd.curl -application/vnd.cybank -application/vnd.data-vision.rdz -application/vnd.dna -application/vnd.dpgraph -application/vnd.dreamfactory -application/vnd.dxr -application/vnd.ecdis-update -application/vnd.ecowin.chart -application/vnd.ecowin.filerequest -application/vnd.ecowin.fileupdate -application/vnd.ecowin.series -application/vnd.ecowin.seriesrequest -application/vnd.ecowin.seriesupdate -application/vnd.enliven -application/vnd.epson.esf -application/vnd.epson.msf -application/vnd.epson.quickanime -application/vnd.epson.salt -application/vnd.epson.ssf -application/vnd.ericsson.quickcall -application/vnd.eudora.data -application/vnd.fdf -application/vnd.ffsns -application/vnd.fints -application/vnd.flographit -application/vnd.framemaker -application/vnd.fsc.weblaunch -application/vnd.fujitsu.oasys -application/vnd.fujitsu.oasys2 -application/vnd.fujitsu.oasys3 -application/vnd.fujitsu.oasysgp -application/vnd.fujitsu.oasysprs -application/vnd.fujixerox.ddd -application/vnd.fujixerox.docuworks -application/vnd.fujixerox.docuworks.binder -application/vnd.fut-misnet -application/vnd.grafeq -application/vnd.groove-account -application/vnd.groove-help -application/vnd.groove-identity-message -application/vnd.groove-injector -application/vnd.groove-tool-message -application/vnd.groove-tool-template -application/vnd.groove-vcard -application/vnd.hbci -application/vnd.hhe.lesson-player -application/vnd.hp-hpgl -application/vnd.hp-hpid -application/vnd.hp-hps -application/vnd.hp-pcl -application/vnd.hp-pclxl -application/vnd.httphone -application/vnd.hzn-3d-crossword -application/vnd.ibm.afplinedata -application/vnd.ibm.electronic-media -application/vnd.ibm.minipay -application/vnd.ibm.modcap -application/vnd.ibm.rights-management -application/vnd.ibm.secure-container -application/vnd.informix-visionary -application/vnd.intercon.formnet -application/vnd.intertrust.digibox -application/vnd.intertrust.nncp -application/vnd.intu.qbo -application/vnd.intu.qfx -application/vnd.irepository.package+xml -application/vnd.is-xpr -application/vnd.japannet-directory-service -application/vnd.japannet-jpnstore-wakeup -application/vnd.japannet-payment-wakeup -application/vnd.japannet-registration -application/vnd.japannet-registration-wakeup -application/vnd.japannet-setstore-wakeup -application/vnd.japannet-verification -application/vnd.japannet-verification-wakeup -application/vnd.jisp -application/vnd.kde.karbon -application/vnd.kde.kchart -application/vnd.kde.kformula -application/vnd.kde.kivio -application/vnd.kde.kontour -application/vnd.kde.kpresenter -application/vnd.kde.kspread -application/vnd.kde.kword -application/vnd.kenameaapp -application/vnd.koan -application/vnd.liberty-request+xml -application/vnd.llamagraphics.life-balance.desktop -application/vnd.llamagraphics.life-balance.exchange+xml -application/vnd.lotus-1-2-3 -application/vnd.lotus-approach -application/vnd.lotus-freelance -application/vnd.lotus-notes -application/vnd.lotus-organizer -application/vnd.lotus-screencam -application/vnd.lotus-wordpro -application/vnd.mcd -application/vnd.mediastation.cdkey -application/vnd.meridian-slingshot -application/vnd.micrografx.flo -application/vnd.micrografx.igx -application/vnd.mif mif -application/vnd.minisoft-hp3000-save -application/vnd.mitsubishi.misty-guard.trustweb -application/vnd.mobius.daf -application/vnd.mobius.dis -application/vnd.mobius.mbk -application/vnd.mobius.mqy -application/vnd.mobius.msl -application/vnd.mobius.plc -application/vnd.mobius.txf -application/vnd.mophun.application -application/vnd.mophun.certificate -application/vnd.motorola.flexsuite -application/vnd.motorola.flexsuite.adsi -application/vnd.motorola.flexsuite.fis -application/vnd.motorola.flexsuite.gotap -application/vnd.motorola.flexsuite.kmr -application/vnd.motorola.flexsuite.ttc -application/vnd.motorola.flexsuite.wem -application/vnd.mozilla.xul+xml xul -application/vnd.ms-artgalry -application/vnd.ms-asf -application/vnd.ms-excel xls -application/vnd.ms-lrm -application/vnd.ms-powerpoint ppt -application/vnd.ms-project -application/vnd.ms-tnef -application/vnd.ms-works -application/vnd.ms-wpl -application/vnd.mseq -application/vnd.msign -application/vnd.music-niff -application/vnd.musician -application/vnd.netfpx -application/vnd.noblenet-directory -application/vnd.noblenet-sealer -application/vnd.noblenet-web -application/vnd.novadigm.edm -application/vnd.novadigm.edx -application/vnd.novadigm.ext -application/vnd.obn -application/vnd.osa.netdeploy -application/vnd.palm -application/vnd.pg.format -application/vnd.pg.osasli -application/vnd.powerbuilder6 -application/vnd.powerbuilder6-s -application/vnd.powerbuilder7 -application/vnd.powerbuilder7-s -application/vnd.powerbuilder75 -application/vnd.powerbuilder75-s -application/vnd.previewsystems.box -application/vnd.publishare-delta-tree -application/vnd.pvi.ptid1 -application/vnd.pwg-multiplexed -application/vnd.pwg-xhtml-print+xml -application/vnd.quark.quarkxpress -application/vnd.rapid -application/vnd.s3sms -application/vnd.sealed.net -application/vnd.seemail -application/vnd.shana.informed.formdata -application/vnd.shana.informed.formtemplate -application/vnd.shana.informed.interchange -application/vnd.shana.informed.package -application/vnd.smaf -application/vnd.sss-cod -application/vnd.sss-dtf -application/vnd.sss-ntf -application/vnd.street-stream -application/vnd.svd -application/vnd.swiftview-ics -application/vnd.triscape.mxs -application/vnd.trueapp -application/vnd.truedoc -application/vnd.ufdl -application/vnd.uplanet.alert -application/vnd.uplanet.alert-wbxml -application/vnd.uplanet.bearer-choice -application/vnd.uplanet.bearer-choice-wbxml -application/vnd.uplanet.cacheop -application/vnd.uplanet.cacheop-wbxml -application/vnd.uplanet.channel -application/vnd.uplanet.channel-wbxml -application/vnd.uplanet.list -application/vnd.uplanet.list-wbxml -application/vnd.uplanet.listcmd -application/vnd.uplanet.listcmd-wbxml -application/vnd.uplanet.signal -application/vnd.vcx -application/vnd.vectorworks -application/vnd.vidsoft.vidconference -application/vnd.visio -application/vnd.visionary -application/vnd.vividence.scriptfile -application/vnd.vsf -application/vnd.wap.sic -application/vnd.wap.slc -application/vnd.wap.wbxml wbxml -application/vnd.wap.wmlc wmlc -application/vnd.wap.wmlscriptc wmlsc -application/vnd.webturbo -application/vnd.wrq-hp3000-labelled -application/vnd.wt.stf -application/vnd.wv.csp+wbxml -application/vnd.xara -application/vnd.xfdl -application/vnd.yamaha.hv-dic -application/vnd.yamaha.hv-script -application/vnd.yamaha.hv-voice -application/vnd.yellowriver-custom-menu -application/voicexml+xml vxml -application/watcherinfo+xml -application/whoispp-query -application/whoispp-response -application/wita -application/wordperfect5.1 -application/x-bcpio bcpio -application/x-cdlink vcd -application/x-chess-pgn pgn -application/x-compress -application/x-cpio cpio -application/x-csh csh -application/x-director dcr dir dxr -application/x-dvi dvi -application/x-futuresplash spl -application/x-gtar gtar -application/x-gzip -application/x-hdf hdf -application/x-javascript js -application/x-koan skp skd skt skm -application/x-latex latex -application/x-netcdf nc cdf -application/x-sh sh -application/x-shar shar -application/x-shockwave-flash swf -application/x-stuffit sit -application/x-sv4cpio sv4cpio -application/x-sv4crc sv4crc -application/x-tar tar -application/x-tcl tcl -application/x-tex tex -application/x-texinfo texinfo texi -application/x-troff t tr roff -application/x-troff-man man -application/x-troff-me me -application/x-troff-ms ms -application/x-ustar ustar -application/x-wais-source src -application/x400-bp -application/xhtml+xml xhtml xht -application/xslt+xml xslt -application/xml xml xsl -application/xml-dtd dtd -application/xml-external-parsed-entity -application/zip zip -audio/32kadpcm -audio/amr -audio/amr-wb -audio/basic au snd -audio/cn -audio/dat12 -audio/dsr-es201108 -audio/dvi4 -audio/evrc -audio/evrc0 -audio/g722 -audio/g.722.1 -audio/g723 -audio/g726-16 -audio/g726-24 -audio/g726-32 -audio/g726-40 -audio/g728 -audio/g729 -audio/g729D -audio/g729E -audio/gsm -audio/gsm-efr -audio/l8 -audio/l16 -audio/l20 -audio/l24 -audio/lpc -audio/midi mid midi kar -audio/mpa -audio/mpa-robust -audio/mp4a-latm -audio/mpeg mpga mp2 mp3 -audio/parityfec -audio/pcma -audio/pcmu -audio/prs.sid -audio/qcelp -audio/red -audio/smv -audio/smv0 -audio/telephone-event -audio/tone -audio/vdvi -audio/vnd.3gpp.iufp -audio/vnd.cisco.nse -audio/vnd.cns.anp1 -audio/vnd.cns.inf1 -audio/vnd.digital-winds -audio/vnd.everad.plj -audio/vnd.lucent.voice -audio/vnd.nortel.vbk -audio/vnd.nuera.ecelp4800 -audio/vnd.nuera.ecelp7470 -audio/vnd.nuera.ecelp9600 -audio/vnd.octel.sbc -audio/vnd.qcelp -audio/vnd.rhetorex.32kadpcm -audio/vnd.vmx.cvsd -audio/x-aiff aif aiff aifc -audio/x-alaw-basic -audio/x-mpegurl m3u -audio/x-pn-realaudio ram ra -audio/x-pn-realaudio-plugin -application/vnd.rn-realmedia rm -audio/x-wav wav -chemical/x-pdb pdb -chemical/x-xyz xyz -image/bmp bmp -image/cgm cgm -image/g3fax -image/gif gif -image/ief ief -image/jpeg jpeg jpg jpe -image/naplps -image/png png -image/prs.btif -image/prs.pti -image/svg+xml svg -image/t38 -image/tiff tiff tif -image/tiff-fx -image/vnd.cns.inf2 -image/vnd.djvu djvu djv -image/vnd.dwg -image/vnd.dxf -image/vnd.fastbidsheet -image/vnd.fpx -image/vnd.fst -image/vnd.fujixerox.edmics-mmr -image/vnd.fujixerox.edmics-rlc -image/vnd.globalgraphics.pgb -image/vnd.mix -image/vnd.ms-modi -image/vnd.net-fpx -image/vnd.svf -image/vnd.wap.wbmp wbmp -image/vnd.xiff -image/x-cmu-raster ras -image/x-icon ico -image/x-portable-anymap pnm -image/x-portable-bitmap pbm -image/x-portable-graymap pgm -image/x-portable-pixmap ppm -image/x-rgb rgb -image/x-xbitmap xbm -image/x-xpixmap xpm -image/x-xwindowdump xwd -message/delivery-status -message/disposition-notification -message/external-body -message/http -message/news -message/partial -message/rfc822 -message/s-http -message/sip -message/sipfrag -model/iges igs iges -model/mesh msh mesh silo -model/vnd.dwf -model/vnd.flatland.3dml -model/vnd.gdl -model/vnd.gs-gdl -model/vnd.gtw -model/vnd.mts -model/vnd.parasolid.transmit.binary -model/vnd.parasolid.transmit.text -model/vnd.vtu -model/vrml wrl vrml -multipart/alternative -multipart/appledouble -multipart/byteranges -multipart/digest -multipart/encrypted -multipart/form-data -multipart/header-set -multipart/mixed -multipart/parallel -multipart/related -multipart/report -multipart/signed -multipart/voice-message -text/calendar ics ifb -text/css css -text/directory -text/enriched -text/html html htm -text/parityfec -text/plain asc txt -text/prs.lines.tag -text/rfc822-headers -text/richtext rtx -text/rtf rtf -text/sgml sgml sgm -text/t140 -text/tab-separated-values tsv -text/uri-list -text/vnd.abc -text/vnd.curl -text/vnd.dmclientscript -text/vnd.fly -text/vnd.fmi.flexstor -text/vnd.in3d.3dml -text/vnd.in3d.spot -text/vnd.iptc.nitf -text/vnd.iptc.newsml -text/vnd.latex-z -text/vnd.motorola.reflex -text/vnd.ms-mediapackage -text/vnd.net2phone.commcenter.command -text/vnd.sun.j2me.app-descriptor -text/vnd.wap.si -text/vnd.wap.sl -text/vnd.wap.wml wml -text/vnd.wap.wmlscript wmls -text/x-setext etx -text/xml -text/xml-external-parsed-entity -video/bmpeg -video/bt656 -video/celb -video/dv -video/h261 -video/h263 -video/h263-1998 -video/h263-2000 -video/jpeg -video/mp1s -video/mp2p -video/mp2t -video/mp4v-es -video/mpv -video/mpeg mpeg mpg mpe -video/nv -video/parityfec -video/pointer -video/quicktime qt mov -video/smpte292m -video/vnd.fvt -video/vnd.motorola.video -video/vnd.motorola.videop -video/vnd.mpegurl mxu m4u -video/vnd.nokia.interleaved-multimedia -video/vnd.objectvideo -video/vnd.vivo -video/x-msvideo avi -video/x-sgi-movie movie -x-conference/x-cooltalk ice diff --git a/cpp/sca/samples/HttpdBigBank/httpserver/htdocs/index.html b/cpp/sca/samples/HttpdBigBank/httpserver/htdocs/index.html deleted file mode 100644 index 1bfb3e30c2..0000000000 --- a/cpp/sca/samples/HttpdBigBank/httpserver/htdocs/index.html +++ /dev/null @@ -1,21 +0,0 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<html><body><h1>It works!</h1></body></html> - diff --git a/cpp/sca/samples/HttpdBigBank/httpserver/startserver.bat b/cpp/sca/samples/HttpdBigBank/httpserver/startserver.bat deleted file mode 100644 index fe319248f5..0000000000 --- a/cpp/sca/samples/HttpdBigBank/httpserver/startserver.bat +++ /dev/null @@ -1,89 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -set APFULLDIR=%~d0%~p0 -echo Running from %APFULLDIR% - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo Using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo Using SDO installed at %TUSCANY_SDOCPP% - -if "%AXIS2C_HOME%" == "" ( -echo "AXIS2C_HOME not set" -goto end -) -echo Using Axis2C installed at %AXIS2C_HOME% - -if "%HTTPD_HOME%" == "" ( -echo "HTTPD_HOME not set" -goto end -) -echo Using HTTPD installed at %HTTPD_HOME% - -set PATH=%TUSCANY_SCACPP%\extensions\sca\reference\bin;%TUSCANY_SCACPP%\extensions\sca\service\bin;%TUSCANY_SCACPP%\extensions\ws\reference\bin;%TUSCANY_SCACPP%\extensions\ws\service\bin;%TUSCANY_SCACPP%\extensions\ruby\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%HTTPD_HOME%\bin;%PATH% - -set TUSCANY_SCACPP_ROOT=%APFULLDIR%\..\ -set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -@REM Generate the mod_axis2 configuration -if not exist %APFULLDIR%\conf\mod_axis2.conf ( - echo LoadModule axis2_module %AXIS2C_HOME%\lib\mod_axis2.dll > %APFULLDIR%\conf\mod_axis2.conf - echo Axis2RepoPath %AXIS2C_HOME% >> %APFULLDIR%\conf\mod_axis2.conf - echo Axis2LogFile %AXIS2C_HOME%\logs\httpd.log >> %APFULLDIR%\conf\mod_axis2.conf - echo Axis2LogLevel AXIS2_LOG_LEVEL_DEBUG >> %APFULLDIR%\conf\mod_axis2.conf - echo ^<Location /axis2^> >> %APFULLDIR%\conf\mod_axis2.conf - echo SetHandler axis2_module >> %APFULLDIR%\conf\mod_axis2.conf - echo ^</Location^> >> %APFULLDIR%\conf\mod_axis2.conf -) - -@REM Generate the tuscany_sca_mod_rest configuration -@REM if not exist %APFULLDIR%\conf\tuscany_sca_mod_rest.conf ( -@REM echo LoadModule sca_rest_module %TUSCANY_SCACPP%/extensions/rest\service/bin/tuscany_sca_mod_rest.dll > %APFULLDIR%\conf\tuscany_sca_mod_rest.conf -@REM echo TuscanyHome %TUSCANY_SCACPP% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf -@REM echo ^<Location /rest^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf -@REM echo SetHandler sca_rest_module >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf -@REM echo TuscanyRoot %TUSCANY_SCACPP_ROOT% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf -@REM echo ^</Location^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf -@REM ) - -@REM Generate the base HTTPD configuration -if not exist %APFULLDIR%\conf\base.conf ( - echo LoadModule mime_module %HTTPD_HOME%\modules\mod_mime.so > %APFULLDIR%\conf\base.conf - echo LoadModule dir_module %HTTPD_HOME%\modules\mod_dir.so >> %APFULLDIR%\conf\base.conf - echo DocumentRoot %APFULLDIR%\htdocs >> %APFULLDIR%\conf\base.conf -) - -@REM Create logs directory -if not exist %APFULLDIR%\logs mkdir %APFULLDIR%\logs -@rem set TUSCANY_SCACPP_LOG=%APFULLDIR%\logs\tuscany-server.log -set TUSCANY_SCACPP_LOGGING=9 - -@REM Start the HTTP server -echo Starting Apache httpd -httpd -X -d %APFULLDIR% diff --git a/cpp/sca/samples/HttpdBigBank/httpserver/startserver.sh b/cpp/sca/samples/HttpdBigBank/httpserver/startserver.sh deleted file mode 100755 index cca8472b75..0000000000 --- a/cpp/sca/samples/HttpdBigBank/httpserver/startserver.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -# Generate the mod_axis2 configuration -if [ ! -f conf/mod_axis2.conf ]; then - echo "LoadModule axis2_module $AXIS2C_HOME/lib/libmod_axis2.so.0.0.0" >conf/mod_axis2.conf - echo "Axis2RepoPath $AXIS2C_HOME" >>conf/mod_axis2.conf - echo "Axis2LogFile $AXIS2C_HOME/logs/httpd.log" >>conf/mod_axis2.conf - echo "Axis2LogLevel AXIS2_LOG_LEVEL_INFO" >>conf/mod_axis2.conf - echo "<Location /axis2>" >>conf/mod_axis2.conf - echo " SetHandler axis2_module" >>conf/mod_axis2.conf - echo "</Location>" >>conf/mod_axis2.conf -fi - -# Generate the mod_rest configuration -if [ ! -f conf/tuscany_sca_mod_rest.conf ]; then - echo "LoadModule sca_rest_module $TUSCANY_SCACPP/extensions/rest/service/lib/libtuscany_sca_mod_rest.so.0.0.0" >conf/tuscany_sca_mod_rest.conf - echo "TuscanyHome $TUSCANY_SCACPP" >>conf/tuscany_sca_mod_rest.conf - echo "<Location /rest>" >>conf/tuscany_sca_mod_rest.conf - echo " SetHandler sca_rest_module" >>conf/tuscany_sca_mod_rest.conf - echo " TuscanyRoot $TUSCANY_SCACPP_ROOT" >>conf/tuscany_sca_mod_rest.conf - echo "</Location>" >>conf/tuscany_sca_mod_rest.conf -fi - -# Generate the HTTPD base configuration -if [ ! -f conf/base.conf ]; then - echo "DocumentRoot $APFULLDIR/htdocs" >conf/base.conf -fi - -# Create logs directory -if [ ! -d logs ]; then - mkdir logs -fi - -# Start the HTTP server -echo "Starting Apache httpd" -apachectl -k start -d $APFULLDIR diff --git a/cpp/sca/samples/HttpdBigBank/httpserver/stopserver.sh b/cpp/sca/samples/HttpdBigBank/httpserver/stopserver.sh deleted file mode 100755 index c17f632a3e..0000000000 --- a/cpp/sca/samples/HttpdBigBank/httpserver/stopserver.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -# Stop the HTTP server -echo "Stopping Apache httpd" -apachectl -k stop -d $APFULLDIR - diff --git a/cpp/sca/samples/INSTALL b/cpp/sca/samples/INSTALL deleted file mode 100644 index 3d7155367d..0000000000 --- a/cpp/sca/samples/INSTALL +++ /dev/null @@ -1,2 +0,0 @@ -Please read the GettingStarted.html document for information on -building, installing and running Tuscany SCA for C++ Samples
\ No newline at end of file diff --git a/cpp/sca/samples/LICENSE b/cpp/sca/samples/LICENSE deleted file mode 100755 index f433b1a53f..0000000000 --- a/cpp/sca/samples/LICENSE +++ /dev/null @@ -1,177 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS diff --git a/cpp/sca/samples/Makefile.am b/cpp/sca/samples/Makefile.am deleted file mode 100644 index 0fdf524cc1..0000000000 --- a/cpp/sca/samples/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -if WANT_ALL_SAMPLES - CPP_SAMPLES = CppCalculator CppBigBank - PYTHON_SAMPLES = PythonCalculator PythonWeatherForecast RestCustomer AlertAggregator - RUBY_SAMPLES = RubyCalculator RubyBigBank HttpdBigBank RestCalculator - PYTHON_RUBY_SAMPLES = RestYahoo -else -if WANT_CPP_SAMPLES - CPP_SAMPLES = CppCalculator CppBigBank -endif -if WANT_PYTHON_SAMPLES - PYTHON_SAMPLES = PythonCalculator PythonWeatherForecast RestCustomer AlertAggregator -if WANT_RUBY_SAMPLES - PYTHON_RUBY_SAMPLES = RestYahoo -endif -endif -if WANT_RUBY_SAMPLES - RUBY_SAMPLES = RubyCalculator RubyBigBank HttpdBigBank RestCalculator -endif -endif -SUBDIRS = ${CPP_SAMPLES} ${PYTHON_SAMPLES} ${RUBY_SAMPLES} ${PYTHON_RUBY_SAMPLES} - -EXTRA_DIST = autogen.sh build.sh GettingStarted.html - diff --git a/cpp/sca/samples/NEWS b/cpp/sca/samples/NEWS deleted file mode 100644 index e69de29bb2..0000000000 --- a/cpp/sca/samples/NEWS +++ /dev/null diff --git a/cpp/sca/samples/NOTICE b/cpp/sca/samples/NOTICE deleted file mode 100644 index 44befbee63..0000000000 --- a/cpp/sca/samples/NOTICE +++ /dev/null @@ -1,5 +0,0 @@ -Apache Tuscany SCA Native -Copyright 2005, 2007 The Apache Software Foundation - -This product includes software developed by -The Apache Software Foundation (http://www.apache.org/)
\ No newline at end of file diff --git a/cpp/sca/samples/PHPCalculator/Makefile.am b/cpp/sca/samples/PHPCalculator/Makefile.am deleted file mode 100644 index 3277f97e6e..0000000000 --- a/cpp/sca/samples/PHPCalculator/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/PHPCalculator/deploy -# SUBDIRS = sample.calculator sample.calculator.client -SUBDIRS = sample.calculator -EXTRA_DIST = *.composite -deploy_DATA = *.composite diff --git a/cpp/sca/samples/PHPCalculator/README b/cpp/sca/samples/PHPCalculator/README deleted file mode 100644 index d91c958763..0000000000 --- a/cpp/sca/samples/PHPCalculator/README +++ /dev/null @@ -1,122 +0,0 @@ -Tuscany SCA for C++ Samples - PHP Calculator Sample -=================================================== - -This is a simple sample to show how an SCA composite can wire together -a number of components to implement a Calculator service and expose that service as -to a number of different tpyes of client. The sample components are implemented in various -ways to demonstrate the different features of the PHP SCA extension. - -There are three sub projects in this workspace: - - sample.calculator - This contains the source code and SCDL artifacts for the SCA Calculator - composite implementing the sample Calculator - - - sample.calculator.client - A sample client which does a local call to the Calculator service - - - sample.calculator.wsclient - A sample PHP SCA Web Service client which calls the Calculator Web service. - -Additionally, there is the sample.calculator.app.composite file. This -describes the configuration of the SCA Calculator composite deployed to the -SCA runtime. - -(See the README.html file for instructions to build and run this sample - TODO) - -The file phpcalculator.png is a picture of the sample. Given the restrictions on the -current PHP extension (see TODOs in the PHP Extension README) some parts of this -have not been tested yet. - -The path that has been tested is as follows: - -Local CPP client -> CPP Calculator -> PHP Divide -> PHP Add ------> PHP Log - |-------> PHP Subtract -> PHP Log - |-------> PHP Multiple -> PHP Log - |-------> PHP Divide ---> PHP Log - -The local CPP client is used because - - the work to enable PHP to host SCA is not done yet - - running with the axis service causes missing symbols errors on my box - -The CPP Calculator component is used because - - The local CPP client can only talk directly to a CPP component - -To run the sample in this configuration use the CalculatorClient.cpp found in the -sample.calculator.client directory - -Windows -======= - -Hasn't yet been tests on windows in this configuration so ignore the following - -I use the following bat file to start the stand alone axis server and include -appropriate references to PHP dependencies. This needs turning into a proper -run script but I haven't got to this yet - -set TUSCANY_SCACPP_LOGGING=9 -set AXIS2C_HOME=C:\axis2c-bin-0.95-win32 -set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%TUSCANY_SCACPP%\extensions\php\bin;%AXIS2C_HOME%\lib;c:\libxml2-2.6.23.win32\bin;c:\apps\iconv-1.9.1.win32\bin;c:\apps\zlib-1.2.3.win32\bin;C:\php-5.2.0\ -set TUSCANY_SCACPP_ROOT=%TUSCANY_SCACPP%\samples\PHPCalculator -rem set TUSCANY_SCACPP_DEFAULT_COMPONENT=sample.calculator.CalculatorComponent - -%AXIS2C_HOME%\bin\axis2_http_server.exe -l 9 - -I then - -cd %TUSCANY_SCACPP%\samples\PHPCalculator\samples.calculator.wsclient -runwsclient.bat - -This has the effect of runing a PHP/SCA client (no C++ SCA content at all) -to generate a web service request to the C++ SCA runtime hosting the calculator -application. - -Currently this doesn't run all the way through due to a WSDL bug in PHP SCA -(http://pecl.php.net/bugs/bug.php?id=9572). But it gets 99% of the way there. -You will see the server doing all of its stuff and returning the correct result. - -Linux -===== - -I find the following environment variables useful when running PHP embedded inside of -Tuscany SCA. - -# the library path use to locate shared libraries -export LD_LIBRARY_PATH=$LIBXML2_LIB:\ -$AXIS2C_HOME/lib:\ -$PHP_LIB:\ -$TUSCANY_SDOCPP/lib:\ -$TUSCANY_SCACPP/lib:\ -$TUSCANY_SCACPP/extensions/cpp/lib:\ -$TUSCANY_SCACPP/extensions/php/lib:\ -$TUSCANY_SCACPP/extensions/ws/lib:\ -$TUSCANY_SCACPP/samples/PHPCalculator/deploy/sample.calculator:\ -$PHP_SCA_SDO_LIB - -# tell PHP specifically where to find php.ini rather than relying on the default -set PHPRC=/usr/local/lib - -# tell Tuscany SCA which composite appplication to run -export TUSCANY_SCACPP_ROOT=/usr/local/tuscany/cpp/sca/deploy/samples/PHPCalculator - -# tell Tuscany SCA which is the default component in this composite -export TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorComponent - -# turn on logging so you can see what's going on -export TUSCANY_SCACPP_LOGGING=9 - -There is an env.sh file that can be edited and used to set your environment. One edited -to reflect your environment do: - -source env.sh - -The CPP client currently has an independent Makefile due to build problems with the automake -build on my box. If you have your environment configured as above you should be able to do: - -make - -This will produce a.out which can be run using the provided script. - -runclient_cpp.sh - - - diff --git a/cpp/sca/samples/PHPCalculator/phpcalculator.png b/cpp/sca/samples/PHPCalculator/phpcalculator.png Binary files differdeleted file mode 100644 index c251364548..0000000000 --- a/cpp/sca/samples/PHPCalculator/phpcalculator.png +++ /dev/null diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator.app.composite b/cpp/sca/samples/PHPCalculator/sample.calculator.app.composite deleted file mode 100644 index 1450ad687b..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator.app.composite +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.calculator.app"> - - <component name="sample.calculator.CalculatorComponent"> - <implementation.composite name="sample.calculator" /> - </component> - -<!-- - <component name="sample.calculator.CalculatorWSClientComponent"> - <implementation.composite name="sample.calculator.wsclient" /> - </component> ---> -</composite> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.cpp b/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.cpp deleted file mode 100644 index e72b52f87e..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.cpp +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -// some strangeness in the build that causes -// WinSock.h and WinSock2.h to be included leading to redefinitions -//#define _WINSOCKAPI_ - - -#include <iostream> - -#include <php_embed.h> - -#include <string> - -#include "commonj/sdo/SDO.h" - -#include "osoa/sca/sca.h" - -#include "Calculator.h" - - -using namespace std; -using namespace commonj::sdo; -using namespace osoa::sca; - - -int main (int argc, char** argv) -{ - - try - { - CompositeContext myContext = CompositeContext::getCurrent(); - Calculator *calcService = (Calculator*) myContext.locateService("CalculatorCPPComponent/CalculatorService"); - float result = calcService->div(10, 2); - cout << "calculator_client: div(10,2) = " << result << endl; - } - catch (...) - { - printf("Got and exception"); - } - - return 0; -} diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.php b/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.php deleted file mode 100644 index 7a512260ae..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -include 'SCA/SCA.php'; - -// Get a proxy to the local Calculator.php -$service = SCA::getService('../sample.calculator/Calculator.php'); - -// Call the local service and write out the response -echo "add(1.23, 4.56) = " . $service->add(1.23, 4.56) . "\n"; -echo "sub(1.23, 4.56) = " . $service->sub(1.23, 4.56) . "\n"; -echo "mul(1.23, 4.56) = " . $service->mul(1.23, 4.56) . "\n"; -echo "div(1.23, 4.56) = " . $service->div(1.23, 4.56) . "\n"; - -?> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator.client/env.sh b/cpp/sca/samples/PHPCalculator/sample.calculator.client/env.sh deleted file mode 100755 index de34f1b42a..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator.client/env.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -export AXIS2C_HOME=/home/slaws/apps/axis2c-bin-0.96-linux - -export LIBXML2_LIB=/usr/lib -export LIBXML2_INCLUDE=/usr/include/libxml2 - -export PHP_LIB=/usr/local/lib -export PHP_INCLUDE=/usr/local/include/php - -export PHP_SCA_SDO_INCLUDE=/home/slaws/phpbuild-5-2/pecl/SDO -export PHP_SCA_SDO_LIB=$PHP_LIB/php/extensions/no-debug-zts-20060613/ - -export TUSCANY_SDOCPP=/sdo/deploy -export TUSCANY_SCACPP=/usr/local/tuscany/cpp/sca/deploy - -export LD_LIBRARY_PATH=$LIBXML2_LIB:\ -$AXIS2C_HOME/lib:\ -$PHP_LIB:\ -$TUSCANY_SDOCPP/lib:\ -$TUSCANY_SCACPP/lib:\ -$TUSCANY_SCACPP/extensions/cpp/lib:\ -$TUSCANY_SCACPP/extensions/php/lib:\ -$TUSCANY_SCACPP/extensions/ws/lib:\ -$TUSCANY_SCACPP/samples/PHPCalculator/deploy/sample.calculator:\ -$PHP_SCA_SDO_LIB - -export TUSCANY_SCACPP_LOGGING=9 -export TUSCANY_SCACPP_ROOT=/usr/local/tuscany/cpp/sca/deploy/samples/PHPCalculator - -export PATH=.:$PATH diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient_cpp.bat b/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient_cpp.bat deleted file mode 100644 index 0493d7410d..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient_cpp.bat +++ /dev/null @@ -1,26 +0,0 @@ -@echo off
-
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM http://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-
-set TUSCANY_SCACPP_ROOT=%TUSCANY_SCACPP%\samples\PHPCalculator\deploy
-set TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorComponent
-set TUSCANY_SCACPP_LOGGING=9
-set PHRC=C:\simon\Projects\Tuscany\php\php-5.2.0\Debug_TS
-
-calculator_client.exe
-
diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient_cpp.sh b/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient_cpp.sh deleted file mode 100755 index 85a472b7fb..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient_cpp.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -export TUSCANY_SCACPP_ROOT=/usr/local/tuscany/cpp/sca/deploy/samples/PHPCalculator -export TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorComponent - -a.out -# gdb a.out -# strace a.out &> strace.txt -# valgrind a.out diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient_php.bat b/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient_php.bat deleted file mode 100644 index 815c4fb58e..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient_php.bat +++ /dev/null @@ -1,25 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -php TuscanyTest.php - -:end -endlocal diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/Calculator.wsdl b/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/Calculator.wsdl deleted file mode 100644 index 4d6904b687..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/Calculator.wsdl +++ /dev/null @@ -1,173 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://sample/calculator" - targetNamespace="http://sample/calculator"> - <types> - <xs:schema targetNamespace="http://sample/calculator" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://sample/calculator" elementFormDefault="qualified"> - - <xs:element name="add"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="sub"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="mul"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="div"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="addResponse"> - <xs:complexType> - <xs:sequence> - <xs:element name="addReturn" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="result"> - <xs:complexType> - <xs:sequence> - <xs:element name="data" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - </xs:schema> - </types> - - <message name="addRequestMsg"> - <part name="body" element="tns:add" /> - </message> - <message name="addResponseMsg"> - <part name="body" element="tns:addResponse" /> - </message> - <message name="subRequestMsg"> - <part name="body" element="tns:sub" /> - </message> - <message name="mulRequestMsg"> - <part name="body" element="tns:mul" /> - </message> - <message name="divRequestMsg"> - <part name="body" element="tns:div" /> - </message> - - <message name="calculatorResponseMsg"> - <part name="body" element="tns:result" /> - </message> - - <portType name="Calculator"> - <operation name="add"> - <input message="tns:addRequestMsg" /> - <output message="tns:addResponseMsg" /> - </operation> - <operation name="sub"> - <input message="tns:subRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - <operation name="mul"> - <input message="tns:mulRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - <operation name="div"> - <input message="tns:divRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - </portType> - - <binding name="CalculatorBinding" - type="tns:Calculator"> - <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> - <operation name="add"> - <soap:operation soapAction="CalculatorService#add" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="sub"> - <soap:operation soapAction="CalculatorService#sub" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="mul"> - <soap:operation soapAction="CalculatorService#mul" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="div"> - <soap:operation soapAction="CalculatorService#div" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - </binding> - - <service name="CalculatorService"> - <port name="CalculatorPort" - binding="tns:CalculatorBinding"> - <soap:address location="http://localhost:9090/axis2/services/sample.calculator.CalculatorComponent/CalculatorService" /> - </port> - </service> -</definitions> -<!-- this line identifies this file as WSDL generated by SCA for PHP. Do not remove --> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/CalculatorWSClient.php b/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/CalculatorWSClient.php deleted file mode 100644 index 82faf1ef19..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/CalculatorWSClient.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# -include 'SCA/SCA.php'; - -// Get a proxy to the local Calculator.php -$service = SCA::getService('Calculator.wsdl'); - -// Call the local service and write out the response -//echo "add(1.23, 4.56) = " . $service->add(1.23, 4.56) . "\n"; -//echo "sub(1.23, 4.56) = " . $service->sub(1.23, 4.56) . "\n"; -//echo "mul(1.23, 4.56) = " . $service->mul(1.23, 4.56) . "\n"; -echo "div(1.23, 4.56) = " . $service->div(1.23, 4.56) . "\n"; - -?> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/runwsclient.bat b/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/runwsclient.bat deleted file mode 100644 index a1482be5db..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/runwsclient.bat +++ /dev/null @@ -1,25 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -php CalculatorWSClient.php - -:end -endlocal diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Add.componentType b/cpp/sca/samples/PHPCalculator/sample.calculator/Add.componentType deleted file mode 100644 index aca0b2a6e4..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Add.componentType +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - <service name="AddService"> - <interface.cpp header="Add.h"/> - </service> - - <reference name="log_service"> - <interface.cpp header="Log.h"/> - </reference> -</componentType> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Add.h b/cpp/sca/samples/PHPCalculator/sample.calculator/Add.h deleted file mode 100644 index 4abfe9af6b..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Add.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - - -#ifndef sample_add_h -#define sample_add_h - -class Add -{ - public: - virtual float add(float num1, float num2) = 0; -}; - -#endif // sample_add_h - - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Add.php b/cpp/sca/samples/PHPCalculator/sample.calculator/Add.php deleted file mode 100644 index 4b5747e10f..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Add.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -require 'SCA/SCA.php'; - -$num1 = $_REQUEST[0]; -$num2 = $_REQUEST[1]; - -$result = $num1 + $num2; - -$log_proxy = SCA::getService("log_service"); -$log_proxy->log_message($result); - -echo $result; -?> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.componentType b/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.componentType deleted file mode 100644 index 7767c663bf..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.componentType +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - - <service name="CalculatorService"> - <interface.cpp header="Calculator.h"/> - </service> - - <reference name="add_service"> - <interface.cpp header="Add.h"/> - </reference> - - <reference name="sub_service"> - <interface.cpp header="Subtract.h"/> - </reference> - - <reference name="mul_service"> - <interface.cpp header="Multiply.h"/> - </reference> - - <reference name="div_service"> - <interface.cpp header="Divide.h"/> - </reference> - -</componentType> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.h b/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.h deleted file mode 100644 index 90e97b5319..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#ifndef sample_calculator_h -#define sample_calculator_h - -class Calculator -{ -public: - virtual float add(float arg1, float arg2) = 0; - virtual float sub(float arg1, float arg2) = 0; - virtual float mul(float arg1, float arg2) = 0; - virtual float div(float arg1, float arg2) = 0; -}; - -#endif // sample_calculator_h diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.php b/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.php deleted file mode 100644 index ce8f7899da..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.php +++ /dev/null @@ -1,97 +0,0 @@ -<?php -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# -include 'SCA/SCA.php'; - -/** - * @service - * @binding.ws - */ -class Calculator { - - /** - * @reference - * @binding.php Add.php - */ - public $add_service; - - /** - * @reference - * @binding.php Subtract.php - */ - public $sub_service; - - /** - * @reference - * @binding.php Multiply.php - */ - public $mul_service; - - /** - * @reference - * @binding.ws Divide.wsdl - */ - public $div_service; - - /** - * Addition - * - * @param float $num1 (the first number) - * @param float $num2 (the second number) - * @return float The result - */ - function add($num1, $num2) { - return $this->mul_service->add($num1, $num2); - } - - /** - * Subtraction - * - * @param float $num1 (the first number) - * @param float $num2 (the second number) - * @return float The result - */ - function sub($num1, $num2) { - return $this->mul_service->sub($num1, $num2); - } - - /** - * Multiplication - * - * @param float $num1 (the first number) - * @param float $num2 (the second number) - * @return float The result - */ - function mul($num1, $num2) { - return $this->mul_service->mul($num1, $num2); - } - - /** - * Division - * - * @param float $num1 (the first number) - * @param float $num2 (the second number) - * @return float The result - */ - function div($num1, $num2) { - return $this->div_service->div($num1, $num2); - } -} - -?> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.wsdl b/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.wsdl deleted file mode 100644 index 331b996ba2..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.wsdl +++ /dev/null @@ -1,161 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://sample/calculator" - targetNamespace="http://sample/calculator"> - <types> - <xs:schema targetNamespace="http://sample/calculator" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://sample/calculator" elementFormDefault="qualified"> - - <xs:element name="add"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="sub"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="mul"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="div"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="result"> - <xs:complexType> - <xs:sequence> - <xs:element name="data" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - </xs:schema> - </types> - - <message name="addRequestMsg"> - <part name="body" element="tns:add" /> - </message> - <message name="subRequestMsg"> - <part name="body" element="tns:sub" /> - </message> - <message name="mulRequestMsg"> - <part name="body" element="tns:mul" /> - </message> - <message name="divRequestMsg"> - <part name="body" element="tns:div" /> - </message> - - <message name="calculatorResponseMsg"> - <part name="body" element="tns:result" /> - </message> - - <portType name="Calculator"> - <operation name="add"> - <input message="tns:addRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - <operation name="sub"> - <input message="tns:subRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - <operation name="mul"> - <input message="tns:mulRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - <operation name="div"> - <input message="tns:divRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - </portType> - - <binding name="CalculatorBinding" - type="tns:Calculator"> - <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> - <operation name="add"> - <soap:operation soapAction="CalculatorService#add" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="sub"> - <soap:operation soapAction="CalculatorService#sub" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="mul"> - <soap:operation soapAction="CalculatorService#mul" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="div"> - <soap:operation soapAction="CalculatorService#div" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - </binding> - - <service name="CalculatorService"> - <port name="CalculatorPort" - binding="tns:CalculatorBinding"> - <soap:address location="http://localhost:9090/axis2/services/sample.calculator.CalculatorComponent/CalculatorService" /> - </port> - </service> -</definitions> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl.componentType b/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl.componentType deleted file mode 100644 index e2799af955..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl.componentType +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - - <service name="CalculatorService"> - <interface.cpp header="Calculator.h"/> - </service> - - <reference name="divideService"> - <interface.cpp header="Divide.h"/> - </reference> - -</componentType> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl.cpp b/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl.cpp deleted file mode 100644 index 2d880de72d..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl.cpp +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#include <stdio.h> - -#include "osoa/sca/ComponentContext.h" -#include "osoa/sca/ServiceRuntimeException.h" - -#include "CalculatorImpl.h" -#include "Divide.h" - -CalculatorImpl::CalculatorImpl() -{ -} - -CalculatorImpl::~CalculatorImpl() -{ -} - -// Calculator interface -float CalculatorImpl::add(float arg1, float arg2) -{ - float result = arg1 + arg2; - - printf("CalculatorImpl::add %f + %f = %f\n", arg1, arg2, result); - return result; -} - -float CalculatorImpl::sub(float arg1, float arg2) -{ - float result = arg1 - arg2; - printf("CalculatorImpl::sub %f - %f = %f\n", arg1, arg2, result); - return result; -} - -float CalculatorImpl::mul(float arg1, float arg2) -{ - float result = arg1 * arg2; - printf("CalculatorImpl::mul %f * %f = %f\n", arg1, arg2, result); - return result; -} - -float CalculatorImpl::div(float arg1, float arg2) -{ - float result = 0; - - // This method shows how to invoke a service on a different component from within a component - - // First, get the current ComponentContext - osoa::sca::ComponentContext myContext = osoa::sca::ComponentContext::getCurrent(); - - try - { - // Find the required service, as referenced in CalculatorImpl.componentType - Divide* divideService = (Divide*)myContext.getService("divideService"); - - // Finally, invoke the service - result = divideService->div(arg1, arg2); - - printf("CalculatorImpl::div Divide returned result: %f\n", result); - - } - catch (osoa::sca::ServiceRuntimeException& e) - { - // Print out error message and carry on - printf("CalculatorImpl::div Error whilst invoking Divide: %s", e.getMessageText()); - } - - return result; -} - - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl.h b/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl.h deleted file mode 100644 index af8a5eeab1..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#ifndef sample_calculatorimpl_h -#define sample_calculatorimpl_h - -#include "Calculator.h" - -class CalculatorImpl : public Calculator -{ -public: - CalculatorImpl(); - virtual ~CalculatorImpl(); - - // Calculator interface - virtual float add(float arg1, float arg2); - virtual float sub(float arg1, float arg2); - virtual float mul(float arg1, float arg2); - virtual float div(float arg1, float arg2); -}; - -#endif // sample_calculatorimpl_h - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.cpp b/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.cpp deleted file mode 100644 index 084e6fbf2f..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.cpp +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#include "CalculatorImpl_CalculatorService_Proxy.h" - -#include "osoa/sca/sca.h" - -extern "C" -{ - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - CalculatorImpl_CalculatorService_Proxy* CalculatorImpl_CalculatorService_Proxy_Factory(tuscany::sca::ServiceWrapper* target) - { - return new CalculatorImpl_CalculatorService_Proxy(target); - } - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - void CalculatorImpl_CalculatorService_Proxy_Destructor(void* proxy) - { - delete (CalculatorImpl_CalculatorService_Proxy*)proxy; - } -} - -CalculatorImpl_CalculatorService_Proxy::CalculatorImpl_CalculatorService_Proxy(tuscany::sca::ServiceWrapper* targ) : target(targ) -{ -} - -CalculatorImpl_CalculatorService_Proxy::~CalculatorImpl_CalculatorService_Proxy() -{ - if (target) - delete target; -} - -float CalculatorImpl_CalculatorService_Proxy::add( float arg0, float arg1) -{ - tuscany::sca::Operation operation("add"); - operation.addParameter("arg1", &arg0); - operation.addParameter("arg2", &arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return *(float*)operation.getReturnValue(); -} - -float CalculatorImpl_CalculatorService_Proxy::sub( float arg0, float arg1) -{ - tuscany::sca::Operation operation("sub"); - operation.addParameter("arg1", &arg0); - operation.addParameter("arg2", &arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return *(float*)operation.getReturnValue(); -} - -float CalculatorImpl_CalculatorService_Proxy::mul( float arg0, float arg1) -{ - tuscany::sca::Operation operation("mul"); - operation.addParameter("arg1", &arg0); - operation.addParameter("arg2", &arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return *(float*)operation.getReturnValue(); -} - -float CalculatorImpl_CalculatorService_Proxy::div( float arg0, float arg1) -{ - tuscany::sca::Operation operation("div"); - operation.addParameter("arg1", &arg0); - operation.addParameter("arg2", &arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return *(float*)operation.getReturnValue(); -} - - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.h b/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.h deleted file mode 100644 index 700a060636..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#ifndef CalculatorImpl_CalculatorService_Proxy_h -#define CalculatorImpl_CalculatorService_Proxy_h - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "Calculator.h" -#include "tuscany/sca/core/ServiceWrapper.h" - -class CalculatorImpl_CalculatorService_Proxy : public Calculator -{ -public: - CalculatorImpl_CalculatorService_Proxy(tuscany::sca::ServiceWrapper*); - virtual ~CalculatorImpl_CalculatorService_Proxy(); - virtual float add( float arg1, float arg2); - virtual float sub( float arg1, float arg2); - virtual float mul( float arg1, float arg2); - virtual float div( float arg1, float arg2); -private: - tuscany::sca::ServiceWrapper* target; -}; - -#endif // CalculatorImpl_CalculatorService_Proxy_h - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.cpp b/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.cpp deleted file mode 100644 index 82114b4d6d..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.cpp +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#include "CalculatorImpl_CalculatorService_Wrapper.h" - -#include "osoa/sca/sca.h" - - - -extern "C" -{ - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - CalculatorImpl_CalculatorService_Wrapper* CalculatorImpl_CalculatorService_Wrapper_Factory(tuscany::sca::model::Service* target) - { - return new CalculatorImpl_CalculatorService_Wrapper(target); - } -} - -CalculatorImpl_CalculatorService_Wrapper::CalculatorImpl_CalculatorService_Wrapper(tuscany::sca::model::Service* target) : tuscany::sca::cpp::CPPServiceWrapper(target) -{ - impl = (CalculatorImpl*)getImplementation(); -} - -CalculatorImpl_CalculatorService_Wrapper::~CalculatorImpl_CalculatorService_Wrapper() -{ - releaseImplementation(); -} - -void* CalculatorImpl_CalculatorService_Wrapper::newImplementation() -{ - return new CalculatorImpl; -} - -void CalculatorImpl_CalculatorService_Wrapper::deleteImplementation() -{ - delete impl; -} - -void CalculatorImpl_CalculatorService_Wrapper::invokeService(tuscany::sca::Operation& operation) -{ - const std::string& operationName = operation.getName(); - - if (operationName == "add") - { - float& p0 = *( float*)operation.getParameterValue(0); - float& p1 = *( float*)operation.getParameterValue(1); - - if(operation.getReturnValue() != NULL) - { - *(float*)operation.getReturnValue() = impl->add(p0, p1); - } - else - { - float* ret = new float; - *ret = impl->add(p0, p1); - operation.setReturnValue((const float*)ret); - } - return; - } - if (operationName == "sub") - { - float& p0 = *( float*)operation.getParameterValue(0); - float& p1 = *( float*)operation.getParameterValue(1); - - if(operation.getReturnValue() != NULL) - { - *(float*)operation.getReturnValue() = impl->sub(p0, p1); - } - else - { - float* ret = new float; - *ret = impl->sub(p0, p1); - operation.setReturnValue((const float*)ret); - } - return; - } - if (operationName == "mul") - { - float& p0 = *( float*)operation.getParameterValue(0); - float& p1 = *( float*)operation.getParameterValue(1); - - if(operation.getReturnValue() != NULL) - { - *(float*)operation.getReturnValue() = impl->mul(p0, p1); - } - else - { - float* ret = new float; - *ret = impl->mul(p0, p1); - operation.setReturnValue((const float*)ret); - } - return; - } - if (operationName == "div") - { - float& p0 = *( float*)operation.getParameterValue(0); - float& p1 = *( float*)operation.getParameterValue(1); - - if(operation.getReturnValue() != NULL) - { - *(float*)operation.getReturnValue() = impl->div(p0, p1); - } - else - { - float* ret = new float; - *ret = impl->div(p0, p1); - operation.setReturnValue((const float*)ret); - } - return; - } - - - throw osoa::sca::ServiceRuntimeException("Invalid operation"); - -} - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.h b/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.h deleted file mode 100644 index 63bae2f75c..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#ifndef CalculatorImpl_CalculatorService_Wrapper_h -#define CalculatorImpl_CalculatorService_Wrapper_h - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "CalculatorImpl.h" -#include "tuscany/sca/cpp/CPPServiceWrapper.h" - -class CalculatorImpl_CalculatorService_Wrapper : public tuscany::sca::cpp::CPPServiceWrapper -{ -public: - CalculatorImpl_CalculatorService_Wrapper(tuscany::sca::model::Service* target); - virtual ~CalculatorImpl_CalculatorService_Wrapper(); - virtual void invokeService(tuscany::sca::Operation& operation); - virtual void* newImplementation(); - virtual void deleteImplementation(); -private: - CalculatorImpl* impl; -}; - -#endif // CalculatorImpl_CalculatorService_Wrapper_h - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.cpp b/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.cpp deleted file mode 100644 index 510069c331..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#include "CalculatorImpl_divideService_Proxy.h" - -#include "osoa/sca/sca.h" - -extern "C" -{ - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - CalculatorImpl_divideService_Proxy* CalculatorImpl_divideService_Proxy_Factory(tuscany::sca::ServiceWrapper* target) - { - return new CalculatorImpl_divideService_Proxy(target); - } - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - void CalculatorImpl_divideService_Proxy_Destructor(void* proxy) - { - delete (CalculatorImpl_divideService_Proxy*)proxy; - } -} - -CalculatorImpl_divideService_Proxy::CalculatorImpl_divideService_Proxy(tuscany::sca::ServiceWrapper* targ) : target(targ) -{ -} - -CalculatorImpl_divideService_Proxy::~CalculatorImpl_divideService_Proxy() -{ - if (target) - delete target; -} - -float CalculatorImpl_divideService_Proxy::div( float arg0, float arg1) -{ - tuscany::sca::Operation operation("div"); - operation.addParameter("num1", &arg0); - operation.addParameter("num2", &arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return *(float*)operation.getReturnValue(); -} - - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.h b/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.h deleted file mode 100644 index 0459e70f33..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#ifndef CalculatorImpl_divideService_Proxy_h -#define CalculatorImpl_divideService_Proxy_h - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "Divide.h" -#include "tuscany/sca/core/ServiceWrapper.h" - -class CalculatorImpl_divideService_Proxy : public Divide -{ -public: - CalculatorImpl_divideService_Proxy(tuscany::sca::ServiceWrapper*); - virtual ~CalculatorImpl_divideService_Proxy(); - virtual float div( float num1, float num2); -private: - tuscany::sca::ServiceWrapper* target; -}; - -#endif // CalculatorImpl_divideService_Proxy_h - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.componentType b/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.componentType deleted file mode 100644 index 428d19f8bc..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.componentType +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - <service name="DivideService"> - <interface.cpp header="Divide.h"/> - </service> - - <reference name="cppDivideService"> - <interface.cpp header="Divide.h"/> - </reference> - - <reference name="add_service"> - <interface.cpp header="Add.h"/> - </reference> - - <reference name="subtract_service"> - <interface.cpp header="Subtract.h"/> - </reference> - - <reference name="multiply_service"> - <interface.cpp header="Multiply.h"/> - </reference> -</componentType> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.h b/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.h deleted file mode 100644 index c2ab3b816c..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - - -#ifndef sample_divide_h -#define sample_divide_h - -class Divide -{ - public: - virtual float div(float num1, float num2) = 0; -}; - -#endif // sample_divide_h - - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.php b/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.php deleted file mode 100644 index c2e9adda70..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.php +++ /dev/null @@ -1,71 +0,0 @@ -<?php -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -/** - * @service - * @binding.ws - */ -class Divide { - - /** - * @reference - * @binding.tuscany cppDivideService - */ - public $another_divide; - - /** - * @reference - * @binding.tuscany add_service - */ - public $add_service; - - /** - * @reference - * @binding.tuscany subtract_service - */ - public $subtract_service; - - /** - * @reference - * @binding.tuscany multiply_service - */ - public $multiply_service; - - /** - * Division - * - * @param float $num1 (the first number) - * @param float $num2 (the second number) - * @return float The result - */ - function div($num1, $num2) { - - //$this->add_service->add(12.0, 27.0); - //$this->subtract_service->sub(12.0, 27.0); - $this->multiply_service->mul(12.0, 27.0); - - $result = $this->another_divide->div($num1, $num2); - - return $result; - } - -} - -?> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl.componentType b/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl.componentType deleted file mode 100644 index d7369e3ff0..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl.componentType +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - - <service name="DivideService"> - <interface.cpp header="Divide.h"/> - </service> - -</componentType> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl.cpp b/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl.cpp deleted file mode 100644 index 88b9065171..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - -#include <stdio.h> - -#include "DivideImpl.h" - -DivideImpl::DivideImpl() -{ -} - -DivideImpl::~DivideImpl() -{ -} - -// Divide interface -float DivideImpl::div(float arg1, float arg2) -{ - if(arg2 == 0.0) - { - printf("DivideImpl::div %f / %f !! Cannot divide by zero, so returning 0\n", arg1, arg2); - return 0; - } - - float result = arg1 / arg2; - printf("DivideImpl::div %f / %f = %f\n", arg1, arg2, result); - return result; -} - - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl.h b/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl.h deleted file mode 100644 index 42cf47b1d4..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - - -#ifndef sample_divideimpl_h -#define sample_divideimpl_h - -#include "Divide.h" - -class DivideImpl : public Divide -{ -public: - DivideImpl(); - virtual ~DivideImpl(); - - // Divide interface - virtual float div(float arg1, float arg2); -}; - -#endif // sample_divideimpl_h - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.cpp b/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.cpp deleted file mode 100644 index e8dbeb2e0d..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#include "DivideImpl_DivideService_Proxy.h" - -#include "osoa/sca/sca.h" - -extern "C" -{ - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - DivideImpl_DivideService_Proxy* DivideImpl_DivideService_Proxy_Factory(tuscany::sca::ServiceWrapper* target) - { - return new DivideImpl_DivideService_Proxy(target); - } - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - void DivideImpl_DivideService_Proxy_Destructor(void* proxy) - { - delete (DivideImpl_DivideService_Proxy*)proxy; - } -} - -DivideImpl_DivideService_Proxy::DivideImpl_DivideService_Proxy(tuscany::sca::ServiceWrapper* targ) : target(targ) -{ -} - -DivideImpl_DivideService_Proxy::~DivideImpl_DivideService_Proxy() -{ - if (target) - delete target; -} - -float DivideImpl_DivideService_Proxy::div( float arg0, float arg1) -{ - tuscany::sca::Operation operation("div"); - operation.addParameter("num1", &arg0); - operation.addParameter("num2", &arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return *(float*)operation.getReturnValue(); -} - - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.h b/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.h deleted file mode 100644 index d66cde1c06..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#ifndef DivideImpl_DivideService_Proxy_h -#define DivideImpl_DivideService_Proxy_h - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "Divide.h" -#include "tuscany/sca/core/ServiceWrapper.h" - -class DivideImpl_DivideService_Proxy : public Divide -{ -public: - DivideImpl_DivideService_Proxy(tuscany::sca::ServiceWrapper*); - virtual ~DivideImpl_DivideService_Proxy(); - virtual float div( float num1, float num2); -private: - tuscany::sca::ServiceWrapper* target; -}; - -#endif // DivideImpl_DivideService_Proxy_h - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.cpp b/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.cpp deleted file mode 100644 index 9c6f2101fe..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.cpp +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#include "DivideImpl_DivideService_Wrapper.h" - -#include "osoa/sca/sca.h" - - - -extern "C" -{ - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - DivideImpl_DivideService_Wrapper* DivideImpl_DivideService_Wrapper_Factory(tuscany::sca::model::Service* target) - { - return new DivideImpl_DivideService_Wrapper(target); - } -} - -DivideImpl_DivideService_Wrapper::DivideImpl_DivideService_Wrapper(tuscany::sca::model::Service* target) : tuscany::sca::cpp::CPPServiceWrapper(target) -{ - impl = (DivideImpl*)getImplementation(); -} - -DivideImpl_DivideService_Wrapper::~DivideImpl_DivideService_Wrapper() -{ - releaseImplementation(); -} - -void* DivideImpl_DivideService_Wrapper::newImplementation() -{ - return new DivideImpl; -} - -void DivideImpl_DivideService_Wrapper::deleteImplementation() -{ - delete impl; -} - -void DivideImpl_DivideService_Wrapper::invokeService(tuscany::sca::Operation& operation) -{ - const std::string& operationName = operation.getName(); - - if (operationName == "div") - { - float& p0 = *( float*)operation.getParameterValue(0); - float& p1 = *( float*)operation.getParameterValue(1); - - if(operation.getReturnValue() != NULL) - { - *(float*)operation.getReturnValue() = impl->div(p0, p1); - } - else - { - float* ret = new float; - *ret = impl->div(p0, p1); - operation.setReturnValue((const float*)ret); - } - return; - } - - - throw osoa::sca::ServiceRuntimeException("Invalid operation"); - -} - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.h b/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.h deleted file mode 100644 index 5cd10f5188..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#ifndef DivideImpl_DivideService_Wrapper_h -#define DivideImpl_DivideService_Wrapper_h - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "DivideImpl.h" -#include "tuscany/sca/cpp/CPPServiceWrapper.h" - -class DivideImpl_DivideService_Wrapper : public tuscany::sca::cpp::CPPServiceWrapper -{ -public: - DivideImpl_DivideService_Wrapper(tuscany::sca::model::Service* target); - virtual ~DivideImpl_DivideService_Wrapper(); - virtual void invokeService(tuscany::sca::Operation& operation); - virtual void* newImplementation(); - virtual void deleteImplementation(); -private: - DivideImpl* impl; -}; - -#endif // DivideImpl_DivideService_Wrapper_h - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Log.componentType b/cpp/sca/samples/PHPCalculator/sample.calculator/Log.componentType deleted file mode 100644 index 0b4423300d..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Log.componentType +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - <service name="LogService"> - <interface.cpp header="Log.h"/> - </service> -</componentType> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Log.h b/cpp/sca/samples/PHPCalculator/sample.calculator/Log.h deleted file mode 100644 index c21da1bddf..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Log.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - - -#ifndef sample_log_h -#define sample_log_h - -class Log -{ - public: - virtual void div(char *message) = 0; -}; - -#endif // sample_log_h - - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Log.php b/cpp/sca/samples/PHPCalculator/sample.calculator/Log.php deleted file mode 100644 index 0a955f36d3..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Log.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -/** - * @service - */ -class Log { - - /** - * Log - * - * @param string $message (the message to be logged) - */ - function log_message($message) { - SCA::$logger->toLog('>>> ' . $message); - } -} - -?> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Makefile.am b/cpp/sca/samples/PHPCalculator/sample.calculator/Makefile.am deleted file mode 100644 index 84567a5add..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Makefile.am +++ /dev/null @@ -1,56 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/PHPCalculator/deploy -compositedir=$(deploydir)/sample.calculator - -BUILT_SOURCES = scagen - -noinst_HEADERS = *.h - -scagen: - java -jar $(TUSCANY_SCACPP)/bin/scagen.jar -dir . -output . - -composite_SCRIPTS = runwsserver.sh - -composite_LTLIBRARIES = libCalculator.la -composite_DATA = *.composite *.componentType *.wsdl *.php -EXTRA_DIST = *.composite *.componentType *.wsdl *.php runwsserver.sh - -dist_libCalculator_la_SOURCES = \ -CalculatorImpl.cpp \ -DivideImpl.cpp - -nodist_libCalculator_la_SOURCES = \ -CalculatorImpl_CalculatorService_Proxy.cpp \ -CalculatorImpl_CalculatorService_Wrapper.cpp \ -CalculatorImpl_divideService_Proxy.cpp \ -DivideImpl_DivideService_Proxy.cpp \ -DivideImpl_DivideService_Wrapper.cpp - - -libCalculator_la_LIBADD = \ --L${TUSCANY_SCACPP}/lib \ - -ltuscany_sca \ --L${TUSCANY_SCACPP}/extensions/cpp/lib \ - -ltuscany_sca_cpp - -INCLUDES = \ --I$(TUSCANY_SCACPP)/extensions/cpp/include \ --I$(TUSCANY_SCACPP)/include \ --I${TUSCANY_SDOCPP}/include - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.componentType b/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.componentType deleted file mode 100644 index af1631518a..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.componentType +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - <service name="MultiplyService"> - <interface.cpp header="Multiply.h"/> - </service> - <reference name="log_service"> - <interface.cpp header="Log.h"/> - </reference> -</componentType> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.h b/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.h deleted file mode 100644 index 94de825f62..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - - -#ifndef sample_multiply_h -#define sample_multiply_h - -class Multiply -{ - public: - virtual float mul(float num1, float num2) = 0; -}; - -#endif // sample_multiply_h - - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.php b/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.php deleted file mode 100644 index 8ffe02675d..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# -require 'SCA/SCA.php'; - -class Multiply { - function mul($num1, $num2) { - $result = $num1 * $num2; - - $log_proxy = SCA::getService("log_service"); - $log_proxy->log_message($result); - - return $result; - } -} - -?> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.componentType b/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.componentType deleted file mode 100644 index 35dab8bb9b..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.componentType +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - <service name="SubtractService"> - <interface.cpp header="Subtract.h"/> - </service> - - <reference name="log_service"> - <interface.cpp header="Log.h"/> - </reference> -</componentType> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.h b/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.h deleted file mode 100644 index a50b79ccc6..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* $Rev$ $Date$ */ - - -#ifndef sample_subtract_h -#define sample_subtract_h - -class Subtract -{ - public: - virtual float sub(float num1, float num2) = 0; -}; - -#endif // sample_subtract_h - - diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.php b/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.php deleted file mode 100644 index 8d3a1b3ddf..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# -require 'SCA/SCA.php'; - -function sub($num1, $num2){ - $result = $num1 - $num2; - - $log_proxy = SCA::getService("log_service"); - $log_proxy->log_message($result); - - return $result; -} -?> diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/runwsserver.sh b/cpp/sca/samples/PHPCalculator/sample.calculator/runwsserver.sh deleted file mode 100755 index 069d734fea..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/runwsserver.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ - -cd $AXIS2C_HOME/bin -./axis2_http_server diff --git a/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite b/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite deleted file mode 100644 index 09b7070fb8..0000000000 --- a/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite +++ /dev/null @@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.calculator"> -<!-- - <service name="CalculatorService"> - <interface.wsdl interface="http://sample/calculator#wsdl.interface(Calculator)"/> - <binding.ws/> - <reference>CalculatorCPPComponent</reference> - </service> ---> - - <component name="CalculatorCPPComponent"> - <implementation.cpp library="Calculator" header="CalculatorImpl.h"/> - <reference name="divideService">DivideComponent/DivideService</reference> - </component> - - <component name="CalculatorPHPComponent"> - <implementation.php module="Calculator" scope="composite"/> - <reference name="add_service">AddComponent</reference> - <reference name="sub_service">SubtractComponent</reference> - <reference name="mul_service">MultiplyComponent</reference> - <reference name="div_service">DivideComponent</reference> - </component> - - <component name="AddComponent"> - <implementation.php module="Add" scope="composite"/> - <reference name="log_service">LogComponent</reference> - </component> - - <component name="SubtractComponent"> - <implementation.php module="Subtract" scope="composite"/> - <reference name="log_service">LogComponent</reference> - </component> - - <component name="MultiplyComponent"> - <implementation.php module="Multiply" class="Multiply" scope="composite"/> - <reference name="log_service">LogComponent</reference> - </component> - - <component name="DivideComponent"> - <implementation.php module="Divide" class="Divide" scope="composite"/> - <reference name="cppDivideService">DivideCPPComponent/DivideService</reference> - <reference name="add_service">AddComponent</reference> - <reference name="multiply_service">MultiplyComponent</reference> - <reference name="subtract_service">SubtractComponent</reference> - <reference name="add_service">AddComponent</reference> - </component> - - <component name="DivideCPPComponent"> - <implementation.cpp library="Calculator" header="DivideImpl.h"/> - </component> - - <component name="LogComponent"> - <implementation.php module="Log" class="Log" scope="composite"/> - </component> - - - - - -</composite> - diff --git a/cpp/sca/samples/PythonCalculator/Makefile.am b/cpp/sca/samples/PythonCalculator/Makefile.am deleted file mode 100644 index 21952e3df4..0000000000 --- a/cpp/sca/samples/PythonCalculator/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/PythonCalculator/deploy -SUBDIRS = sample.calculator sample.calculator.client -EXTRA_DIST = *.composite README.html -deploy_DATA = *.composite diff --git a/cpp/sca/samples/PythonCalculator/README b/cpp/sca/samples/PythonCalculator/README deleted file mode 100644 index 670f561dc1..0000000000 --- a/cpp/sca/samples/PythonCalculator/README +++ /dev/null @@ -1,20 +0,0 @@ -Tuscany SCA for C++ Samples - Calculator Sample -=============================================== - -This is a very simple sample to show how an SCA composite can wire together -two components to implement a Calculator service and expose that service as -a Web Service. - -There are two sub projects in this workspace: - - sample.calculator - This contains the source code and SCDL artifacts for the SCA Calculator. - composite implementing the sample Calculator. - - - sample.calculator.client - A sample client which does a local call to the Calculator service. - -Additionally, there is the sample.calculator.app.composite file. This -describes the configuration of the SCA Calculator composite deployed to the -SCA runtime. - -See the README.html file for instructions to build and run this sample diff --git a/cpp/sca/samples/PythonCalculator/README.html b/cpp/sca/samples/PythonCalculator/README.html deleted file mode 100644 index 3b9f72864e..0000000000 --- a/cpp/sca/samples/PythonCalculator/README.html +++ /dev/null @@ -1,191 +0,0 @@ - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../../doc/css/maven-base.css"); -@import url("../../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - Python Calculator Sample</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany SCA Native Samples - Python Calculator Sample</H1> - - <P>This is a very simple sample to show how an SCA composite can wire - together two Python components to implement a Calculator service and invoke - the service via a local client. - </P> - <P>See the <A HREF="../../doc/PythonExtension.html">Python extension</A> - documentation for information about building the Tuscany Python extension - and using Python in SCA composites. - </P> - <P>There are two sub projects in this workspace:</P> - <UL> - <LI>sample.calculator<BR/> - This contains the Python scripts and SCDL artifacts for the SCA Calculator - composite implementing the sample Calculator. - </LI> - <LI>sample.calculator.client<BR/> - A sample client which does a local call to the Calculator service. - </LI> - </UL> - <P>Additionally, there is the sample.calculator.app.composite file. This - describes the configuration of the SCA Calculator composite deployed to the SCA - runtime. - </P> - - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the Python samples on Linux and Mac OS X</A></LI> - <LI><A HREF="#linuxrun">Running the Python Calculator sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#winbld">Building the Python Calculator sample on Windows</A></LI> - <LI><A HREF="#winrun">Running the Python Calculator sample on Windows</A></LI> - <LI><A HREF="#help">Getting help</A></LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the Python samples on Linux and Mac OS X</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the samples on Linux and Mac OS X</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL></LI> - </LI> - <LI>As the Python Calculator sample is based on Python scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the Python samples only with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure --enable-python --enable-cpp=no --prefix=$TUSCANY_SCACPP/samples</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide the --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/PythonCalculator</LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the Python Calculator sample on Linux and Mac OS X</H2></A> - <OL> - <LI>The Python Calculator sample requires the following extension: - <UL> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - </UL> - Please follow the documentation to ensure you have this extension built and installed - on your system - </LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/PythonCalculator/deploy/sample.calculator.client</LI> - <LI>./runclient.sh</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winbld"><H2>Building the Python Calculator sample on Windows</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>\samples - go directly to <A HREF="#winrun">Running the samples on Windows</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL></LI> - </LI> - <LI>As this sample is based on Python scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\PythonCalculator</LI> - <LI>deploy.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winrun"><H2>Running the Python Calculator sample on Windows</H2></A> - <OL> - <LI>The Python Calculator sample requires the following extension: - <UL> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - </UL> - Please follow the documentation to ensure you have this extension built and installed - on your system - </LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\PythonCalculator\deploy\sample.calculator.client</LI> - <LI>runclient.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> - diff --git a/cpp/sca/samples/PythonCalculator/sample.calculator.app.composite b/cpp/sca/samples/PythonCalculator/sample.calculator.app.composite deleted file mode 100644 index ea4e3e118d..0000000000 --- a/cpp/sca/samples/PythonCalculator/sample.calculator.app.composite +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.calculator.app"> - - <component name="sample.calculator.CalculatorComponent"> - <implementation.composite name="sample.calculator" /> - </component> - -</composite> diff --git a/cpp/sca/samples/PythonCalculator/sample.calculator.client/Makefile.am b/cpp/sca/samples/PythonCalculator/sample.calculator.client/Makefile.am deleted file mode 100644 index df1187aab1..0000000000 --- a/cpp/sca/samples/PythonCalculator/sample.calculator.client/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/PythonCalculator/deploy -clientdir=$(deploydir)/sample.calculator.client - -client_DATA = *.py -client_SCRIPTS = runclient.sh -EXTRA_DIST = runclient.sh *.py diff --git a/cpp/sca/samples/PythonCalculator/sample.calculator.client/calculator_client.py b/cpp/sca/samples/PythonCalculator/sample.calculator.client/calculator_client.py deleted file mode 100644 index 58d6f45606..0000000000 --- a/cpp/sca/samples/PythonCalculator/sample.calculator.client/calculator_client.py +++ /dev/null @@ -1,50 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# -# -# -# This Python code is a simple sample that provides a Python -# client for the Calculator sample - - -import sys -import sca - -op = sys.argv[1] -val1 = sys.argv[2] -val2 = sys.argv[3] - -# Locate the calculator service -calc = sca.locateservice("CalculatorComponent") - -# Invoke the calculator operations -if op == 'add': - result = calc.add(val1, val2) - -elif op == 'sub': - result = calc.sub(val1, val2) - -elif op == 'mul': - result = calc.mul(val1, val2) - -elif op == 'div': - result = calc.div(val1, val2) - - -print "calculator_client: ",op,"(",val1,",",val2,") = ",result - diff --git a/cpp/sca/samples/PythonCalculator/sample.calculator.client/runclient.bat b/cpp/sca/samples/PythonCalculator/sample.calculator.client/runclient.bat deleted file mode 100644 index 206b1e5a59..0000000000 --- a/cpp/sca/samples/PythonCalculator/sample.calculator.client/runclient.bat +++ /dev/null @@ -1,45 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo using SDO installed at %TUSCANY_SDOCPP% - -set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SCACPP%\extensions\python\bin;%TUSCANY_SDOCPP%\bin;%PATH% -set PYTHONPATH=%TUSCANY_SCACPP%\extensions\python\bin - -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ -set TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorComponent -set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd %TUSCANY_SCACPP_ROOT%\sample.calculator.client -python calculator_client.py div 5 2 - -:end -endlocal diff --git a/cpp/sca/samples/PythonCalculator/sample.calculator.client/runclient.sh b/cpp/sca/samples/PythonCalculator/sample.calculator.client/runclient.sh deleted file mode 100755 index d500d3d132..0000000000 --- a/cpp/sca/samples/PythonCalculator/sample.calculator.client/runclient.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$PYTHON_LIB != x ]; then -echo "Using Python library installed at $PYTHON_LIB" -export LD_LIBRARY_PATH=$PYTHON_LIB:$LD_LIBRARY_PATH -export PATH=$PYTHON_LIB/../bin:$PATH -fi - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SCACPP/extensions/python/lib:$TUSCANY_SDOCPP/lib:$LD_LIBRARY_PATH -export PYTHONPATH=$TUSCANY_SCACPP/extensions/python/lib:$PYTHONPATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorComponent -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd $TUSCANY_SCACPP_ROOT/sample.calculator.client -python calculator_client.py div 5 2 diff --git a/cpp/sca/samples/PythonCalculator/sample.calculator/Calculator.wsdl b/cpp/sca/samples/PythonCalculator/sample.calculator/Calculator.wsdl deleted file mode 100644 index 331b996ba2..0000000000 --- a/cpp/sca/samples/PythonCalculator/sample.calculator/Calculator.wsdl +++ /dev/null @@ -1,161 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://sample/calculator" - targetNamespace="http://sample/calculator"> - <types> - <xs:schema targetNamespace="http://sample/calculator" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://sample/calculator" elementFormDefault="qualified"> - - <xs:element name="add"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="sub"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="mul"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="div"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="result"> - <xs:complexType> - <xs:sequence> - <xs:element name="data" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - </xs:schema> - </types> - - <message name="addRequestMsg"> - <part name="body" element="tns:add" /> - </message> - <message name="subRequestMsg"> - <part name="body" element="tns:sub" /> - </message> - <message name="mulRequestMsg"> - <part name="body" element="tns:mul" /> - </message> - <message name="divRequestMsg"> - <part name="body" element="tns:div" /> - </message> - - <message name="calculatorResponseMsg"> - <part name="body" element="tns:result" /> - </message> - - <portType name="Calculator"> - <operation name="add"> - <input message="tns:addRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - <operation name="sub"> - <input message="tns:subRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - <operation name="mul"> - <input message="tns:mulRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - <operation name="div"> - <input message="tns:divRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - </portType> - - <binding name="CalculatorBinding" - type="tns:Calculator"> - <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> - <operation name="add"> - <soap:operation soapAction="CalculatorService#add" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="sub"> - <soap:operation soapAction="CalculatorService#sub" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="mul"> - <soap:operation soapAction="CalculatorService#mul" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="div"> - <soap:operation soapAction="CalculatorService#div" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - </binding> - - <service name="CalculatorService"> - <port name="CalculatorPort" - binding="tns:CalculatorBinding"> - <soap:address location="http://localhost:9090/axis2/services/sample.calculator.CalculatorComponent/CalculatorService" /> - </port> - </service> -</definitions> diff --git a/cpp/sca/samples/PythonCalculator/sample.calculator/CalculatorImpl.py b/cpp/sca/samples/PythonCalculator/sample.calculator/CalculatorImpl.py deleted file mode 100644 index 86dbef9e4d..0000000000 --- a/cpp/sca/samples/PythonCalculator/sample.calculator/CalculatorImpl.py +++ /dev/null @@ -1,56 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# -# -# -# This Python code is a simple sample that provides a Python implementation of -# the Calculator sample -# - - -# The module-level add function -def add(val1, val2): - result = float(val1) + float(val2) - print "Python - CalculatorImpl.add " + str(val1) + " + " + str(val2) + " = " + str(result) - return result - -# The module-level sub function -def sub(val1, val2): - result = float(val1) - float(val2) - print "Python - CalculatorImpl.sub " + str(val1) + " - " + str(val2) + " = " + str(result) - return result - -# The module-level mul function -def mul(val1, val2): - result = float(val1) * float(val2) - print "Python - CalculatorImpl.mul " + str(val1) + " * " + str(val2) + " = " + str(result) - return result - -# The module-level div function -def div(val1, val2): - - - print "Python - CalculatorImpl.div calling divideService to determine " + str(val1) + " / " + str(val2) - - # Use the divideService reference - result = divideService.divide(val1, val2) - - print "Python - CalculatorImpl.div divideService returned " + str(result) - - return result - diff --git a/cpp/sca/samples/PythonCalculator/sample.calculator/DivideImpl.py b/cpp/sca/samples/PythonCalculator/sample.calculator/DivideImpl.py deleted file mode 100644 index 3921731de6..0000000000 --- a/cpp/sca/samples/PythonCalculator/sample.calculator/DivideImpl.py +++ /dev/null @@ -1,65 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# -# -# -# This Python code is a simple sample that provides a Python implementation of -# the Divide Service used in the Calculator sample -# -# Either use the divide function in the DivideClass class (using classes allows -# composite scoping to be used) -# e.g. in CalculatorComposite.composite use the line: -# <implementation.python module="DivideImpl" class="DivideClass"/> -# -# Or just use the module-level divide function -# e.g. in CalculatorComposite.composite use the line: -# <implementation.python module="DivideImpl" /> -# - - -class DivideClass: - "A class to handle dividing" - - def __init__(self): - print "Python - DivideImpl.DivideClass constructor" - - # The class-level divide function - def divide(self, val1, val2): - result = float(val1) / float(val2) - - print "Python - DivideImpl.DivideClass.divide " + str( val1 ) + " / " + str(val2) + " = " + str(result) - - # Use the doRounding property - if doRounding: - result = round(result) - print "Python - DivideImpl.DivideClass.divide is rounding the result to " + str(result) - - return result - -# The module-level divide function -def divide(val1, val2): - result = float(val1) / float(val2) - print "Python - DivideImpl.divide " + str(val1) + " / " + str(val2) + " = " + str(result) - - # Use the doRounding property - if doRounding: - result = round(result) - print "Python - DivideImpl.divide is rounding the result to " + str(result) - - return result - diff --git a/cpp/sca/samples/PythonCalculator/sample.calculator/Makefile.am b/cpp/sca/samples/PythonCalculator/sample.calculator/Makefile.am deleted file mode 100644 index ec7cf8a8ad..0000000000 --- a/cpp/sca/samples/PythonCalculator/sample.calculator/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/PythonCalculator/deploy -compositedir=$(deploydir)/sample.calculator - -composite_DATA = *.composite *.wsdl *.py - -EXTRA_DIST = *.composite *.wsdl *.py diff --git a/cpp/sca/samples/PythonCalculator/sample.calculator/sample.calculator.composite b/cpp/sca/samples/PythonCalculator/sample.calculator/sample.calculator.composite deleted file mode 100644 index 7f2221b696..0000000000 --- a/cpp/sca/samples/PythonCalculator/sample.calculator/sample.calculator.composite +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.calculator"> - - <component name="CalculatorComponent"> - <implementation.python module="CalculatorImpl" scope="composite"/> - <reference name="divideService">DivideComponent</reference> - </component> - - <component name="DivideComponent"> - <implementation.python module="DivideImpl" scope="composite"/> - <property name="doRounding">true</property> - </component> - -</composite> diff --git a/cpp/sca/samples/PythonWeatherForecast/Makefile.am b/cpp/sca/samples/PythonWeatherForecast/Makefile.am deleted file mode 100644 index 6b2d218134..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/PythonWeatherForecast/deploy -SUBDIRS = sample.weather sample.weather.client -EXTRA_DIST = *.composite README.html -deploy_DATA = *.composite diff --git a/cpp/sca/samples/PythonWeatherForecast/README b/cpp/sca/samples/PythonWeatherForecast/README deleted file mode 100644 index c590973f5f..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/README +++ /dev/null @@ -1,20 +0,0 @@ -Tuscany SCA for C++ Samples - Weather Sample -============================================ - -This is a very simple sample to show how an SCA composite can wire together -two components to implement calls to a Weather Forecast web service - -There are three sub projects in this workspace: - - sample.weather - This contains the source code and SCDL artifacts for the SCA Weather - composite implementing the calls to the Weather web services. - - - sample.weather.client - A sample client which does a local call to the SCA Weather service. - - -Additionally, there is the sample.weather.app.composite file. This -describes the configuration of the SCA Weather composite deployed to the -SCA runtime. - -See the README.html file for instructions to build and run this sample diff --git a/cpp/sca/samples/PythonWeatherForecast/README.html b/cpp/sca/samples/PythonWeatherForecast/README.html deleted file mode 100644 index c52cb6ec86..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/README.html +++ /dev/null @@ -1,200 +0,0 @@ - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../../doc/css/maven-base.css"); -@import url("../../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - PythonWeatherForecast Sample</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany SCA Native Samples - PythonWeatherForecast Sample</H1> - - <P>This is a very simple sample to show how an SCA composite can wire - together two components to implement calls to a Weather Forecast web service. - </P> - <P>The PythonWeatherForecast sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Service Reference Extension</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </P> - <P>There are two sub projects in this workspace:</P> - <UL> - <LI>sample.weather<BR/> - This contains the source code and SCDL artifacts for the SCA Weather - composite implementing the calls to the Weather web services. - </LI> - <LI>sample.weather.client<BR/> - A sample client which does a local call to the SCA Weather service. - </LI> - </UL> - <P>Additionally, there is the sample.weather.app.composite file. This - describes the configuration of the SCA Weather composite deployed to the SCA - runtime. - </P> - - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the PythonWeatherForecast sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#linuxrun">Running the PythonWeatherForecast sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#winbld">Building the PythonWeatherForecast sample on Windows</A></LI> - <LI><A HREF="#winrun">Running the PythonWeatherForecast sample on Windows</A></LI> - <LI><A HREF="#help">Getting help</A></LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the PythonWeatherForecast sample on Linux and Mac OS X</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the samples on Linux and Mac OS X</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>As the PythonWeatherForecast sample is based on Python scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the Python samples only with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure --enable-python --enable-cpp=no --prefix=$TUSCANY_SCACPP/samples</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide the --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/PythonWeatherForecast</LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the PythonWeatherForecast sample on Linux and Mac OS X</H2></A> - <OL> - <LI>The PythonWeatherForecast sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Service Reference Extension</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to Axis2/C version 0.96></LI> - <LI>PYTHON_LIB=<path to the Python library><BR/> - Note: If you are using a default installation of Python 2.5 this is usually /usr/lib</LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/PythonWeatherForecast/deploy/sample.weather.client</LI> - <LI>./runclient.sh</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winbld"><H2>Building the PythonWeatherForecast sample on Windows</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>\samples - go directly to <A HREF="#winrun">Running the samples on Windows</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>As this sample is based on Python scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\PythonWeatherForecast</LI> - <LI>deploy.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winrun"><H2>Running the PythonWeatherForecast sample on Windows</H2></A> - <OL> - <LI>The PythonWeatherForecast sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Service Reference Extension</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to Axis2/C version 0.96></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\PythonWeatherForecast\deploy\sample.weather.client</LI> - <LI>runclient.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> - diff --git a/cpp/sca/samples/PythonWeatherForecast/sample.weather.app.composite b/cpp/sca/samples/PythonWeatherForecast/sample.weather.app.composite deleted file mode 100644 index 522a2fc0c8..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/sample.weather.app.composite +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.weather.app"> - - <component name="sample.weather.WeatherForecastComponent"> - <implementation.composite name="sample.weather" /> - </component> - -</composite> diff --git a/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/Makefile.am b/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/Makefile.am deleted file mode 100644 index 8c4781759e..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/PythonWeatherForecast/deploy -clientdir=$(deploydir)/sample.weather.client - -client_DATA = *.py -client_SCRIPTS = runclient.sh -EXTRA_DIST = runclient.sh *.py diff --git a/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/runclient.bat b/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/runclient.bat deleted file mode 100644 index 93c044ed82..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/runclient.bat +++ /dev/null @@ -1,50 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo using SDO installed at %TUSCANY_SDOCPP% - -if "%AXIS2C_HOME%" == "" ( -echo "AXIS2C_HOME not set" -goto end -) -echo using Axis2C installed at %AXIS2C_HOME% - -set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SCACPP%\extensions\python\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH% -set PYTHONPATH=%TUSCANY_SCACPP%\extensions\python\bin - -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ -set TUSCANY_SCACPP_COMPONENT=sample.weather.WeatherForecastComponent - -cd %TUSCANY_SCACPP_ROOT%\sample.weather.client -python weather_forecast_client.py - -:end -endlocal diff --git a/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/runclient.sh b/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/runclient.sh deleted file mode 100755 index e6ec73b209..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/runclient.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -if [ x$PYTHON_LIB != x ]; then -echo "Using Python library installed at $PYTHON_LIB" -export LD_LIBRARY_PATH=$PYTHON_LIB:$LD_LIBRARY_PATH -export PATH=$PYTHON_LIB/../bin:$PATH -fi - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SCACPP/extensions/python/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH -export PYTHONPATH=$TUSCANY_SCACPP/extensions/python/lib:$PYTHONPATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_COMPONENT=sample.weather.WeatherForecastComponent - -cd $TUSCANY_SCACPP_ROOT/sample.weather.client -python weather_forecast_client.py - diff --git a/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/weather_forecast_client.py b/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/weather_forecast_client.py deleted file mode 100644 index 5de99fcf8e..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/sample.weather.client/weather_forecast_client.py +++ /dev/null @@ -1,49 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# -# -# -# This Python code is a simple sample that provides a Python -# client for the WeatherForecast sample - - -import sys -import sca -import xml.etree.ElementTree - - - -# The main script: - -# Locate the Weather service -weatherService = sca.locateservice("WeatherComponent") - -place = "San Jose" -print "\nFinding Weather Forecast for", place -weatherText = weatherService.getForecastByPlaceName(place) -print weatherText - -zip = 90210 -print "\nFinding Weather Forecast for zip code", zip -weatherText = weatherService.getForecastByZipCode(zip) -print weatherText - - - - - diff --git a/cpp/sca/samples/PythonWeatherForecast/sample.weather/Makefile.am b/cpp/sca/samples/PythonWeatherForecast/sample.weather/Makefile.am deleted file mode 100644 index d0450ef707..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/sample.weather/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/PythonWeatherForecast/deploy -compositedir=$(deploydir)/sample.weather - -composite_DATA = *.composite *.wsdl *.py -EXTRA_DIST = *.composite *.wsdl *.py - diff --git a/cpp/sca/samples/PythonWeatherForecast/sample.weather/WeatherForecast.wsdl b/cpp/sca/samples/PythonWeatherForecast/sample.weather/WeatherForecast.wsdl deleted file mode 100644 index ec39e2287a..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/sample.weather/WeatherForecast.wsdl +++ /dev/null @@ -1,133 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://www.webservicex.net" - targetNamespace="http://www.webservicex.net" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - <wsdl:types> - <xsd:schema elementFormDefault="qualified" targetNamespace="http://www.webservicex.net"> - <xsd:element name="GetWeatherByZipCode"> - <xsd:complexType> - <xsd:sequence> - <xsd:element minOccurs="0" maxOccurs="1" name="ZipCode" type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="GetWeatherByZipCodeResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element minOccurs="1" maxOccurs="1" name="GetWeatherByZipCodeResult" type="tns:WeatherForecasts" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:complexType name="WeatherForecasts"> - <xsd:sequence> - <xsd:element minOccurs="1" maxOccurs="1" name="Latitude" type="xsd:float" /> - <xsd:element minOccurs="1" maxOccurs="1" name="Longitude" type="xsd:float" /> - <xsd:element minOccurs="1" maxOccurs="1" name="AllocationFactor" type="xsd:float" /> - <xsd:element minOccurs="0" maxOccurs="1" name="FipsCode" type="xsd:string" /> - <xsd:element minOccurs="0" maxOccurs="1" name="PlaceName" type="xsd:string" /> - <xsd:element minOccurs="0" maxOccurs="1" name="StateCode" type="xsd:string" /> - <xsd:element minOccurs="0" maxOccurs="1" name="Status" type="xsd:string" /> - <xsd:element minOccurs="0" maxOccurs="1" name="Details" type="tns:ArrayOfWeatherData" /> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="ArrayOfWeatherData"> - <xsd:sequence> - <xsd:element minOccurs="0" maxOccurs="unbounded" name="WeatherData" type="tns:WeatherData" /> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="WeatherData"> - <xsd:sequence> - <xsd:element minOccurs="0" maxOccurs="1" name="Day" type="xsd:string" /> - <xsd:element minOccurs="0" maxOccurs="1" name="WeatherImage" type="xsd:string" /> - <xsd:element minOccurs="0" maxOccurs="1" name="MaxTemperatureF" type="xsd:string" /> - <xsd:element minOccurs="0" maxOccurs="1" name="MinTemperatureF" type="xsd:string" /> - <xsd:element minOccurs="0" maxOccurs="1" name="MaxTemperatureC" type="xsd:string" /> - <xsd:element minOccurs="0" maxOccurs="1" name="MinTemperatureC" type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - <xsd:element name="GetWeatherByPlaceName"> - <xsd:complexType> - <xsd:sequence> - <xsd:element minOccurs="0" maxOccurs="1" name="PlaceName" type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="GetWeatherByPlaceNameResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element minOccurs="1" maxOccurs="1" name="GetWeatherByPlaceNameResult" type="tns:WeatherForecasts" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="WeatherForecasts" type="tns:WeatherForecasts" /> - </xsd:schema> - </wsdl:types> - <wsdl:message name="GetWeatherByZipCodeRequest"> - <wsdl:part name="parameters" element="tns:GetWeatherByZipCode" /> - </wsdl:message> - <wsdl:message name="GetWeatherByZipCodeResponse"> - <wsdl:part name="parameters" element="tns:GetWeatherByZipCodeResponse" /> - </wsdl:message> - <wsdl:message name="GetWeatherByPlaceNameRequest"> - <wsdl:part name="parameters" element="tns:GetWeatherByPlaceName" /> - </wsdl:message> - <wsdl:message name="GetWeatherByPlaceNameResponse"> - <wsdl:part name="parameters" element="tns:GetWeatherByPlaceNameResponse" /> - </wsdl:message> - <wsdl:portType name="WeatherForecastPortType"> - <wsdl:operation name="GetWeatherByZipCode"> - <wsdl:input message="tns:GetWeatherByZipCodeRequest" /> - <wsdl:output message="tns:GetWeatherByZipCodeResponse" /> - </wsdl:operation> - <wsdl:operation name="GetWeatherByPlaceName"> - <wsdl:input message="tns:GetWeatherByPlaceNameRequest" /> - <wsdl:output message="tns:GetWeatherByPlaceNameResponse" /> - </wsdl:operation> - </wsdl:portType> - <wsdl:binding name="WeatherForecastSoapBinding" type="tns:WeatherForecastPortType"> - <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> - <wsdl:operation name="GetWeatherByZipCode"> - <soap:operation soapAction="http://www.webservicex.net/GetWeatherByZipCode" style="document" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="GetWeatherByPlaceName"> - <soap:operation soapAction="http://www.webservicex.net/GetWeatherByPlaceName" style="document" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:service name="WeatherForecast"> - <wsdl:port name="WeatherForecastPort" binding="tns:WeatherForecastSoapBinding"> - <soap:address location="http://www.webservicex.net/WeatherForecast.asmx" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions>
\ No newline at end of file diff --git a/cpp/sca/samples/PythonWeatherForecast/sample.weather/WeatherForecastImpl.py b/cpp/sca/samples/PythonWeatherForecast/sample.weather/WeatherForecastImpl.py deleted file mode 100644 index 6e3775de0b..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/sample.weather/WeatherForecastImpl.py +++ /dev/null @@ -1,65 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# -# -# -# This Python code is a simple sample that calls a service that returns an -# SDO which has been converted into an ElementTree Element object. The Element -# object is then converted into formatted text - -import xml.etree.ElementTree - -def getForecastByPlaceName(placeName): - - print "Python - WeatherForecastImpl.getForecastByPlaceName:", placeName - - xmlResult = weatherWebService.GetWeatherByPlaceName(placeName) - - print "Python - Formatting result from weatherService:", xmlResult - - return formatWeather(xmlResult, placeName) - - -def getForecastByZipCode(zipCode): - - print "Python - WeatherForecastImpl.getForecastByZipCode:", zipCode - - xmlResult = weatherWebService.GetWeatherByZipCode(zipCode) - - print "Python - Formatting result from weatherService:", xmlResult - - return formatWeather(xmlResult, zipCode) - - -def formatWeather(weather, name): - - result = "Could not retrieve Weather Forecast for " + str(name) - - pathAndNS = "./{http://www.webservicex.net}" - - if weather.findtext(pathAndNS+"PlaceName"): - - result = "\n\nWeather Forecast for "+ weather.findtext(pathAndNS+"PlaceName")+ ", "+ weather.findtext(pathAndNS+"StateCode")+"\n" - result += "Latitude: "+ weather.findtext(pathAndNS+"Latitude")+ " Longitude: "+ weather.findtext(pathAndNS+"Longitude")+"\n\n" - - for node in weather.findall(".//{http://www.webservicex.net}WeatherData"): - if node.findtext(pathAndNS+"Day"): result += node.findtext(pathAndNS+"Day") - if node.findtext(pathAndNS+"MaxTemperatureC"): result += ":\tMax "+ node.findtext(pathAndNS+"MaxTemperatureC") - if node.findtext(pathAndNS+"MinTemperatureC"): result += "C. Min "+ node.findtext(pathAndNS+"MinTemperatureC")+ "C.\n" - - return result diff --git a/cpp/sca/samples/PythonWeatherForecast/sample.weather/sample.weather.composite b/cpp/sca/samples/PythonWeatherForecast/sample.weather/sample.weather.composite deleted file mode 100644 index 70e9674d23..0000000000 --- a/cpp/sca/samples/PythonWeatherForecast/sample.weather/sample.weather.composite +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.weather"> - - <component name="WeatherComponent"> - <implementation.python module="WeatherForecastImpl"/> - <!--implementation.ruby script="WeatherForecastImpl.rb" class="WeatherForecastImpl"/--> - <reference name="weatherWebService">WeatherService</reference> - </component> - - <reference name="WeatherService"> - <interface.wsdl interface="http://www.webservicex.net#wsdl.interface(WeatherForecastPortType)"/> - <binding.ws endpoint="http://www.webservicex.net#wsdl.endpoint(WeatherForecast/WeatherForecastPort)"/> - <!--binding.ws uri="http://www.webservicex.net/WeatherForecast.asmx"/--> - </reference> - -</composite> diff --git a/cpp/sca/samples/README b/cpp/sca/samples/README deleted file mode 100644 index 3d7155367d..0000000000 --- a/cpp/sca/samples/README +++ /dev/null @@ -1,2 +0,0 @@ -Please read the GettingStarted.html document for information on -building, installing and running Tuscany SCA for C++ Samples
\ No newline at end of file diff --git a/cpp/sca/samples/RestCalculator/Makefile.am b/cpp/sca/samples/RestCalculator/Makefile.am deleted file mode 100644 index e3b215ad90..0000000000 --- a/cpp/sca/samples/RestCalculator/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RestCalculator/deploy -SUBDIRS = sample.calculator sample.calculator.restclient httpserver - -EXTRA_DIST = *.composite README.html -deploy_DATA = *.composite - diff --git a/cpp/sca/samples/RestCalculator/README b/cpp/sca/samples/RestCalculator/README deleted file mode 100644 index 03c6b6a325..0000000000 --- a/cpp/sca/samples/RestCalculator/README +++ /dev/null @@ -1,23 +0,0 @@ -Tuscany SCA for C++ Samples - REST Calculator Sample -=============================================== - -This is a very simple sample to show how to use the SCA REST binding to -expose a Calculator service as a REST service and invoke that service. - -There are three sub projects in this workspace: - - sample.calculator - This contains the source code and SCDL artifacts for the SCA Calculator. - composite implementing the sample Calculator. - - - sample.calculator.restclient - A sample REST client which calls the Calculator service. - - - httpserver - This contains a minimal configuration for the Apache HTTP server used - to host the REST service as well as scripts to start and stop the server. - -Additionally, there is the sample.calculator.app.composite file. This -describes the configuration of the SCA Calculator composite deployed to the -SCA runtime. - -See the README.html file for instructions to build and run this sample diff --git a/cpp/sca/samples/RestCalculator/README.html b/cpp/sca/samples/RestCalculator/README.html deleted file mode 100644 index 80f7462c8a..0000000000 --- a/cpp/sca/samples/RestCalculator/README.html +++ /dev/null @@ -1,231 +0,0 @@ - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../../doc/css/maven-base.css"); -@import url("../../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - REST Calculator Sample</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany SCA Native Samples - REST Calculator Sample</H1> - - <P>This is a very simple sample to show how an SCA composite can wire - together two Ruby components to implement a Calculator service and expose - that service as a REST Service running under Apache HTTPD. - </P> - <P>The REST Calculator sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RestExtension.html">REST Service & Reference Extensions</A></LI> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system</P> - <P>There are three sub projects in this workspace:</P> - <UL> - <LI>sample.calculator<BR/> - This contains the Ruby scripts and SCDL artifacts for the SCA Calculator - composite implementing the sample Calculator. - </LI> - <LI>sample.calculator.restclient<BR/> - A sample client which does a local call to the Calculator service. - </LI> - <LI>httpserver<BR/> - A minimal configuration for the Apache HTTP server used to host the - REST service as well as scripts to start and stop the server. - </LI> - </UL> - <P>Additionally, there is the sample.calculator.app.composite file. This - describes the configuration of the SCA Calculator composite deployed to the SCA - runtime. - </P> - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the REST Calculator sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#linuxrun">Running the REST Calculator sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#winbld">Building the REST Calculator sample on Windows</A></LI> - <LI><A HREF="#winrun">Running the REST Calculator sample on Windows</A></LI> - <LI><A HREF="#help">Getting help</A></LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the REST Calculator sample on Linux and Mac OS X</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the samples on Linux and Mac OS X</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>As the REST Calculator sample is based on Ruby scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the Ruby samples only with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure --enable-ruby --enable-cpp=no --prefix=$TUSCANY_SCACPP/samples</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide the --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/RestCalculator</LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the REST Calculator sample on Linux and Mac OS X</H2></A> - <OL> - <LI>The REST Calculator sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RestExtension.html">REST Service & Reference Extensions</A></LI> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>Start the HTTPD server: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>/samples/RestCalculator/deploy/httpserver</LI> - <LI>./startserver.sh<BR/> - NOTE: Depending on your installation of Apache HTTPD you may need to log in as root before following - these steps. If so, you may also need to uncomment the User and Group directives in the - <tuscany_sca_install_dir>/samples/RestCalculator/deploy/httpserver/conf/httpd.conf file - and set these to the appropriate username and group that the server should run as</LI> - </OL> - </LI> - <LI>Run the client: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>/samples/RestCalculator/deploy/sample.calculator.restclient</LI> - <LI>./runrestclient.sh</LI> - </OL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winbld"><H2>Building the REST Calculator sample on Windows</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>\samples - go directly to <A HREF="#winrun">Running the samples on Windows</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>As this sample is based on Ruby scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\RestCalculator</LI> - <LI>deploy.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winrun"><H2>Running the REST Calculator sample on Windows</H2></A> - <OL> - <LI>The REST Calculator sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RestExtension.html">REST Service & Reference Extensions</A></LI> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>Start the HTTPD server: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>HTTPD_HOME=<path to installed Apache HTTPD server></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>\samples\RestCalculator\deploy\httpserver</LI> - <LI>startserver.bat</LI> - </OL> - </LI> - <LI>Run the client: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>LIBCURL_HOME=<path to installed libcurl libraries></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>\samples\RestCalculator\deploy\sample.calculator.restclient</LI> - <LI>runrestclient.bat</LI> - </OL> - </LI> - </OL> - </DIV> - - - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> - diff --git a/cpp/sca/samples/RestCalculator/httpserver/Makefile.am b/cpp/sca/samples/RestCalculator/httpserver/Makefile.am deleted file mode 100644 index f9412183dc..0000000000 --- a/cpp/sca/samples/RestCalculator/httpserver/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -deploydir=$(prefix)/RestCalculator/deploy -serverdir=$(deploydir)/httpserver - -server_SCRIPTS = startserver.sh stopserver.sh -EXTRA_DIST = startserver.sh stopserver.sh conf htdocs -nobase_server_DATA = conf/httpd.conf conf/mime.types htdocs/index.html diff --git a/cpp/sca/samples/RestCalculator/httpserver/conf/httpd.conf b/cpp/sca/samples/RestCalculator/httpserver/conf/httpd.conf deleted file mode 100644 index 0303f787e9..0000000000 --- a/cpp/sca/samples/RestCalculator/httpserver/conf/httpd.conf +++ /dev/null @@ -1,34 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# This is the main Apache HTTP server configuration file. It contains the
-# configuration directives that give the server its instructions.
-# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
-
-Listen 9090
-
-# Generated by the startserver script
-Include conf/base.conf
-Include conf/tuscany_sca_mod_rest.conf
-
-# User and Group directives may be required if the server must be
-# started from the root account. Uncomment the following lines and
-# set the correct username and group
-#
-# User myusername
-# Group mygroupname
-
diff --git a/cpp/sca/samples/RestCalculator/httpserver/conf/mime.types b/cpp/sca/samples/RestCalculator/httpserver/conf/mime.types deleted file mode 100644 index 4279f51bca..0000000000 --- a/cpp/sca/samples/RestCalculator/httpserver/conf/mime.types +++ /dev/null @@ -1,607 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# This file controls what Internet media types are sent to the client for -# given file extension(s). Sending the correct media type to the client -# is important so they know how to handle the content of the file. -# Extra types can either be added here or by using an AddType directive -# in your config files. For more information about Internet media types, -# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type -# registry is at <http://www.iana.org/assignments/media-types/>. - -# MIME type Extensions -application/activemessage -application/andrew-inset ez -application/applefile -application/atom+xml atom -application/atomicmail -application/batch-smtp -application/beep+xml -application/cals-1840 -application/cnrp+xml -application/commonground -application/cpl+xml -application/cybercash -application/dca-rft -application/dec-dx -application/dvcs -application/edi-consent -application/edifact -application/edi-x12 -application/eshop -application/font-tdpfr -application/http -application/hyperstudio -application/iges -application/index -application/index.cmd -application/index.obj -application/index.response -application/index.vnd -application/iotp -application/ipp -application/isup -application/mac-binhex40 hqx -application/mac-compactpro cpt -application/macwriteii -application/marc -application/mathematica -application/mathml+xml mathml -application/msword doc -application/news-message-id -application/news-transmission -application/ocsp-request -application/ocsp-response -application/octet-stream bin dms lha lzh exe class so dll dmg -application/oda oda -application/ogg ogg -application/parityfec -application/pdf pdf -application/pgp-encrypted -application/pgp-keys -application/pgp-signature -application/pkcs10 -application/pkcs7-mime -application/pkcs7-signature -application/pkix-cert -application/pkix-crl -application/pkixcmp -application/postscript ai eps ps -application/prs.alvestrand.titrax-sheet -application/prs.cww -application/prs.nprend -application/prs.plucker -application/qsig -application/rdf+xml rdf -application/reginfo+xml -application/remote-printing -application/riscos -application/rtf -application/sdp -application/set-payment -application/set-payment-initiation -application/set-registration -application/set-registration-initiation -application/sgml -application/sgml-open-catalog -application/sieve -application/slate -application/smil smi smil -application/srgs gram -application/srgs+xml grxml -application/timestamp-query -application/timestamp-reply -application/tve-trigger -application/vemmi -application/vnd.3gpp.pic-bw-large -application/vnd.3gpp.pic-bw-small -application/vnd.3gpp.pic-bw-var -application/vnd.3gpp.sms -application/vnd.3m.post-it-notes -application/vnd.accpac.simply.aso -application/vnd.accpac.simply.imp -application/vnd.acucobol -application/vnd.acucorp -application/vnd.adobe.xfdf -application/vnd.aether.imp -application/vnd.amiga.ami -application/vnd.anser-web-certificate-issue-initiation -application/vnd.anser-web-funds-transfer-initiation -application/vnd.audiograph -application/vnd.blueice.multipass -application/vnd.bmi -application/vnd.businessobjects -application/vnd.canon-cpdl -application/vnd.canon-lips -application/vnd.cinderella -application/vnd.claymore -application/vnd.commerce-battelle -application/vnd.commonspace -application/vnd.contact.cmsg -application/vnd.cosmocaller -application/vnd.criticaltools.wbs+xml -application/vnd.ctc-posml -application/vnd.cups-postscript -application/vnd.cups-raster -application/vnd.cups-raw -application/vnd.curl -application/vnd.cybank -application/vnd.data-vision.rdz -application/vnd.dna -application/vnd.dpgraph -application/vnd.dreamfactory -application/vnd.dxr -application/vnd.ecdis-update -application/vnd.ecowin.chart -application/vnd.ecowin.filerequest -application/vnd.ecowin.fileupdate -application/vnd.ecowin.series -application/vnd.ecowin.seriesrequest -application/vnd.ecowin.seriesupdate -application/vnd.enliven -application/vnd.epson.esf -application/vnd.epson.msf -application/vnd.epson.quickanime -application/vnd.epson.salt -application/vnd.epson.ssf -application/vnd.ericsson.quickcall -application/vnd.eudora.data -application/vnd.fdf -application/vnd.ffsns -application/vnd.fints -application/vnd.flographit -application/vnd.framemaker -application/vnd.fsc.weblaunch -application/vnd.fujitsu.oasys -application/vnd.fujitsu.oasys2 -application/vnd.fujitsu.oasys3 -application/vnd.fujitsu.oasysgp -application/vnd.fujitsu.oasysprs -application/vnd.fujixerox.ddd -application/vnd.fujixerox.docuworks -application/vnd.fujixerox.docuworks.binder -application/vnd.fut-misnet -application/vnd.grafeq -application/vnd.groove-account -application/vnd.groove-help -application/vnd.groove-identity-message -application/vnd.groove-injector -application/vnd.groove-tool-message -application/vnd.groove-tool-template -application/vnd.groove-vcard -application/vnd.hbci -application/vnd.hhe.lesson-player -application/vnd.hp-hpgl -application/vnd.hp-hpid -application/vnd.hp-hps -application/vnd.hp-pcl -application/vnd.hp-pclxl -application/vnd.httphone -application/vnd.hzn-3d-crossword -application/vnd.ibm.afplinedata -application/vnd.ibm.electronic-media -application/vnd.ibm.minipay -application/vnd.ibm.modcap -application/vnd.ibm.rights-management -application/vnd.ibm.secure-container -application/vnd.informix-visionary -application/vnd.intercon.formnet -application/vnd.intertrust.digibox -application/vnd.intertrust.nncp -application/vnd.intu.qbo -application/vnd.intu.qfx -application/vnd.irepository.package+xml -application/vnd.is-xpr -application/vnd.japannet-directory-service -application/vnd.japannet-jpnstore-wakeup -application/vnd.japannet-payment-wakeup -application/vnd.japannet-registration -application/vnd.japannet-registration-wakeup -application/vnd.japannet-setstore-wakeup -application/vnd.japannet-verification -application/vnd.japannet-verification-wakeup -application/vnd.jisp -application/vnd.kde.karbon -application/vnd.kde.kchart -application/vnd.kde.kformula -application/vnd.kde.kivio -application/vnd.kde.kontour -application/vnd.kde.kpresenter -application/vnd.kde.kspread -application/vnd.kde.kword -application/vnd.kenameaapp -application/vnd.koan -application/vnd.liberty-request+xml -application/vnd.llamagraphics.life-balance.desktop -application/vnd.llamagraphics.life-balance.exchange+xml -application/vnd.lotus-1-2-3 -application/vnd.lotus-approach -application/vnd.lotus-freelance -application/vnd.lotus-notes -application/vnd.lotus-organizer -application/vnd.lotus-screencam -application/vnd.lotus-wordpro -application/vnd.mcd -application/vnd.mediastation.cdkey -application/vnd.meridian-slingshot -application/vnd.micrografx.flo -application/vnd.micrografx.igx -application/vnd.mif mif -application/vnd.minisoft-hp3000-save -application/vnd.mitsubishi.misty-guard.trustweb -application/vnd.mobius.daf -application/vnd.mobius.dis -application/vnd.mobius.mbk -application/vnd.mobius.mqy -application/vnd.mobius.msl -application/vnd.mobius.plc -application/vnd.mobius.txf -application/vnd.mophun.application -application/vnd.mophun.certificate -application/vnd.motorola.flexsuite -application/vnd.motorola.flexsuite.adsi -application/vnd.motorola.flexsuite.fis -application/vnd.motorola.flexsuite.gotap -application/vnd.motorola.flexsuite.kmr -application/vnd.motorola.flexsuite.ttc -application/vnd.motorola.flexsuite.wem -application/vnd.mozilla.xul+xml xul -application/vnd.ms-artgalry -application/vnd.ms-asf -application/vnd.ms-excel xls -application/vnd.ms-lrm -application/vnd.ms-powerpoint ppt -application/vnd.ms-project -application/vnd.ms-tnef -application/vnd.ms-works -application/vnd.ms-wpl -application/vnd.mseq -application/vnd.msign -application/vnd.music-niff -application/vnd.musician -application/vnd.netfpx -application/vnd.noblenet-directory -application/vnd.noblenet-sealer -application/vnd.noblenet-web -application/vnd.novadigm.edm -application/vnd.novadigm.edx -application/vnd.novadigm.ext -application/vnd.obn -application/vnd.osa.netdeploy -application/vnd.palm -application/vnd.pg.format -application/vnd.pg.osasli -application/vnd.powerbuilder6 -application/vnd.powerbuilder6-s -application/vnd.powerbuilder7 -application/vnd.powerbuilder7-s -application/vnd.powerbuilder75 -application/vnd.powerbuilder75-s -application/vnd.previewsystems.box -application/vnd.publishare-delta-tree -application/vnd.pvi.ptid1 -application/vnd.pwg-multiplexed -application/vnd.pwg-xhtml-print+xml -application/vnd.quark.quarkxpress -application/vnd.rapid -application/vnd.s3sms -application/vnd.sealed.net -application/vnd.seemail -application/vnd.shana.informed.formdata -application/vnd.shana.informed.formtemplate -application/vnd.shana.informed.interchange -application/vnd.shana.informed.package -application/vnd.smaf -application/vnd.sss-cod -application/vnd.sss-dtf -application/vnd.sss-ntf -application/vnd.street-stream -application/vnd.svd -application/vnd.swiftview-ics -application/vnd.triscape.mxs -application/vnd.trueapp -application/vnd.truedoc -application/vnd.ufdl -application/vnd.uplanet.alert -application/vnd.uplanet.alert-wbxml -application/vnd.uplanet.bearer-choice -application/vnd.uplanet.bearer-choice-wbxml -application/vnd.uplanet.cacheop -application/vnd.uplanet.cacheop-wbxml -application/vnd.uplanet.channel -application/vnd.uplanet.channel-wbxml -application/vnd.uplanet.list -application/vnd.uplanet.list-wbxml -application/vnd.uplanet.listcmd -application/vnd.uplanet.listcmd-wbxml -application/vnd.uplanet.signal -application/vnd.vcx -application/vnd.vectorworks -application/vnd.vidsoft.vidconference -application/vnd.visio -application/vnd.visionary -application/vnd.vividence.scriptfile -application/vnd.vsf -application/vnd.wap.sic -application/vnd.wap.slc -application/vnd.wap.wbxml wbxml -application/vnd.wap.wmlc wmlc -application/vnd.wap.wmlscriptc wmlsc -application/vnd.webturbo -application/vnd.wrq-hp3000-labelled -application/vnd.wt.stf -application/vnd.wv.csp+wbxml -application/vnd.xara -application/vnd.xfdl -application/vnd.yamaha.hv-dic -application/vnd.yamaha.hv-script -application/vnd.yamaha.hv-voice -application/vnd.yellowriver-custom-menu -application/voicexml+xml vxml -application/watcherinfo+xml -application/whoispp-query -application/whoispp-response -application/wita -application/wordperfect5.1 -application/x-bcpio bcpio -application/x-cdlink vcd -application/x-chess-pgn pgn -application/x-compress -application/x-cpio cpio -application/x-csh csh -application/x-director dcr dir dxr -application/x-dvi dvi -application/x-futuresplash spl -application/x-gtar gtar -application/x-gzip -application/x-hdf hdf -application/x-javascript js -application/x-koan skp skd skt skm -application/x-latex latex -application/x-netcdf nc cdf -application/x-sh sh -application/x-shar shar -application/x-shockwave-flash swf -application/x-stuffit sit -application/x-sv4cpio sv4cpio -application/x-sv4crc sv4crc -application/x-tar tar -application/x-tcl tcl -application/x-tex tex -application/x-texinfo texinfo texi -application/x-troff t tr roff -application/x-troff-man man -application/x-troff-me me -application/x-troff-ms ms -application/x-ustar ustar -application/x-wais-source src -application/x400-bp -application/xhtml+xml xhtml xht -application/xslt+xml xslt -application/xml xml xsl -application/xml-dtd dtd -application/xml-external-parsed-entity -application/zip zip -audio/32kadpcm -audio/amr -audio/amr-wb -audio/basic au snd -audio/cn -audio/dat12 -audio/dsr-es201108 -audio/dvi4 -audio/evrc -audio/evrc0 -audio/g722 -audio/g.722.1 -audio/g723 -audio/g726-16 -audio/g726-24 -audio/g726-32 -audio/g726-40 -audio/g728 -audio/g729 -audio/g729D -audio/g729E -audio/gsm -audio/gsm-efr -audio/l8 -audio/l16 -audio/l20 -audio/l24 -audio/lpc -audio/midi mid midi kar -audio/mpa -audio/mpa-robust -audio/mp4a-latm -audio/mpeg mpga mp2 mp3 -audio/parityfec -audio/pcma -audio/pcmu -audio/prs.sid -audio/qcelp -audio/red -audio/smv -audio/smv0 -audio/telephone-event -audio/tone -audio/vdvi -audio/vnd.3gpp.iufp -audio/vnd.cisco.nse -audio/vnd.cns.anp1 -audio/vnd.cns.inf1 -audio/vnd.digital-winds -audio/vnd.everad.plj -audio/vnd.lucent.voice -audio/vnd.nortel.vbk -audio/vnd.nuera.ecelp4800 -audio/vnd.nuera.ecelp7470 -audio/vnd.nuera.ecelp9600 -audio/vnd.octel.sbc -audio/vnd.qcelp -audio/vnd.rhetorex.32kadpcm -audio/vnd.vmx.cvsd -audio/x-aiff aif aiff aifc -audio/x-alaw-basic -audio/x-mpegurl m3u -audio/x-pn-realaudio ram ra -audio/x-pn-realaudio-plugin -application/vnd.rn-realmedia rm -audio/x-wav wav -chemical/x-pdb pdb -chemical/x-xyz xyz -image/bmp bmp -image/cgm cgm -image/g3fax -image/gif gif -image/ief ief -image/jpeg jpeg jpg jpe -image/naplps -image/png png -image/prs.btif -image/prs.pti -image/svg+xml svg -image/t38 -image/tiff tiff tif -image/tiff-fx -image/vnd.cns.inf2 -image/vnd.djvu djvu djv -image/vnd.dwg -image/vnd.dxf -image/vnd.fastbidsheet -image/vnd.fpx -image/vnd.fst -image/vnd.fujixerox.edmics-mmr -image/vnd.fujixerox.edmics-rlc -image/vnd.globalgraphics.pgb -image/vnd.mix -image/vnd.ms-modi -image/vnd.net-fpx -image/vnd.svf -image/vnd.wap.wbmp wbmp -image/vnd.xiff -image/x-cmu-raster ras -image/x-icon ico -image/x-portable-anymap pnm -image/x-portable-bitmap pbm -image/x-portable-graymap pgm -image/x-portable-pixmap ppm -image/x-rgb rgb -image/x-xbitmap xbm -image/x-xpixmap xpm -image/x-xwindowdump xwd -message/delivery-status -message/disposition-notification -message/external-body -message/http -message/news -message/partial -message/rfc822 -message/s-http -message/sip -message/sipfrag -model/iges igs iges -model/mesh msh mesh silo -model/vnd.dwf -model/vnd.flatland.3dml -model/vnd.gdl -model/vnd.gs-gdl -model/vnd.gtw -model/vnd.mts -model/vnd.parasolid.transmit.binary -model/vnd.parasolid.transmit.text -model/vnd.vtu -model/vrml wrl vrml -multipart/alternative -multipart/appledouble -multipart/byteranges -multipart/digest -multipart/encrypted -multipart/form-data -multipart/header-set -multipart/mixed -multipart/parallel -multipart/related -multipart/report -multipart/signed -multipart/voice-message -text/calendar ics ifb -text/css css -text/directory -text/enriched -text/html html htm -text/parityfec -text/plain asc txt -text/prs.lines.tag -text/rfc822-headers -text/richtext rtx -text/rtf rtf -text/sgml sgml sgm -text/t140 -text/tab-separated-values tsv -text/uri-list -text/vnd.abc -text/vnd.curl -text/vnd.dmclientscript -text/vnd.fly -text/vnd.fmi.flexstor -text/vnd.in3d.3dml -text/vnd.in3d.spot -text/vnd.iptc.nitf -text/vnd.iptc.newsml -text/vnd.latex-z -text/vnd.motorola.reflex -text/vnd.ms-mediapackage -text/vnd.net2phone.commcenter.command -text/vnd.sun.j2me.app-descriptor -text/vnd.wap.si -text/vnd.wap.sl -text/vnd.wap.wml wml -text/vnd.wap.wmlscript wmls -text/x-setext etx -text/xml -text/xml-external-parsed-entity -video/bmpeg -video/bt656 -video/celb -video/dv -video/h261 -video/h263 -video/h263-1998 -video/h263-2000 -video/jpeg -video/mp1s -video/mp2p -video/mp2t -video/mp4v-es -video/mpv -video/mpeg mpeg mpg mpe -video/nv -video/parityfec -video/pointer -video/quicktime qt mov -video/smpte292m -video/vnd.fvt -video/vnd.motorola.video -video/vnd.motorola.videop -video/vnd.mpegurl mxu m4u -video/vnd.nokia.interleaved-multimedia -video/vnd.objectvideo -video/vnd.vivo -video/x-msvideo avi -video/x-sgi-movie movie -x-conference/x-cooltalk ice diff --git a/cpp/sca/samples/RestCalculator/httpserver/htdocs/index.html b/cpp/sca/samples/RestCalculator/httpserver/htdocs/index.html deleted file mode 100644 index 1bfb3e30c2..0000000000 --- a/cpp/sca/samples/RestCalculator/httpserver/htdocs/index.html +++ /dev/null @@ -1,21 +0,0 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<html><body><h1>It works!</h1></body></html> - diff --git a/cpp/sca/samples/RestCalculator/httpserver/startserver.bat b/cpp/sca/samples/RestCalculator/httpserver/startserver.bat deleted file mode 100644 index 2fc567a7e6..0000000000 --- a/cpp/sca/samples/RestCalculator/httpserver/startserver.bat +++ /dev/null @@ -1,72 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -set APFULLDIR=%~d0%~p0 -echo Running from %APFULLDIR% - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo Using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo Using SDO installed at %TUSCANY_SDOCPP% - -if "%HTTPD_HOME%" == "" ( -echo "HTTPD_HOME not set" -goto end -) -echo Using HTTPD installed at %HTTPD_HOME% - -set PATH=%TUSCANY_SCACPP%\extensions\ruby\bin;%TUSCANY_SCACPP%\extensions\rest\interface\bin;%TUSCANY_SCACPP%\extensions\rest\service\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%HTTPD_HOME%\bin;%PATH% - -set TUSCANY_SCACPP_ROOT=%APFULLDIR%\..\ -set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -@REM Generate the tuscany_sca_mod_rest configuration -if not exist %APFULLDIR%\conf\tuscany_sca_mod_rest.conf ( - echo LoadModule sca_rest_module %TUSCANY_SCACPP%/extensions/rest\service/bin/tuscany_sca_mod_rest.dll > %APFULLDIR%\conf\tuscany_sca_mod_rest.conf - echo TuscanyHome %TUSCANY_SCACPP% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf - echo ^<Location /rest^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf - echo SetHandler sca_rest_module >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf - echo TuscanyRoot %TUSCANY_SCACPP_ROOT% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf - echo ^</Location^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf -) - -@REM Generate the base HTTPD configuration -if not exist %APFULLDIR%\conf\base.conf ( - echo LoadModule mime_module %HTTPD_HOME%\modules\mod_mime.so > %APFULLDIR%\conf\base.conf - echo LoadModule dir_module %HTTPD_HOME%\modules\mod_dir.so >> %APFULLDIR%\conf\base.conf - echo DocumentRoot %APFULLDIR%\htdocs >> %APFULLDIR%\conf\base.conf -) - -@REM Create logs directory -if not exist %APFULLDIR%\logs mkdir %APFULLDIR%\logs -set TUSCANY_SCACPP_LOG=%APFULLDIR%\logs\tuscany-server.log -set TUSCANY_SCACPP_LOGGING=9 - -@REM Start the HTTP server -echo Starting Apache httpd -httpd -d %APFULLDIR% diff --git a/cpp/sca/samples/RestCalculator/httpserver/startserver.sh b/cpp/sca/samples/RestCalculator/httpserver/startserver.sh deleted file mode 100755 index e5d3d8f1ce..0000000000 --- a/cpp/sca/samples/RestCalculator/httpserver/startserver.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/ruby/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -libsuffix=.so -UNAME=`uname -s` -if [ "x$UNAME" = "xDarwin" ]; then - libsuffix=.dylib -fi -# Generate the mod_rest configuration -if [ ! -f conf/tuscany_sca_mod_rest.conf ]; then - echo "LoadModule sca_rest_module $TUSCANY_SCACPP/extensions/rest/service/lib/libtuscany_sca_mod_rest$libsuffix" >conf/tuscany_sca_mod_rest.conf - echo "TuscanyHome $TUSCANY_SCACPP" >>conf/tuscany_sca_mod_rest.conf - echo "<Location /rest>" >>conf/tuscany_sca_mod_rest.conf - echo " SetHandler sca_rest_module" >>conf/tuscany_sca_mod_rest.conf - echo " TuscanyRoot $TUSCANY_SCACPP_ROOT" >>conf/tuscany_sca_mod_rest.conf - echo "</Location>" >>conf/tuscany_sca_mod_rest.conf -fi - -if [ ! -f conf/base.conf ]; then - echo "DocumentRoot $APFULLDIR/htdocs" >conf/base.conf -fi - -# Create logs directory -if [ ! -d logs ]; then - mkdir logs -fi - -# Start the HTTP server -echo "Starting Apache httpd" -apachectl -k start -d $APFULLDIR - diff --git a/cpp/sca/samples/RestCalculator/httpserver/stopserver.sh b/cpp/sca/samples/RestCalculator/httpserver/stopserver.sh deleted file mode 100755 index c17f632a3e..0000000000 --- a/cpp/sca/samples/RestCalculator/httpserver/stopserver.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -# Stop the HTTP server -echo "Stopping Apache httpd" -apachectl -k stop -d $APFULLDIR - diff --git a/cpp/sca/samples/RestCalculator/sample.calculator.app.composite b/cpp/sca/samples/RestCalculator/sample.calculator.app.composite deleted file mode 100644 index b7c42f4731..0000000000 --- a/cpp/sca/samples/RestCalculator/sample.calculator.app.composite +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.calculator.app"> - - <component name="sample.calculator.CalculatorComponent"> - <implementation.composite name="sample.calculator" /> - </component> - - <component name="sample.calculator.CalculatorRestClientComponent"> - <implementation.composite name="sample.calculator.restclient" /> - <reference name="CalculatorService">sample.calculator.CalculatorComponent/CalculatorService</reference> - </component> - -</composite> diff --git a/cpp/sca/samples/RestCalculator/sample.calculator.restclient/CalculatorRestClient.rb b/cpp/sca/samples/RestCalculator/sample.calculator.restclient/CalculatorRestClient.rb deleted file mode 100644 index 4305c3e185..0000000000 --- a/cpp/sca/samples/RestCalculator/sample.calculator.restclient/CalculatorRestClient.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -require("tuscany_sca_ruby") - -calculator = SCA::locateService("CalculatorService") - -x = calculator.div(5, 2) -print "Retrieved result from RestCalculator service: ", x, "\n" diff --git a/cpp/sca/samples/RestCalculator/sample.calculator.restclient/Makefile.am b/cpp/sca/samples/RestCalculator/sample.calculator.restclient/Makefile.am deleted file mode 100644 index 5eee4677b8..0000000000 --- a/cpp/sca/samples/RestCalculator/sample.calculator.restclient/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RestCalculator/deploy -restclientdir=$(deploydir)/sample.calculator.restclient - -restclient_DATA = *.rb *.composite -restclient_SCRIPTS = runrestclient.sh -EXTRA_DIST = runrestclient.sh *.rb *.composite diff --git a/cpp/sca/samples/RestCalculator/sample.calculator.restclient/runrestclient.bat b/cpp/sca/samples/RestCalculator/sample.calculator.restclient/runrestclient.bat deleted file mode 100644 index fb97ed8b74..0000000000 --- a/cpp/sca/samples/RestCalculator/sample.calculator.restclient/runrestclient.bat +++ /dev/null @@ -1,50 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo TUSCANY_SCACPP not set -goto end -) -echo using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo TUSCANY_SDOCPP not set -goto end -) -echo using SDO installed at %TUSCANY_SDOCPP% - -if "%LIBCURL_HOME%" == "" ( -echo LIBCURL_HOME not set -goto end -) -echo using Libcurl installed at %LIBCURL_HOME% - -set PATH=%HTTPD_HOME%\bin;%LIBCURL_HOME%\lib;%TUSCANY_SCACPP%\extensions\ruby\bin;%TUSCANY_SCACPP%\extensions\rest\interface\bin;%TUSCANY_SCACPP%\extensions\rest\reference\bin;%TUSCANY_SCACPP%\extensions\rest\service\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%PATH% - -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ -set TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorRestClientComponent -set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd %TUSCANY_SCACPP_ROOT%\sample.calculator.restclient -ruby -I%TUSCANY_SCACPP%\extensions\ruby\bin CalculatorRestClient.rb - -:end -endlocal diff --git a/cpp/sca/samples/RestCalculator/sample.calculator.restclient/runrestclient.sh b/cpp/sca/samples/RestCalculator/sample.calculator.restclient/runrestclient.sh deleted file mode 100755 index 0c6c6c182c..0000000000 --- a/cpp/sca/samples/RestCalculator/sample.calculator.restclient/runrestclient.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/ruby/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorRestClientComponent -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd $TUSCANY_SCACPP_ROOT/sample.calculator.restclient -ruby -I$TUSCANY_SCACPP/extensions/ruby/lib CalculatorRestClient.rb diff --git a/cpp/sca/samples/RestCalculator/sample.calculator.restclient/sample.calculator.restclient.composite b/cpp/sca/samples/RestCalculator/sample.calculator.restclient/sample.calculator.restclient.composite deleted file mode 100644 index fee8c6e14f..0000000000 --- a/cpp/sca/samples/RestCalculator/sample.calculator.restclient/sample.calculator.restclient.composite +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.calculator.restclient"> - - <reference name="CalculatorService"> - <binding.rest/> - </reference> - -</composite>
\ No newline at end of file diff --git a/cpp/sca/samples/RestCalculator/sample.calculator/CalculatorImpl.rb b/cpp/sca/samples/RestCalculator/sample.calculator/CalculatorImpl.rb deleted file mode 100644 index 36ed15ff9b..0000000000 --- a/cpp/sca/samples/RestCalculator/sample.calculator/CalculatorImpl.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -class CalculatorImpl - - attr_writer :divideService - - def initialize() - print "Ruby - CalculatorImpl.initialize\n" - end - - def div(arg1, arg2) - print "Ruby - CalculatorImpl.div\n" - @divideService.divide(arg1.to_f, arg2.to_f) - end - - def add(arg1, arg2) - print "Ruby - CalculatorImpl.add\n" - arg1.to_f + arg2.to_f - end - - def sub(arg1, arg2) - print "Ruby - CalculatorImpl.sub\n" - arg1.to_f - arg2.to_f - end - - def mul(arg1, arg2) - print "Ruby - CalculatorImpl.mul\n" - arg1.to_f * arg2.to_f - end - -end
\ No newline at end of file diff --git a/cpp/sca/samples/RestCalculator/sample.calculator/DivideImpl.rb b/cpp/sca/samples/RestCalculator/sample.calculator/DivideImpl.rb deleted file mode 100644 index c6615bfcfa..0000000000 --- a/cpp/sca/samples/RestCalculator/sample.calculator/DivideImpl.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -class DivideImpl - - attr_writer :round - - def initialize() - print "Ruby - DivideImpl.initialize\n" - end - - def divide(arg1, arg2) - print "Ruby - DivideImpl.divide ", arg1, " / ", arg2, "\n" - res = arg1.to_f / arg2.to_f - if @round then - res = res.round - print "DivideImpl.divide rounding\n" - end - print "DivideImpl.divide ", res, "\n" - res - end - -end
\ No newline at end of file diff --git a/cpp/sca/samples/RestCalculator/sample.calculator/Makefile.am b/cpp/sca/samples/RestCalculator/sample.calculator/Makefile.am deleted file mode 100644 index b715fe2424..0000000000 --- a/cpp/sca/samples/RestCalculator/sample.calculator/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RestCalculator/deploy -compositedir=$(deploydir)/sample.calculator - -composite_DATA = *.composite *.rb -EXTRA_DIST = *.composite *.rb diff --git a/cpp/sca/samples/RestCalculator/sample.calculator/sample.calculator.composite b/cpp/sca/samples/RestCalculator/sample.calculator/sample.calculator.composite deleted file mode 100644 index 49fbf17f54..0000000000 --- a/cpp/sca/samples/RestCalculator/sample.calculator/sample.calculator.composite +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.calculator"> - - <service name="CalculatorService"> - <binding.rest/> - <reference>CalculatorComponent</reference> - </service> - - <component name="CalculatorComponent"> - <implementation.ruby script="CalculatorImpl.rb" class="CalculatorImpl"/> - <reference name="divideService">DivideComponent</reference> - </component> - - <component name="DivideComponent"> - <implementation.ruby script="DivideImpl.rb" class="DivideImpl"/> - <property name="round">true</property> - </component> - -</composite> diff --git a/cpp/sca/samples/RestCustomer/Makefile.am b/cpp/sca/samples/RestCustomer/Makefile.am deleted file mode 100644 index bf259580ce..0000000000 --- a/cpp/sca/samples/RestCustomer/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RestCustomer/deploy -SUBDIRS = sample.customer sample.customer.restclient httpserver - -EXTRA_DIST = *.composite README.html -deploy_DATA = *.composite diff --git a/cpp/sca/samples/RestCustomer/README b/cpp/sca/samples/RestCustomer/README deleted file mode 100644 index bf2a1c3eb6..0000000000 --- a/cpp/sca/samples/RestCustomer/README +++ /dev/null @@ -1,25 +0,0 @@ -Tuscany SCA for C++ Samples - REST Customer Sample -================================================== - -This is a very simple sample to show how to use the SCA REST binding to -implement a resource management service and make resources available -through HTTP. - -There are three sub projects in this workspace: - - sample.customer - This contains the source code and SCDL artifacts for the SCA component - implementing the Customer resource management service. - - - sample.customer.restclient - A sample REST client which shows how to create, update, retrieve, and - delete Customer resources. - - - httpserver - This contains a minimal configuration for the Apache HTTP server used - to host the REST service as well as scripts to start and stop the server. - -Additionally, there is the sample.customer.app.composite file. This -describes the configuration of the SCA Calculator composite deployed to the -SCA runtime. - -See the README.html file for instructions to build and run this sample diff --git a/cpp/sca/samples/RestCustomer/README.html b/cpp/sca/samples/RestCustomer/README.html deleted file mode 100644 index 7d43177b9a..0000000000 --- a/cpp/sca/samples/RestCustomer/README.html +++ /dev/null @@ -1,236 +0,0 @@ - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../../doc/css/maven-base.css"); -@import url("../../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - REST Customer Sample</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany SCA Native Samples - REST Customer Sample</H1> - - <P>This is a very simple sample to show how to use the SCA REST binding to - implement a resource management service and make resources available - through HTTP. - </P> - <P>The REST Customer sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RESTExtension.html">REST Service and Reference Extensions</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </P> - <P>There are three sub-projects in this workspace:</P> - <UL> - <LI>sample.customer<BR/> - This contains the source code and SCDL artifacts for the SCA component - implementing the Customer resource management service. - </LI> - <LI>sample.customer.restclient<BR/> - A sample REST client which shows how to create, update, retrieve, and - delete Customer resources. - </LI> - <LI>httpserver<BR/> - This contains a minimal configuration for the Apache HTTP server used - to host the REST service as well as scripts to start and stop the server. - </LI> - </UL> - <P>Additionally, there is the sample.customer.app.composite file. This - describes the configuration of the SCA Customer composite deployed to the SCA - runtime. - </P> - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the REST Customer sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#linuxrun">Running the REST Customer sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#winbld">Building the REST Customer sample on Windows</A></LI> - <LI><A HREF="#winrun">Running the REST Customer sample on Windows</A></LI> - <LI><A HREF="#help">Getting help</A></LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the REST Customer sample on Linux and Mac OS X</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the samples on Linux and Mac OS X</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>As the REST Customer sample is based on Python scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the Python samples only with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure --enable-python --enable-cpp=no --prefix=$TUSCANY_SCACPP/samples</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide the --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/RestCustomer</LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the REST Customer sample on Linux and Mac OS X</H2></A> - <OL> - <LI>The REST Customer sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RESTExtension.html">REST Service and Reference Extensions</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>Start the Apache HTTPD server: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>PYTHON_LIB=<path to the Python library><BR/> - Note: If you are using a default installation of Python 2.5 this is usually /usr/lib</LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>/samples/RestCustomer/deploy/httpserver</LI> - <LI>./startserver.sh<BR/> - NOTE: Depending on your installation of Apache HTTPD you may need to log in as root before following - these steps. If so, you may also need to uncomment the User and Group directives in the - <tuscany_sca_install_dir>/samples/RestCustomer/deploy/httpserver/conf/httpd.conf file - and set these to the appropriate username and group that the server should run as</LI> - </OL> - </LI> - <LI>Run the client: - <OL> - <LI>The following environment variable is required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>PYTHON_LIB=<path to the Python library><BR/> - Note: If you are using a default installation of Python 2.5 this is usually /usr/lib</LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>/samples/RestCustomer/deploy/sample.customer.restclient</LI> - <LI>./runrestclient.sh</LI> - </OL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winbld"><H2>Building the REST Customer sample on Windows</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>\samples - go directly to <A HREF="#winrun">Running the samples on Windows</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>As this sample is based on Ruby scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\RestCustomer</LI> - <LI>deploy.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winrun"><H2>Running the REST Customer sample on Windows</H2></A> - <LI>The REST Customer sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RESTExtension.html">REST Service and Reference Extensions</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>Start the Apache HTTPD server: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>HTTPD_HOME=<path to installed Apache HTTPD server></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>\samples\RestCustomer\deploy\httpserver</LI> - <LI>startserver.bat</LI> - </OL> - </LI> - <LI>Run the client: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>LIBCURL_HOME=<path to installed libcurl libraries></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>\samples\RestCustomer\deploy\sample.customer.restclient</LI> - <LI>runrestclient.bat</LI> - </OL> - </LI> - </OL> - </DIV> - - - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> - diff --git a/cpp/sca/samples/RestCustomer/httpserver/Makefile.am b/cpp/sca/samples/RestCustomer/httpserver/Makefile.am deleted file mode 100644 index af8c0bb550..0000000000 --- a/cpp/sca/samples/RestCustomer/httpserver/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -deploydir=$(prefix)/RestCustomer/deploy -serverdir=$(deploydir)/httpserver - -server_SCRIPTS = startserver.sh stopserver.sh -EXTRA_DIST = startserver.sh stopserver.sh conf htdocs -nobase_server_DATA = conf/httpd.conf conf/mime.types htdocs/index.html diff --git a/cpp/sca/samples/RestCustomer/httpserver/conf/httpd.conf b/cpp/sca/samples/RestCustomer/httpserver/conf/httpd.conf deleted file mode 100644 index 0303f787e9..0000000000 --- a/cpp/sca/samples/RestCustomer/httpserver/conf/httpd.conf +++ /dev/null @@ -1,34 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# This is the main Apache HTTP server configuration file. It contains the
-# configuration directives that give the server its instructions.
-# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
-
-Listen 9090
-
-# Generated by the startserver script
-Include conf/base.conf
-Include conf/tuscany_sca_mod_rest.conf
-
-# User and Group directives may be required if the server must be
-# started from the root account. Uncomment the following lines and
-# set the correct username and group
-#
-# User myusername
-# Group mygroupname
-
diff --git a/cpp/sca/samples/RestCustomer/httpserver/conf/mime.types b/cpp/sca/samples/RestCustomer/httpserver/conf/mime.types deleted file mode 100644 index 4279f51bca..0000000000 --- a/cpp/sca/samples/RestCustomer/httpserver/conf/mime.types +++ /dev/null @@ -1,607 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# This file controls what Internet media types are sent to the client for -# given file extension(s). Sending the correct media type to the client -# is important so they know how to handle the content of the file. -# Extra types can either be added here or by using an AddType directive -# in your config files. For more information about Internet media types, -# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type -# registry is at <http://www.iana.org/assignments/media-types/>. - -# MIME type Extensions -application/activemessage -application/andrew-inset ez -application/applefile -application/atom+xml atom -application/atomicmail -application/batch-smtp -application/beep+xml -application/cals-1840 -application/cnrp+xml -application/commonground -application/cpl+xml -application/cybercash -application/dca-rft -application/dec-dx -application/dvcs -application/edi-consent -application/edifact -application/edi-x12 -application/eshop -application/font-tdpfr -application/http -application/hyperstudio -application/iges -application/index -application/index.cmd -application/index.obj -application/index.response -application/index.vnd -application/iotp -application/ipp -application/isup -application/mac-binhex40 hqx -application/mac-compactpro cpt -application/macwriteii -application/marc -application/mathematica -application/mathml+xml mathml -application/msword doc -application/news-message-id -application/news-transmission -application/ocsp-request -application/ocsp-response -application/octet-stream bin dms lha lzh exe class so dll dmg -application/oda oda -application/ogg ogg -application/parityfec -application/pdf pdf -application/pgp-encrypted -application/pgp-keys -application/pgp-signature -application/pkcs10 -application/pkcs7-mime -application/pkcs7-signature -application/pkix-cert -application/pkix-crl -application/pkixcmp -application/postscript ai eps ps -application/prs.alvestrand.titrax-sheet -application/prs.cww -application/prs.nprend -application/prs.plucker -application/qsig -application/rdf+xml rdf -application/reginfo+xml -application/remote-printing -application/riscos -application/rtf -application/sdp -application/set-payment -application/set-payment-initiation -application/set-registration -application/set-registration-initiation -application/sgml -application/sgml-open-catalog -application/sieve -application/slate -application/smil smi smil -application/srgs gram -application/srgs+xml grxml -application/timestamp-query -application/timestamp-reply -application/tve-trigger -application/vemmi -application/vnd.3gpp.pic-bw-large -application/vnd.3gpp.pic-bw-small -application/vnd.3gpp.pic-bw-var -application/vnd.3gpp.sms -application/vnd.3m.post-it-notes -application/vnd.accpac.simply.aso -application/vnd.accpac.simply.imp -application/vnd.acucobol -application/vnd.acucorp -application/vnd.adobe.xfdf -application/vnd.aether.imp -application/vnd.amiga.ami -application/vnd.anser-web-certificate-issue-initiation -application/vnd.anser-web-funds-transfer-initiation -application/vnd.audiograph -application/vnd.blueice.multipass -application/vnd.bmi -application/vnd.businessobjects -application/vnd.canon-cpdl -application/vnd.canon-lips -application/vnd.cinderella -application/vnd.claymore -application/vnd.commerce-battelle -application/vnd.commonspace -application/vnd.contact.cmsg -application/vnd.cosmocaller -application/vnd.criticaltools.wbs+xml -application/vnd.ctc-posml -application/vnd.cups-postscript -application/vnd.cups-raster -application/vnd.cups-raw -application/vnd.curl -application/vnd.cybank -application/vnd.data-vision.rdz -application/vnd.dna -application/vnd.dpgraph -application/vnd.dreamfactory -application/vnd.dxr -application/vnd.ecdis-update -application/vnd.ecowin.chart -application/vnd.ecowin.filerequest -application/vnd.ecowin.fileupdate -application/vnd.ecowin.series -application/vnd.ecowin.seriesrequest -application/vnd.ecowin.seriesupdate -application/vnd.enliven -application/vnd.epson.esf -application/vnd.epson.msf -application/vnd.epson.quickanime -application/vnd.epson.salt -application/vnd.epson.ssf -application/vnd.ericsson.quickcall -application/vnd.eudora.data -application/vnd.fdf -application/vnd.ffsns -application/vnd.fints -application/vnd.flographit -application/vnd.framemaker -application/vnd.fsc.weblaunch -application/vnd.fujitsu.oasys -application/vnd.fujitsu.oasys2 -application/vnd.fujitsu.oasys3 -application/vnd.fujitsu.oasysgp -application/vnd.fujitsu.oasysprs -application/vnd.fujixerox.ddd -application/vnd.fujixerox.docuworks -application/vnd.fujixerox.docuworks.binder -application/vnd.fut-misnet -application/vnd.grafeq -application/vnd.groove-account -application/vnd.groove-help -application/vnd.groove-identity-message -application/vnd.groove-injector -application/vnd.groove-tool-message -application/vnd.groove-tool-template -application/vnd.groove-vcard -application/vnd.hbci -application/vnd.hhe.lesson-player -application/vnd.hp-hpgl -application/vnd.hp-hpid -application/vnd.hp-hps -application/vnd.hp-pcl -application/vnd.hp-pclxl -application/vnd.httphone -application/vnd.hzn-3d-crossword -application/vnd.ibm.afplinedata -application/vnd.ibm.electronic-media -application/vnd.ibm.minipay -application/vnd.ibm.modcap -application/vnd.ibm.rights-management -application/vnd.ibm.secure-container -application/vnd.informix-visionary -application/vnd.intercon.formnet -application/vnd.intertrust.digibox -application/vnd.intertrust.nncp -application/vnd.intu.qbo -application/vnd.intu.qfx -application/vnd.irepository.package+xml -application/vnd.is-xpr -application/vnd.japannet-directory-service -application/vnd.japannet-jpnstore-wakeup -application/vnd.japannet-payment-wakeup -application/vnd.japannet-registration -application/vnd.japannet-registration-wakeup -application/vnd.japannet-setstore-wakeup -application/vnd.japannet-verification -application/vnd.japannet-verification-wakeup -application/vnd.jisp -application/vnd.kde.karbon -application/vnd.kde.kchart -application/vnd.kde.kformula -application/vnd.kde.kivio -application/vnd.kde.kontour -application/vnd.kde.kpresenter -application/vnd.kde.kspread -application/vnd.kde.kword -application/vnd.kenameaapp -application/vnd.koan -application/vnd.liberty-request+xml -application/vnd.llamagraphics.life-balance.desktop -application/vnd.llamagraphics.life-balance.exchange+xml -application/vnd.lotus-1-2-3 -application/vnd.lotus-approach -application/vnd.lotus-freelance -application/vnd.lotus-notes -application/vnd.lotus-organizer -application/vnd.lotus-screencam -application/vnd.lotus-wordpro -application/vnd.mcd -application/vnd.mediastation.cdkey -application/vnd.meridian-slingshot -application/vnd.micrografx.flo -application/vnd.micrografx.igx -application/vnd.mif mif -application/vnd.minisoft-hp3000-save -application/vnd.mitsubishi.misty-guard.trustweb -application/vnd.mobius.daf -application/vnd.mobius.dis -application/vnd.mobius.mbk -application/vnd.mobius.mqy -application/vnd.mobius.msl -application/vnd.mobius.plc -application/vnd.mobius.txf -application/vnd.mophun.application -application/vnd.mophun.certificate -application/vnd.motorola.flexsuite -application/vnd.motorola.flexsuite.adsi -application/vnd.motorola.flexsuite.fis -application/vnd.motorola.flexsuite.gotap -application/vnd.motorola.flexsuite.kmr -application/vnd.motorola.flexsuite.ttc -application/vnd.motorola.flexsuite.wem -application/vnd.mozilla.xul+xml xul -application/vnd.ms-artgalry -application/vnd.ms-asf -application/vnd.ms-excel xls -application/vnd.ms-lrm -application/vnd.ms-powerpoint ppt -application/vnd.ms-project -application/vnd.ms-tnef -application/vnd.ms-works -application/vnd.ms-wpl -application/vnd.mseq -application/vnd.msign -application/vnd.music-niff -application/vnd.musician -application/vnd.netfpx -application/vnd.noblenet-directory -application/vnd.noblenet-sealer -application/vnd.noblenet-web -application/vnd.novadigm.edm -application/vnd.novadigm.edx -application/vnd.novadigm.ext -application/vnd.obn -application/vnd.osa.netdeploy -application/vnd.palm -application/vnd.pg.format -application/vnd.pg.osasli -application/vnd.powerbuilder6 -application/vnd.powerbuilder6-s -application/vnd.powerbuilder7 -application/vnd.powerbuilder7-s -application/vnd.powerbuilder75 -application/vnd.powerbuilder75-s -application/vnd.previewsystems.box -application/vnd.publishare-delta-tree -application/vnd.pvi.ptid1 -application/vnd.pwg-multiplexed -application/vnd.pwg-xhtml-print+xml -application/vnd.quark.quarkxpress -application/vnd.rapid -application/vnd.s3sms -application/vnd.sealed.net -application/vnd.seemail -application/vnd.shana.informed.formdata -application/vnd.shana.informed.formtemplate -application/vnd.shana.informed.interchange -application/vnd.shana.informed.package -application/vnd.smaf -application/vnd.sss-cod -application/vnd.sss-dtf -application/vnd.sss-ntf -application/vnd.street-stream -application/vnd.svd -application/vnd.swiftview-ics -application/vnd.triscape.mxs -application/vnd.trueapp -application/vnd.truedoc -application/vnd.ufdl -application/vnd.uplanet.alert -application/vnd.uplanet.alert-wbxml -application/vnd.uplanet.bearer-choice -application/vnd.uplanet.bearer-choice-wbxml -application/vnd.uplanet.cacheop -application/vnd.uplanet.cacheop-wbxml -application/vnd.uplanet.channel -application/vnd.uplanet.channel-wbxml -application/vnd.uplanet.list -application/vnd.uplanet.list-wbxml -application/vnd.uplanet.listcmd -application/vnd.uplanet.listcmd-wbxml -application/vnd.uplanet.signal -application/vnd.vcx -application/vnd.vectorworks -application/vnd.vidsoft.vidconference -application/vnd.visio -application/vnd.visionary -application/vnd.vividence.scriptfile -application/vnd.vsf -application/vnd.wap.sic -application/vnd.wap.slc -application/vnd.wap.wbxml wbxml -application/vnd.wap.wmlc wmlc -application/vnd.wap.wmlscriptc wmlsc -application/vnd.webturbo -application/vnd.wrq-hp3000-labelled -application/vnd.wt.stf -application/vnd.wv.csp+wbxml -application/vnd.xara -application/vnd.xfdl -application/vnd.yamaha.hv-dic -application/vnd.yamaha.hv-script -application/vnd.yamaha.hv-voice -application/vnd.yellowriver-custom-menu -application/voicexml+xml vxml -application/watcherinfo+xml -application/whoispp-query -application/whoispp-response -application/wita -application/wordperfect5.1 -application/x-bcpio bcpio -application/x-cdlink vcd -application/x-chess-pgn pgn -application/x-compress -application/x-cpio cpio -application/x-csh csh -application/x-director dcr dir dxr -application/x-dvi dvi -application/x-futuresplash spl -application/x-gtar gtar -application/x-gzip -application/x-hdf hdf -application/x-javascript js -application/x-koan skp skd skt skm -application/x-latex latex -application/x-netcdf nc cdf -application/x-sh sh -application/x-shar shar -application/x-shockwave-flash swf -application/x-stuffit sit -application/x-sv4cpio sv4cpio -application/x-sv4crc sv4crc -application/x-tar tar -application/x-tcl tcl -application/x-tex tex -application/x-texinfo texinfo texi -application/x-troff t tr roff -application/x-troff-man man -application/x-troff-me me -application/x-troff-ms ms -application/x-ustar ustar -application/x-wais-source src -application/x400-bp -application/xhtml+xml xhtml xht -application/xslt+xml xslt -application/xml xml xsl -application/xml-dtd dtd -application/xml-external-parsed-entity -application/zip zip -audio/32kadpcm -audio/amr -audio/amr-wb -audio/basic au snd -audio/cn -audio/dat12 -audio/dsr-es201108 -audio/dvi4 -audio/evrc -audio/evrc0 -audio/g722 -audio/g.722.1 -audio/g723 -audio/g726-16 -audio/g726-24 -audio/g726-32 -audio/g726-40 -audio/g728 -audio/g729 -audio/g729D -audio/g729E -audio/gsm -audio/gsm-efr -audio/l8 -audio/l16 -audio/l20 -audio/l24 -audio/lpc -audio/midi mid midi kar -audio/mpa -audio/mpa-robust -audio/mp4a-latm -audio/mpeg mpga mp2 mp3 -audio/parityfec -audio/pcma -audio/pcmu -audio/prs.sid -audio/qcelp -audio/red -audio/smv -audio/smv0 -audio/telephone-event -audio/tone -audio/vdvi -audio/vnd.3gpp.iufp -audio/vnd.cisco.nse -audio/vnd.cns.anp1 -audio/vnd.cns.inf1 -audio/vnd.digital-winds -audio/vnd.everad.plj -audio/vnd.lucent.voice -audio/vnd.nortel.vbk -audio/vnd.nuera.ecelp4800 -audio/vnd.nuera.ecelp7470 -audio/vnd.nuera.ecelp9600 -audio/vnd.octel.sbc -audio/vnd.qcelp -audio/vnd.rhetorex.32kadpcm -audio/vnd.vmx.cvsd -audio/x-aiff aif aiff aifc -audio/x-alaw-basic -audio/x-mpegurl m3u -audio/x-pn-realaudio ram ra -audio/x-pn-realaudio-plugin -application/vnd.rn-realmedia rm -audio/x-wav wav -chemical/x-pdb pdb -chemical/x-xyz xyz -image/bmp bmp -image/cgm cgm -image/g3fax -image/gif gif -image/ief ief -image/jpeg jpeg jpg jpe -image/naplps -image/png png -image/prs.btif -image/prs.pti -image/svg+xml svg -image/t38 -image/tiff tiff tif -image/tiff-fx -image/vnd.cns.inf2 -image/vnd.djvu djvu djv -image/vnd.dwg -image/vnd.dxf -image/vnd.fastbidsheet -image/vnd.fpx -image/vnd.fst -image/vnd.fujixerox.edmics-mmr -image/vnd.fujixerox.edmics-rlc -image/vnd.globalgraphics.pgb -image/vnd.mix -image/vnd.ms-modi -image/vnd.net-fpx -image/vnd.svf -image/vnd.wap.wbmp wbmp -image/vnd.xiff -image/x-cmu-raster ras -image/x-icon ico -image/x-portable-anymap pnm -image/x-portable-bitmap pbm -image/x-portable-graymap pgm -image/x-portable-pixmap ppm -image/x-rgb rgb -image/x-xbitmap xbm -image/x-xpixmap xpm -image/x-xwindowdump xwd -message/delivery-status -message/disposition-notification -message/external-body -message/http -message/news -message/partial -message/rfc822 -message/s-http -message/sip -message/sipfrag -model/iges igs iges -model/mesh msh mesh silo -model/vnd.dwf -model/vnd.flatland.3dml -model/vnd.gdl -model/vnd.gs-gdl -model/vnd.gtw -model/vnd.mts -model/vnd.parasolid.transmit.binary -model/vnd.parasolid.transmit.text -model/vnd.vtu -model/vrml wrl vrml -multipart/alternative -multipart/appledouble -multipart/byteranges -multipart/digest -multipart/encrypted -multipart/form-data -multipart/header-set -multipart/mixed -multipart/parallel -multipart/related -multipart/report -multipart/signed -multipart/voice-message -text/calendar ics ifb -text/css css -text/directory -text/enriched -text/html html htm -text/parityfec -text/plain asc txt -text/prs.lines.tag -text/rfc822-headers -text/richtext rtx -text/rtf rtf -text/sgml sgml sgm -text/t140 -text/tab-separated-values tsv -text/uri-list -text/vnd.abc -text/vnd.curl -text/vnd.dmclientscript -text/vnd.fly -text/vnd.fmi.flexstor -text/vnd.in3d.3dml -text/vnd.in3d.spot -text/vnd.iptc.nitf -text/vnd.iptc.newsml -text/vnd.latex-z -text/vnd.motorola.reflex -text/vnd.ms-mediapackage -text/vnd.net2phone.commcenter.command -text/vnd.sun.j2me.app-descriptor -text/vnd.wap.si -text/vnd.wap.sl -text/vnd.wap.wml wml -text/vnd.wap.wmlscript wmls -text/x-setext etx -text/xml -text/xml-external-parsed-entity -video/bmpeg -video/bt656 -video/celb -video/dv -video/h261 -video/h263 -video/h263-1998 -video/h263-2000 -video/jpeg -video/mp1s -video/mp2p -video/mp2t -video/mp4v-es -video/mpv -video/mpeg mpeg mpg mpe -video/nv -video/parityfec -video/pointer -video/quicktime qt mov -video/smpte292m -video/vnd.fvt -video/vnd.motorola.video -video/vnd.motorola.videop -video/vnd.mpegurl mxu m4u -video/vnd.nokia.interleaved-multimedia -video/vnd.objectvideo -video/vnd.vivo -video/x-msvideo avi -video/x-sgi-movie movie -x-conference/x-cooltalk ice diff --git a/cpp/sca/samples/RestCustomer/httpserver/htdocs/index.html b/cpp/sca/samples/RestCustomer/httpserver/htdocs/index.html deleted file mode 100644 index 1bfb3e30c2..0000000000 --- a/cpp/sca/samples/RestCustomer/httpserver/htdocs/index.html +++ /dev/null @@ -1,21 +0,0 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<html><body><h1>It works!</h1></body></html> - diff --git a/cpp/sca/samples/RestCustomer/httpserver/startserver.bat b/cpp/sca/samples/RestCustomer/httpserver/startserver.bat deleted file mode 100644 index a62f4bd510..0000000000 --- a/cpp/sca/samples/RestCustomer/httpserver/startserver.bat +++ /dev/null @@ -1,75 +0,0 @@ -@echo off
-
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM http://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-
-setlocal
-
-set APFULLDIR=%~d0%~p0
-echo Running from %APFULLDIR%
-
-if "%TUSCANY_SCACPP%" == "" (
-echo "TUSCANY_SCACPP not set"
-goto end
-)
-echo Using SCA installed at %TUSCANY_SCACPP%
-
-if "%TUSCANY_SDOCPP%" == "" (
-echo "TUSCANY_SDOCPP not set"
-goto end
-)
-echo Using SDO installed at %TUSCANY_SDOCPP%
-
-if "%HTTPD_HOME%" == "" (
-echo "HTTPD_HOME not set"
-goto end
-)
-echo Using HTTPD installed at %HTTPD_HOME%
-
-set PATH=%TUSCANY_SCACPP%\extensions\python\bin;%TUSCANY_SCACPP%\extensions\rest\interface\bin;%TUSCANY_SCACPP%\extensions\rest\service\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%HTTPD_HOME%\bin;%PATH%
-set PYTHONPATH=%TUSCANY_SCACPP%\extensions\python\bin
-
-set TUSCANY_SCACPP_ROOT=%APFULLDIR%\..\
-set TUSCANY_SCACPP_BASE_URI=http://localhost:9090
-
-set CUSTOMER_DIR=%TUSCANY_SCACPP_ROOT%\sample.customer
-
-@REM Generate the tuscany_sca_mod_rest configuration
-if not exist %APFULLDIR%\conf\tuscany_sca_mod_rest.conf (
- echo LoadModule sca_rest_module %TUSCANY_SCACPP%/extensions/rest\service/bin/tuscany_sca_mod_rest.dll > %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
- echo TuscanyHome %TUSCANY_SCACPP% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
- echo ^<Location /rest^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
- echo SetHandler sca_rest_module >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
- echo TuscanyRoot %TUSCANY_SCACPP_ROOT% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
- echo ^</Location^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
-)
-
-@REM Generate the base HTTPD configuration
-if not exist %APFULLDIR%\conf\base.conf (
- echo LoadModule mime_module %HTTPD_HOME%\modules\mod_mime.so > %APFULLDIR%\conf\base.conf
- echo LoadModule dir_module %HTTPD_HOME%\modules\mod_dir.so >> %APFULLDIR%\conf\base.conf
- echo DocumentRoot %APFULLDIR%\htdocs >> %APFULLDIR%\conf\base.conf
-)
-
-@REM Create logs directory
-if not exist %APFULLDIR%\logs mkdir %APFULLDIR%\logs
-set TUSCANY_SCACPP_LOG=%APFULLDIR%\logs\tuscany-server.log
-set TUSCANY_SCACPP_LOGGING=9
-
-@REM Start the HTTP server
-echo Starting Apache httpd
-httpd -d %APFULLDIR%
diff --git a/cpp/sca/samples/RestCustomer/httpserver/startserver.sh b/cpp/sca/samples/RestCustomer/httpserver/startserver.sh deleted file mode 100755 index 0d4561e3d3..0000000000 --- a/cpp/sca/samples/RestCustomer/httpserver/startserver.sh +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$PYTHON_LIB != x ]; then -echo "Using Python library installed at $PYTHON_LIB" -export LD_LIBRARY_PATH=$PYTHON_LIB:$LD_LIBRARY_PATH -export PATH=$PYTHON_LIB/../bin:$PATH -fi - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SCACPP/extensions/python/lib:$TUSCANY_SDOCPP/lib:$LD_LIBRARY_PATH -export PYTHONPATH=$TUSCANY_SCACPP/extensions/python/lib:$PYTHONPATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -export CUSTOMER_DIR=$TUSCANY_SCACPP_ROOT/sample.customer - -libsuffix=.so -UNAME=`uname -s` -if [ "x$UNAME" = "xDarwin" ]; then - libsuffix=.dylib -fi - -# Generate the mod_rest configuration -if [ ! -f conf/tuscany_sca_mod_rest.conf ]; then - echo "LoadModule sca_rest_module $TUSCANY_SCACPP/extensions/rest/service/lib/libtuscany_sca_mod_rest$libsuffix" >conf/tuscany_sca_mod_rest.conf - echo "TuscanyHome $TUSCANY_SCACPP" >>conf/tuscany_sca_mod_rest.conf - echo "<Location /rest>" >>conf/tuscany_sca_mod_rest.conf - echo " SetHandler sca_rest_module" >>conf/tuscany_sca_mod_rest.conf - echo " TuscanyRoot $TUSCANY_SCACPP_ROOT" >>conf/tuscany_sca_mod_rest.conf - echo "</Location>" >>conf/tuscany_sca_mod_rest.conf -fi - -if [ ! -f conf/base.conf ]; then - echo "DocumentRoot $APFULLDIR/htdocs" >conf/base.conf -fi - -# Create logs directory -if [ ! -d logs ]; then - mkdir logs -fi - -# Start the HTTP server -echo "Starting Apache httpd" - -# Set LD_PRELOAD to use the expat included in Python to avoid incompatibilities -export LD_PRELOAD=$TUSCANY_SCACPP/extensions/python/lib/libtuscany_sca_python$libsuffix - -apachectl -k start -d $APFULLDIR - diff --git a/cpp/sca/samples/RestCustomer/httpserver/stopserver.sh b/cpp/sca/samples/RestCustomer/httpserver/stopserver.sh deleted file mode 100755 index c17f632a3e..0000000000 --- a/cpp/sca/samples/RestCustomer/httpserver/stopserver.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -# Stop the HTTP server -echo "Stopping Apache httpd" -apachectl -k stop -d $APFULLDIR - diff --git a/cpp/sca/samples/RestCustomer/sample.customer.app.composite b/cpp/sca/samples/RestCustomer/sample.customer.app.composite deleted file mode 100644 index 65565f1e3c..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer.app.composite +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.customer.app"> - - <component name="sample.customer.CustomerComponent"> - <implementation.composite name="sample.customer" /> - </component> - - <component name="sample.customer.CustomerRestClientComponent"> - <implementation.composite name="sample.customer.restclient" /> - <reference name="CustomerResource">sample.customer.CustomerComponent/CustomerResource</reference> - <reference name="CustomerCommand">sample.customer.CustomerComponent/CustomerCommand</reference> - </component> - -</composite> diff --git a/cpp/sca/samples/RestCustomer/sample.customer.restclient/Customer.xsd b/cpp/sca/samples/RestCustomer/sample.customer.restclient/Customer.xsd deleted file mode 100644 index 1cec1b0ae6..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer.restclient/Customer.xsd +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<xsd:schema targetNamespace="http://sample.customer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - - <xsd:element name="customer"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="id" type="xsd:int" /> - <xsd:element name="firstName" type="xsd:string" /> - <xsd:element name="lastName" type="xsd:string" /> - <xsd:element name="address" type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - -</xsd:schema> diff --git a/cpp/sca/samples/RestCustomer/sample.customer.restclient/CustomerRestClient.py b/cpp/sca/samples/RestCustomer/sample.customer.restclient/CustomerRestClient.py deleted file mode 100644 index 340da8700d..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer.restclient/CustomerRestClient.py +++ /dev/null @@ -1,85 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -# -# This Python code is a simple sample that provides a Python -# client for the REST Customer sample - - -from xml.etree import ElementTree as et -import sca - -# Locate the customer resource service -customerResource = sca.locateservice("CustomerResource") - -# Show how to invoke CRUD operations on the customer resource -# The CRUD operations translate to HTTP POST, GET, PUT and DELETE -# according to the REST pattern - -customer = customerResource.retrieve("2345") -print "Rest - Retrieved customer " + et.tostring(customer) - -customer = et.fromstring("""<customer xmlns="http://sample.customer"><id>1234</id><firstName>Jane</firstName><lastName>Doe</lastName></customer>""") -url = customerResource.create(customer) -print "Rest - Created customer " + url - -customer = customerResource.retrieve("1234") -print "Rest - Retrieved customer " + et.tostring(customer) - -customer = customerResource.retrieve(url) -print "Rest - Retrieved by url " + et.tostring(customer) - -customer.find("{http://sample.customer}lastName").text="Smith" -customerResource.update("1234", customer) -print "Rest - Updated customer 1234" - -customer = customerResource.retrieve("1234") -print "Rest - Retrieved customer " + et.tostring(customer) - -customerResource.delete("1234") -print "Rest - Deleted customer 1234" - -# Also show how to use REST binding to invoke remote commands -# using HTTP GET and XML over HTTP POST, the REST binding -# uses that command pattern when you don't declare a REST interface -# on your SCA reference - -# Locate the customer command service -customerCommand = sca.locateservice("CustomerCommand") - -# Invoke operations on the customer command service -customer = customerCommand.retrieve("2345") -print "Command - Retrieved customer " + et.tostring(customer) - -customer = et.fromstring("""<customer xmlns="http://sample.customer"><id>1234</id><firstName>Jane</firstName><lastName>Doe</lastName></customer>""") -url = customerCommand.create(customer) -print "Command - Created customer " + url - -customer = customerCommand.retrieve("1234") -print "Command - Retrieved customer " + et.tostring(customer) - -customer.find("{http://sample.customer}lastName").text="Smith" -customerCommand.update("1234", customer) -print "Command - Updated customer 1234" - -customer = customerCommand.retrieve("1234") -print "Command - Retrieved customer " + et.tostring(customer) - -customerCommand.delete("1234") -print "Command - Deleted customer 1234" diff --git a/cpp/sca/samples/RestCustomer/sample.customer.restclient/Makefile.am b/cpp/sca/samples/RestCustomer/sample.customer.restclient/Makefile.am deleted file mode 100644 index 13c14d07e9..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer.restclient/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RestCustomer/deploy -restclientdir=$(deploydir)/sample.customer.restclient - -restclient_DATA = *.py *.composite *.xsd -restclient_SCRIPTS = runrestclient.sh -EXTRA_DIST = runrestclient.sh *.py *.composite *.xsd diff --git a/cpp/sca/samples/RestCustomer/sample.customer.restclient/runrestclient.bat b/cpp/sca/samples/RestCustomer/sample.customer.restclient/runrestclient.bat deleted file mode 100644 index 982b9b5e83..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer.restclient/runrestclient.bat +++ /dev/null @@ -1,53 +0,0 @@ -@echo off
-
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements. See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership. The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License. You may obtain a copy of the License at
-@REM
-@REM http://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied. See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-
-setlocal
-
-if "%TUSCANY_SCACPP%" == "" (
-echo TUSCANY_SCACPP not set
-goto end
-)
-echo using SCA installed at %TUSCANY_SCACPP%
-
-if "%TUSCANY_SDOCPP%" == "" (
-echo TUSCANY_SDOCPP not set
-goto end
-)
-echo using SDO installed at %TUSCANY_SDOCPP%
-
-if "%LIBCURL_HOME%" == "" (
-echo LIBCURL_HOME not set
-goto end
-)
-echo using Libcurl installed at %LIBCURL_HOME%
-
-set PATH=%HTTPD_HOME%\bin;%LIBCURL_HOME%\lib;%TUSCANY_SCACPP%\extensions\rest\interface\bin;%TUSCANY_SCACPP%\extensions\rest\reference\bin;%TUSCANY_SCACPP%\extensions\python\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%PATH%
-set PYTHONPATH=%TUSCANY_SCACPP%\extensions\python\bin
-
-set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\
-set TUSCANY_SCACPP_COMPONENT=sample.customer.CustomerRestClientComponent
-set TUSCANY_SCACPP_BASE_URI=http://localhost:9090
-
-set CUSTOMER_DIR=%TUSCANY_SCACPP_ROOT%\sample.customer
-
-cd %TUSCANY_SCACPP_ROOT%\sample.customer.restclient
-python CustomerRestClient.py
-
-:end
-endlocal
diff --git a/cpp/sca/samples/RestCustomer/sample.customer.restclient/runrestclient.sh b/cpp/sca/samples/RestCustomer/sample.customer.restclient/runrestclient.sh deleted file mode 100755 index 54c068f4e2..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer.restclient/runrestclient.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$PYTHON_LIB != x ]; then -echo "Using Python library installed at $PYTHON_LIB" -export LD_LIBRARY_PATH=$PYTHON_LIB:$LD_LIBRARY_PATH -export PATH=$PYTHON_LIB/../bin:$PATH -fi - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SCACPP/extensions/python/lib:$TUSCANY_SDOCPP/lib:$LD_LIBRARY_PATH -export PYTHONPATH=$TUSCANY_SCACPP/extensions/python/lib:$PYTHONPATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_COMPONENT=sample.customer.CustomerRestClientComponent -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -export CUSTOMER_DIR=$TUSCANY_SCACPP_ROOT/sample.customer - -cd $TUSCANY_SCACPP_ROOT/sample.customer.restclient -python CustomerRestClient.py diff --git a/cpp/sca/samples/RestCustomer/sample.customer.restclient/sample.customer.restclient.composite b/cpp/sca/samples/RestCustomer/sample.customer.restclient/sample.customer.restclient.composite deleted file mode 100644 index 15072f28f8..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer.restclient/sample.customer.restclient.composite +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.customer.restclient"> - - <reference name="CustomerResource"> - <interface.rest/> - <binding.rest/> - </reference> - - <reference name="CustomerCommand"> - <binding.rest/> - </reference> - -</composite>
\ No newline at end of file diff --git a/cpp/sca/samples/RestCustomer/sample.customer/2345.xml b/cpp/sca/samples/RestCustomer/sample.customer/2345.xml deleted file mode 100644 index 48083380ea..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer/2345.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<ns0:customer xmlns:ns0="http://sample.customer"><ns0:id>2345</ns0:id><ns0:firstName>John</ns0:firstName><ns0:lastName>Smith</ns0:lastName></ns0:customer>
\ No newline at end of file diff --git a/cpp/sca/samples/RestCustomer/sample.customer/Customer.xsd b/cpp/sca/samples/RestCustomer/sample.customer/Customer.xsd deleted file mode 100644 index 1cec1b0ae6..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer/Customer.xsd +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<xsd:schema targetNamespace="http://sample.customer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - - <xsd:element name="customer"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="id" type="xsd:int" /> - <xsd:element name="firstName" type="xsd:string" /> - <xsd:element name="lastName" type="xsd:string" /> - <xsd:element name="address" type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - -</xsd:schema> diff --git a/cpp/sca/samples/RestCustomer/sample.customer/CustomerResourceImpl.py b/cpp/sca/samples/RestCustomer/sample.customer/CustomerResourceImpl.py deleted file mode 100644 index 1d6796959e..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer/CustomerResourceImpl.py +++ /dev/null @@ -1,59 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -# -# This Python code implements a simple SCA component that -# manages Customer resources. -# - -import os -import shutil -from xml.etree import ElementTree as et - -qname = "{http://sample.customer}id" -dir = os.environ["CUSTOMER_DIR"] - -class CustomerResourceImpl: - "A class that manages Customer resources" - - def create(self, customer): - id = customer.findtext(qname) - print "Python - CustomerResourceImpl.create " + id - f = open(dir + "/" + id + ".xml", "w") - f.write(et.tostring(customer)) - f.close() - return id - - def retrieve(self, id): - print "Python - CustomerResourceImpl.retrieve " + id - f = open(dir + "/" + id + ".xml", "r") - customer = et.fromstring(f.read()) - f.close() - return customer - - def update(self, id, customer): - print "Python - CustomerResourceImpl.update " + id - f = open(dir + "/" + id + ".xml", "w") - f.write(et.tostring(customer)) - f.close() - - def delete(self, id): - print "Python - CustomerResourceImpl.delete " + id - shutil.copyfile(dir + "/" + id + ".xml", dir + "/" + id + "-bak.xml") - os.remove(dir + "/" + id + ".xml") diff --git a/cpp/sca/samples/RestCustomer/sample.customer/Makefile.am b/cpp/sca/samples/RestCustomer/sample.customer/Makefile.am deleted file mode 100644 index e48bb502c8..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RestCustomer/deploy -compositedir=$(deploydir)/sample.customer - -composite_DATA = *.composite *.py *.xsd *.xml -EXTRA_DIST = *.composite *.py *.xsd *.xml diff --git a/cpp/sca/samples/RestCustomer/sample.customer/sample.customer.composite b/cpp/sca/samples/RestCustomer/sample.customer/sample.customer.composite deleted file mode 100644 index 1ee3b2d6a2..0000000000 --- a/cpp/sca/samples/RestCustomer/sample.customer/sample.customer.composite +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.customer"> - - <service name="CustomerResource"> - <interface.rest/> - <binding.rest/> - <reference>CustomerComponent</reference> - </service> - - <service name="CustomerCommand"> - <binding.rest/> - <reference>CustomerComponent</reference> - </service> - - <component name="CustomerComponent"> - <implementation.python module="CustomerResourceImpl" class="CustomerResourceImpl"/> - </component> - -</composite> diff --git a/cpp/sca/samples/RestYahoo/Makefile.am b/cpp/sca/samples/RestYahoo/Makefile.am deleted file mode 100644 index de28cf2d53..0000000000 --- a/cpp/sca/samples/RestYahoo/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RestYahoo/deploy -SUBDIRS = sample.yahoo sample.yahoo.client - -EXTRA_DIST = *.composite README.html -deploy_DATA = *.composite - diff --git a/cpp/sca/samples/RestYahoo/README b/cpp/sca/samples/RestYahoo/README deleted file mode 100644 index 79ee6c7813..0000000000 --- a/cpp/sca/samples/RestYahoo/README +++ /dev/null @@ -1,19 +0,0 @@ -Tuscany SCA for C++ Samples - REST Yahoo Sample -=============================================== - -This is a very simple sample to show how to use the SCA REST binding to -invoke the Yahoo Web Search REST service. - -There are two sub-projects in this workspace: - - sample.yahoo - This contains the SCDL artifacts and source code for the WebSearch - Component which calls a Reference that is configured to call the - Yahoo service - - sample.yahoo.client - A Ruby client which calls the WebSearch component. - -Additionally, there is the sample.yahoo.app.composite file. This -describes the configuration of the SCA Yahoo Search composite deployed to -the SCA runtime. - -See the README.html file for instructions to build and run this sample diff --git a/cpp/sca/samples/RestYahoo/README.html b/cpp/sca/samples/RestYahoo/README.html deleted file mode 100644 index 967f2c84b1..0000000000 --- a/cpp/sca/samples/RestYahoo/README.html +++ /dev/null @@ -1,202 +0,0 @@ - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../../doc/css/maven-base.css"); -@import url("../../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - REST Yahoo Search Sample</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany SCA Native Samples - REST Yahoo Search Sample</H1> - - <P>This is a very simple sample to show how to use the SCA REST binding to - invoke the Yahoo Web Search REST service. - </P> - <P>The REST Yahoo Search sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RESTExtension.html">REST Reference Extensions</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </P> - <P>There are two sub projects in this workspace:</P> - <UL> - <LI>sample.yahoo<BR/> - This contains the SCDL artifacts and Python source code for the WebSearch - Component which calls a Reference that is configured to call the - Yahoo service - </LI> - <LI>sample.yahoo.client<BR/> - A Ruby client which calls the WebSearch component - </LI> - </UL> - <P>Additionally, there is the sample.yahoo.app.composite file. This - describes the configuration of the SCA Yahoo Search composite deployed to - the SCA runtime. - </P> - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the REST Yahoo Search sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#linuxrun">Running the REST Yahoo Search sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#winbld">Building the REST Yahoo Search sample on Windows</A></LI> - <LI><A HREF="#winrun">Running the REST Yahoo Search sample on Windows</A></LI> - <LI><A HREF="#help">Getting help</A></LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the Ruby & Python samples on Linux and Mac OS X</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the samples on Linux and Mac OS X</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>As the REST Yahoo sample is based on Ruby and Python scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the Ruby and Python samples only with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure --enable-ruby --enable-python --enable-cpp=no --prefix=$TUSCANY_SCACPP/samples</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide the --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/RestYahoo</LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the REST Yahoo Search sample on Linux and Mac OS X</H2></A> - <OL> - <LI>The REST Yahoo Search sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RESTExtension.html">REST Reference Extensions</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/RestYahoo/deploy/sample.yahoo.client</LI> - <LI>./runclient.sh</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winbld"><H2>Building the REST Yahoo Search sample on Windows</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>\samples - go directly to <A HREF="#winrun">Running the samples on Windows</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>As this sample is based on Ruby and Python scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\RestYahoo</LI> - <LI>deploy.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winrun"><H2>Running the REST Yahoo Search sample on Windows</H2></A> - <OL> - <LI>The REST Yahoo Search sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RESTExtension.html">REST Reference Extensions</A></LI> - <LI><A HREF="../../doc/PythonExtension.html">Python Extension</A></LI> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>LIBCURL_HOME=<path to libcurl></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\RestYahoo\deploy\sample.yahoo.client</LI> - <LI>runclient.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> - diff --git a/cpp/sca/samples/RestYahoo/sample.yahoo.app.composite b/cpp/sca/samples/RestYahoo/sample.yahoo.app.composite deleted file mode 100644 index eb19962fe3..0000000000 --- a/cpp/sca/samples/RestYahoo/sample.yahoo.app.composite +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.yahoo.app"> - - <component name="sample.yahoo.app.WebSearchComponent"> - <implementation.composite name="sample.yahoo" /> - </component> - -</composite> diff --git a/cpp/sca/samples/RestYahoo/sample.yahoo.client/Makefile.am b/cpp/sca/samples/RestYahoo/sample.yahoo.client/Makefile.am deleted file mode 100644 index 4fcbf00e16..0000000000 --- a/cpp/sca/samples/RestYahoo/sample.yahoo.client/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RestYahoo/deploy -clientdir=$(deploydir)/sample.yahoo.client - -client_DATA = *.rb -client_SCRIPTS = runclient.sh -EXTRA_DIST = runclient.sh *.rb diff --git a/cpp/sca/samples/RestYahoo/sample.yahoo.client/YahooWebSearchClient.rb b/cpp/sca/samples/RestYahoo/sample.yahoo.client/YahooWebSearchClient.rb deleted file mode 100644 index 0a87ccd815..0000000000 --- a/cpp/sca/samples/RestYahoo/sample.yahoo.client/YahooWebSearchClient.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -require("tuscany_sca_ruby") - -yahooWebSearch = SCA::locateService("WebSearchComponent") - -results = yahooWebSearch.search("Tuscany") -print results, "\n" diff --git a/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.bat b/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.bat deleted file mode 100644 index bf95f27738..0000000000 --- a/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.bat +++ /dev/null @@ -1,50 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo TUSCANY_SCACPP not set -goto end -) -echo using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo TUSCANY_SDOCPP not set -goto end -) -echo using SDO installed at %TUSCANY_SDOCPP% - -if "%LIBCURL_HOME%" == "" ( -echo LIBCURL_HOME not set -goto end -) -echo using Libcurl installed at %LIBCURL_HOME% - -set PATH=%LIBCURL_HOME%\lib;%TUSCANY_SCACPP%\extensions\rest\interface\bin;%TUSCANY_SCACPP%\extensions\ruby\bin;%TUSCANY_SCACPP%\extensions\rest\reference\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%PATH% -set PYTHONPATH=%TUSCANY_SCACPP%\extensions\python\bin - -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ -set TUSCANY_SCACPP_COMPONENT=sample.yahoo.app.WebSearchComponent - -cd %TUSCANY_SCACPP_ROOT%\sample.yahoo.client -ruby -I%TUSCANY_SCACPP%\extensions\ruby\bin YahooWebSearchClient.rb - -:end -endlocal diff --git a/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.sh b/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.sh deleted file mode 100755 index 7dbae64748..0000000000 --- a/cpp/sca/samples/RestYahoo/sample.yahoo.client/runclient.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/ruby/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$TUSCANY_SCACPP/extensions/python/lib:$LD_LIBRARY_PATH -export PYTHONPATH=$TUSCANY_SCACPP/extensions/python/lib:$PYTHONPATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_COMPONENT=sample.yahoo.app.WebSearchComponent - -cd $TUSCANY_SCACPP_ROOT/sample.yahoo.client - -libsuffix=.so -UNAME=`uname -s` -if [ "x$UNAME" = "xDarwin" ]; then - libsuffix=.dylib -fi -# Set LD_PRELOAD to use the expat included in Python to avoid incompatibilities -export LD_PRELOAD=$TUSCANY_SCACPP/extensions/python/lib/libtuscany_sca_python$libsuffix - -ruby -I$TUSCANY_SCACPP/extensions/ruby/lib YahooWebSearchClient.rb diff --git a/cpp/sca/samples/RestYahoo/sample.yahoo/Makefile.am b/cpp/sca/samples/RestYahoo/sample.yahoo/Makefile.am deleted file mode 100644 index 7e330ca7b1..0000000000 --- a/cpp/sca/samples/RestYahoo/sample.yahoo/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RestYahoo/deploy -compositedir=$(deploydir)/sample.yahoo - -composite_DATA = *.composite *.py *.xsd -EXTRA_DIST = *.composite *.py *.xsd diff --git a/cpp/sca/samples/RestYahoo/sample.yahoo/YahooWebSearchImpl.py b/cpp/sca/samples/RestYahoo/sample.yahoo/YahooWebSearchImpl.py deleted file mode 100644 index 7ba6ab80ef..0000000000 --- a/cpp/sca/samples/RestYahoo/sample.yahoo/YahooWebSearchImpl.py +++ /dev/null @@ -1,60 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -try: - import xml.etree.ElementTree -except ImportError: - # Running under a pre-Python2.5 - try: - import elementtree.ElementTree - except ImportError: - print "The RestYahoo sample requires the ElementTree package" - - -def search(searchText): - - print "Python - YahooWebSearchImpl.py running Yahoo search for:", searchText, "with ID:", yahooAppID - - # Use the yahooWebSearchService reference to call the Yahoo REST service - # also use the yahooAppID property from the composite definition - xmlResult = yahooWebSearchService.webSearch(appid = yahooAppID, query = searchText, results = 5) - - print "Python - YahooWebSearchImpl.py formatting result from Yahoo:", xmlResult - - return formatResults(xmlResult, searchText) - - -def formatResults(results, searchText): - - formatted = "Failed to run Yahoo search service for \"" + str(searchText) + "\"" - - ns = "{urn:yahoo:srch}" - pathAndNS = "./" + ns - - formatted = "\n\nYahoo Web Search Results for \""+ str(searchText) +"\"\n" - formatted += results.attrib["totalResultsAvailable"]+ " results available. First "+ results.attrib["totalResultsReturned"]+ " below\n\n" - pos = 1 - - for node in results.findall(".//"+ns+"Result"): - formatted += str(pos) + ". "+ node.findtext(pathAndNS+"Title") +"\n\t" - formatted += node.findtext(pathAndNS+"Summary") +"\n\t" - formatted += node.findtext(pathAndNS+"Url") +"\n\n" - pos += 1 - - return formatted diff --git a/cpp/sca/samples/RestYahoo/sample.yahoo/YahooWebSearchResponse.xsd b/cpp/sca/samples/RestYahoo/sample.yahoo/YahooWebSearchResponse.xsd deleted file mode 100644 index 210aabcf42..0000000000 --- a/cpp/sca/samples/RestYahoo/sample.yahoo/YahooWebSearchResponse.xsd +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - targetNamespace="urn:yahoo:srch" - xmlns="urn:yahoo:srch" - elementFormDefault="qualified"> - - <xsd:element name="ResultSet"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="Result" type="ResultType" minOccurs="0" maxOccurs="100" /> - </xsd:sequence> - <xsd:attribute name="totalResultsAvailable" type="xsd:integer" /> - <xsd:attribute name="totalResultsReturned" type="xsd:integer" /> - <xsd:attribute name="firstResultPosition" type="xsd:integer" /> - </xsd:complexType> - </xsd:element> - - <xsd:complexType name="ResultType"> - <xsd:sequence> - <xsd:element name="Title" type="xsd:string" /> - <xsd:element name="Summary" type="xsd:string" /> - <xsd:element name="Url" type="xsd:string" /> - <xsd:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/> - </xsd:sequence> - </xsd:complexType> - -</xsd:schema> - diff --git a/cpp/sca/samples/RestYahoo/sample.yahoo/sample.yahoo.composite b/cpp/sca/samples/RestYahoo/sample.yahoo/sample.yahoo.composite deleted file mode 100644 index a37a9be7c4..0000000000 --- a/cpp/sca/samples/RestYahoo/sample.yahoo/sample.yahoo.composite +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="sample.yahoo"> - - <component name="WebSearchComponent"> - <implementation.python module="YahooWebSearchImpl"/> - <reference name="yahooWebSearchService">YahooWebSearchReference</reference> - <property name="yahooAppID">ApacheTuscanyC++SampleRestYahoo</property> - </component> - - <reference name="YahooWebSearchReference"> - <binding.rest uri="http://search.yahooapis.com/WebSearchService/V1"/> - </reference> - -</composite> diff --git a/cpp/sca/samples/RubyBigBank/Makefile.am b/cpp/sca/samples/RubyBigBank/Makefile.am deleted file mode 100644 index ae0b4958f1..0000000000 --- a/cpp/sca/samples/RubyBigBank/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RubyBigBank/deploy -SUBDIRS = bigbank.account bigbank.client bigbank.wsclient -EXTRA_DIST = *.composite README.html -deploy_DATA = *.composite diff --git a/cpp/sca/samples/RubyBigBank/README b/cpp/sca/samples/RubyBigBank/README deleted file mode 100644 index 6b2dba4206..0000000000 --- a/cpp/sca/samples/RubyBigBank/README +++ /dev/null @@ -1,21 +0,0 @@ -Tuscany SCA for C++ Samples - Ruby BigBank Sample -=============================================== - -This sample implements the "Simplified BigBank" scenario. A whitepaper -describing the scenario based on the SCA 0.9 Assembly specification can be -found here. This sample uses multiple Ruby components, calls out to an -external Web Service via a reference, exposes the service as a Web Service -and also provides a PHP based client. - -There are two sub projects in this workspace: - - bigbank.account - This contains the source code and SCDL artifacts for the SCA BigBank - composite implementing the account services. - - - bigbank.client - A sample client which does a local call to the BigBank service. - -Additionally, there is the bigbank.app.composite file. This describes the -configuration of the SCA BigBank composite deployed to the SCA runtime. - -See the README.html file for instructions to build and run this sample diff --git a/cpp/sca/samples/RubyBigBank/README.html b/cpp/sca/samples/RubyBigBank/README.html deleted file mode 100644 index 6eeb377d6f..0000000000 --- a/cpp/sca/samples/RubyBigBank/README.html +++ /dev/null @@ -1,312 +0,0 @@ - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../../doc/css/maven-base.css"); -@import url("../../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - Ruby BigBank Sample</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany SCA Native Samples - Ruby BigBank Sample</H1> - - <P>This sample implements the "Simplified BigBank" scenario. A whitepaper describing - the scenario based on the SCA 0.9 Assembly specification can be found - <A HREF="http://www.osoa.org/display/Main/SCA+-+Previously+Published+Specifications">here</A>. - This sample uses multiple Ruby components, calls out to an external Web Service via a reference - and exposes the service as a Web Service. - </P> - <P>The Ruby BigBank sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Services Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </P> - <P>There are three sub projects in this workspace:</P> - <UL> - <LI>bigbank.account<BR/> - This contains the source code and SCDL artifacts for the SCA Ruby BigBank - composite implementing the account services. - </LI> - <LI>bigbank.client<BR/> - A sample client which does a local call to the BigBank service. - </LI> - <LI>bigbank.wsclient<BR/> - A sample client which uses an SCA Web Service reference to make a remote - call to the BigBank service. - </LI> - </UL> - <P>Additionally, there is the bigbank.app.composite file. This - describes the configuration of the SCA BigBank composite deployed to the SCA - runtime. - </P> - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the Ruby BigBank sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#linuxrun">Running the Ruby BigBank sample on Linux and Mac OS X:</A></LI> - <UL> - <LI><A HREF="#linuxbasic">Running the basic client</A></LI> - <LI><A HREF="#linuxws">Running with Web Service clients</A></LI> - </UL> - <LI><A HREF="#winbld">Building the Ruby BigBank sample on Windows</A></LI> - <LI><A HREF="#winrun">Running the Ruby BigBank sample on Windows:</A></LI> - <UL> - <LI><A HREF="#winbasic">Running the basic client</A></LI> - <LI><A HREF="#winws">Running with Web Service clients</A></LI> - </UL> - <LI><A HREF="#help">Getting help</A></LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the Ruby BigBank sample on Linux and Mac OS X</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the samples on Linux and Mac OS X</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>As the Ruby BigBank sample is based on Ruby scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the Ruby samples only with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure --enable-ruby --enable-cpp=no --prefix=$TUSCANY_SCACPP/samples</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide the --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/RubyBigBank - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the Ruby BigBank sample on Linux and Mac OS X</H2></A> - <A NAME="linuxbasic"><H3>BigBank with basic client</H3></A> - <OL> - <LI>The Ruby BigBank sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Services Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/RubyBigBank/deploy/bigbank.client</LI> - <LI>./runclient.sh</LI> - </UL> - </LI> - </OL> - <A NAME="linuxws"><H3>BigBank with Web Service clients</H3></A> - <OL> - <LI>The Ruby BigBank sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Services Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>Ensure you have enabled Axis2/C to run Tuscany SCA services. Follow the instructions - found <A HREF="../../doc/Axis2CWSExtension.html#deploy">here</A>. - </LI> - <LI>Start the Axis2/C simple http server: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to Axis2/C version 0.96></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>/samples/RubyBigBank/deploy/bigbank.account</LI> - <LI>./runwsserver.sh</LI> - </OL> - </LI> - <LI>Now run the Web Service client: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to Axis2/C version 0.96></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/RubyBigBank/deploy/bigbank.wsclient</LI> - <LI>./runwsclient.sh</LI> - </UL> - </LI> - </OL> - </LI> - <LI>The PHP web client detailed in the - <A HREF="../CppBigBank/README.html">CppBigBank</A> sample can also be used - with the Ruby BigBank service that is served by the Axis2/C http server started above. - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winbld"><H2>Building the Ruby BigBank sample on Windows</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>\samples - go directly to <A HREF="#winrun">Running the samples on Windows</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - </UL></LI> - </LI> - <LI>As this sample is based on Ruby scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\RubyBigBank</LI> - <LI>deploy.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winrun"><H2>Running the Ruby BigBank sample on Windows</H2></A> - <A NAME="winbasic"><H3>BigBank with basic client</H3></A> - <OL> - <LI>The Ruby BigBank sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Services Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\RubyBigBank\deploy\bigbank.client</LI> - <LI>runclient.bat</LI> - </UL> - </LI> - </OL> - <A NAME="winws"><H3>BigBank with Web Service clients</H3></A> - <OL> - <LI>The Ruby BigBank sample requires the following extensions: - <UL> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - <LI><A HREF="../../doc/Axis2CWSExtension.html">Axis2/C Web Services Extension</A></LI> - </UL> - Please follow the documentation to ensure you have these extensions built and installed - on your system - </LI> - <LI>Ensure you have enabled Axis2/C to run Tuscany SCA services. Follow the instructions - found <A HREF="../../doc/Axis2CWSExtension.html#deploy">here</A>. - </LI> - <LI>Start the Axis2/C simple http server: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to Axis2/C version 0.96></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>\samples\RubyBigBank\deploy\bigbank.account - </LI> - <LI>runwsserver.bat</LI> - </OL> - </LI> - <LI>Now run the Web Service client: - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to Axis2/C version 0.96></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/RubyBigBank/deploy/bigbank.wsclient</LI> - <LI>./runwsclient.bat</LI> - </UL> - </LI> - </OL> - </LI> - <LI>The PHP web client detailed in the - <A HREF="../CppBigBank/README.html">CppBigBank</A> sample can also be used - with the Ruby BigBank service that is served by the Axis2/C http server started above. - </LI> - </OL> - </DIV> - - - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> - diff --git a/cpp/sca/samples/RubyBigBank/bigbank.account/AccountDataServiceImpl.rb b/cpp/sca/samples/RubyBigBank/bigbank.account/AccountDataServiceImpl.rb deleted file mode 100644 index 8ae0e23bab..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.account/AccountDataServiceImpl.rb +++ /dev/null @@ -1,72 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -require "rexml/document" -include REXML - -class AccountDataServiceImpl - - def initialize() - print "Ruby - AccountDataServiceImpl.initialize\n" - end - - def getCheckingAccount(id) - print "Ruby - AccountDataServiceImpl.getCheckingAccount ", id, "\n" - - result = Document.new <<-eof - <CheckingAccount xmlns="http://www.bigbank.com/AccountService" - xsi:type="CheckingAccount" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <accountNumber>#{ id.to_s + "_CHA12345"}</accountNumber> - <balance>1500.0</balance> - </CheckingAccount> - eof - - return result - end - - def getSavingsAccount(id) - print "Ruby - AccountDataServiceImpl.getSavingsAccount ", id, "\n" - - result = Document.new <<-eof - <SavingsAccount xmlns="http://www.bigbank.com/AccountService" - xsi:type="SavingsAccount" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <accountNumber>#{ id.to_s + "_SAA12345"}</accountNumber> - <balance>1500.0</balance> - </SavingsAccount> - eof - - return result - end - - def getStockAccount(id) - print "Ruby - AccountDataServiceImpl.getStockAccount ", id, "\n" - - result = Document.new <<-eof - <StockAccount xmlns="http://www.bigbank.com/AccountService" - xsi:type="StockAccount" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <accountNumber>#{ id.to_s + "_STA12345"}</accountNumber> - <symbol>IBM</symbol> - <quantity>100</quantity> - <balance></balance> - </StockAccount> - eof - - return result - end - -end diff --git a/cpp/sca/samples/RubyBigBank/bigbank.account/AccountService.wsdl b/cpp/sca/samples/RubyBigBank/bigbank.account/AccountService.wsdl deleted file mode 100644 index b83c453462..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.account/AccountService.wsdl +++ /dev/null @@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:tns="http://www.bigbank.com/AccountService" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.bigbank.com/AccountService" - name="AccountService"> - - <wsdl:types> - <xsd:schema - targetNamespace="http://www.bigbank.com/AccountService" - xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - - <xsd:element name="getAccountReport"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="customerID" - type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="getAccountReportResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="result" - type="tns:AccountReport" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:complexType name="AccountReport"> - <xsd:sequence> - <xsd:element name="checking" - type="tns:CheckingAccount" maxOccurs="unbounded" /> - <xsd:element name="savings" - type="tns:SavingsAccount" maxOccurs="unbounded" /> - <xsd:element name="stocks" type="tns:StockAccount" - maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="StockAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="symbol" type="xsd:string" /> - <xsd:element name="quantity" type="xsd:integer" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="CheckingAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="SavingsAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - </xsd:schema> - </wsdl:types> - - <wsdl:message name="getAccountReportRequest"> - <wsdl:part element="tns:getAccountReport" - name="getAccountReportRequest" /> - </wsdl:message> - - <wsdl:message name="getAccountReportResponse"> - <wsdl:part element="tns:getAccountReportResponse" - name="getAccountReportResponse" /> - </wsdl:message> - - <wsdl:portType name="AccountService"> - <wsdl:operation name="getAccountReport"> - <wsdl:input message="tns:getAccountReportRequest" /> - <wsdl:output message="tns:getAccountReportResponse" /> - </wsdl:operation> - </wsdl:portType> - - <wsdl:binding name="AccountServiceSOAP" type="tns:AccountService"> - <soap:binding style="document" - transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="getAccountReport"> - <soap:operation - soapAction="http://www.bigbank.com/AccountService/getAccountReport" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - - <wsdl:service name="AccountService"> - <wsdl:port binding="tns:AccountServiceSOAP" - name="AccountServiceSOAP"> - <soap:address - location="http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/AccountService" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> diff --git a/cpp/sca/samples/RubyBigBank/bigbank.account/AccountServiceImpl.rb b/cpp/sca/samples/RubyBigBank/bigbank.account/AccountServiceImpl.rb deleted file mode 100644 index aab789ca13..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.account/AccountServiceImpl.rb +++ /dev/null @@ -1,82 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -require "rexml/document" -include REXML - -class AccountServiceImpl - - attr_writer :accountDataService - attr_writer :stockQuoteService - attr_writer :currency - - def initialize() - print "Ruby - AccountServiceImpl.initialize\n" - end - - def getAccountReport(customerID) - - # Get the checking account info - checking = @accountDataService.getCheckingAccount(customerID) - - # Get the savings account info - savings = @accountDataService.getSavingsAccount(customerID) - - # Get the stocks account info - stock = @accountDataService.getStockAccount(customerID); - symbol = stock.root.elements["symbol"].text - quantity = stock.root.elements["quantity"].text - - # Get the stock price - price = @stockQuoteService.getQuote(symbol); - - # Convert to the configured currency - price = price.to_f * 0.80 if @currency == "EUR" - - # Calculate the balance - balance = price.to_f * quantity.to_f - - # Form the AccountReport document - report = Document.new <<-eof - <AccountReport xmlns="http://www.bigbank.com/AccountService" - xsi:type="AccountReport" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - - <checking> - <accountNumber>#{ checking.root.elements["accountNumber"].text }</accountNumber> - <balance>#{ checking.root.elements["balance"].text }</balance> - </checking> - - <savings> - <accountNumber>#{ savings.root.elements["accountNumber"].text }</accountNumber> - <balance>#{ savings.root.elements["balance"].text }</balance> - </savings> - - <stocks> - <accountNumber>#{ stock.root.elements["accountNumber"].text }</accountNumber> - <symbol>#{ symbol }</symbol> - <quantity>#{ quantity }</quantity> - <balance>#{ balance }</balance> - </stocks> - - </AccountReport> - eof - - return report - end - -end diff --git a/cpp/sca/samples/RubyBigBank/bigbank.account/Makefile.am b/cpp/sca/samples/RubyBigBank/bigbank.account/Makefile.am deleted file mode 100644 index 6e5ec38414..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.account/Makefile.am +++ /dev/null @@ -1,24 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RubyBigBank/deploy -compositedir=$(deploydir)/bigbank.account - -composite_SCRIPTS = runwsserver.sh - -composite_DATA = *.composite *.wsdl *.xsd *.rb -EXTRA_DIST = *.composite *.wsdl *.xsd runwsserver.sh *.rb diff --git a/cpp/sca/samples/RubyBigBank/bigbank.account/StockQuoteServiceImpl.rb b/cpp/sca/samples/RubyBigBank/bigbank.account/StockQuoteServiceImpl.rb deleted file mode 100644 index 7f8634072c..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.account/StockQuoteServiceImpl.rb +++ /dev/null @@ -1,52 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -require "rexml/document" -include REXML - -class StockQuoteServiceImpl - - attr_writer :webService - - def initialize() - print "Ruby - StockQuoteServiceImpl.initialize\n" - end - - def getQuote(symbol) - print "Ruby - StockQuoteServiceImpl.getQuote ", symbol, "\n" - - price = 0 - catch (:RuntimeError) do - begin - - result = @webService.GetQuote(symbol) - doc = Document.new(result) - price = doc.root.elements["Stock"].elements["Last"].text; - - rescue - # offline or StockQuote web service is down - price = 95.0 - end - end - - print "Ruby - stock price = ", price, "\n" - - return price.to_f - end - -end
\ No newline at end of file diff --git a/cpp/sca/samples/RubyBigBank/bigbank.account/StockQuoteTypes.xsd b/cpp/sca/samples/RubyBigBank/bigbank.account/StockQuoteTypes.xsd deleted file mode 100644 index 2f7012b5fb..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.account/StockQuoteTypes.xsd +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <xs:element name="StockQuotes" type="tStockQuotes"/> - <xs:complexType name="tStockQuotes"> - <xs:sequence> - <xs:element name="Stock" type="tStock" minOccurs="0" maxOccurs="unbounded"/> - <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - <xs:anyAttribute namespace="##any" processContents="lax"/> - </xs:complexType> - - <xs:complexType name="tStock"> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="1" name="Symbol" type="xs:string"/> - <xs:element minOccurs="0" maxOccurs="1" name="Last" type="xs:float"/> - <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> - </xs:sequence> - <xs:anyAttribute namespace="##any" processContents="lax"/> - </xs:complexType> -</xs:schema>
\ No newline at end of file diff --git a/cpp/sca/samples/RubyBigBank/bigbank.account/StockQuoteWebService.wsdl b/cpp/sca/samples/RubyBigBank/bigbank.account/StockQuoteWebService.wsdl deleted file mode 100644 index c14f97c87b..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.account/StockQuoteWebService.wsdl +++ /dev/null @@ -1,165 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:s="http://www.w3.org/2001/XMLSchema" - xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" - xmlns:tns="http://www.webserviceX.NET/" - xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" - xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" - targetNamespace="http://www.webserviceX.NET/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - <wsdl:types> - <s:schema elementFormDefault="qualified" - targetNamespace="http://www.webserviceX.NET/"> - <s:element name="GetQuote"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" - name="symbol" type="s:string" /> - </s:sequence> - </s:complexType> - - </s:element> - <s:element name="GetQuoteResponse"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" - name="GetQuoteResult" type="s:string" /> - </s:sequence> - </s:complexType> - </s:element> - <s:element name="string" nillable="true" type="s:string" /> - - </s:schema> - </wsdl:types> - <wsdl:message name="GetQuoteSoapIn"> - <wsdl:part name="parameters" element="tns:GetQuote" /> - </wsdl:message> - <wsdl:message name="GetQuoteSoapOut"> - <wsdl:part name="parameters" element="tns:GetQuoteResponse" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpGetIn"> - - <wsdl:part name="symbol" type="s:string" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpGetOut"> - <wsdl:part name="Body" element="tns:string" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpPostIn"> - <wsdl:part name="symbol" type="s:string" /> - </wsdl:message> - <wsdl:message name="GetQuoteHttpPostOut"> - - <wsdl:part name="Body" element="tns:string" /> - </wsdl:message> - <wsdl:portType name="StockQuoteSoap"> - <wsdl:operation name="GetQuote"> - <documentation xmlns="http://schemas.xmlsoap.org/wsdl/"> - Get Stock quote for a company Symbol - </documentation> - <wsdl:input message="tns:GetQuoteSoapIn" /> - <wsdl:output message="tns:GetQuoteSoapOut" /> - </wsdl:operation> - - </wsdl:portType> - <wsdl:portType name="StockQuoteHttpGet"> - <wsdl:operation name="GetQuote"> - <documentation xmlns="http://schemas.xmlsoap.org/wsdl/"> - Get Stock quote for a company Symbol - </documentation> - <wsdl:input message="tns:GetQuoteHttpGetIn" /> - <wsdl:output message="tns:GetQuoteHttpGetOut" /> - </wsdl:operation> - </wsdl:portType> - - <wsdl:portType name="StockQuoteHttpPost"> - <wsdl:operation name="GetQuote"> - <documentation xmlns="http://schemas.xmlsoap.org/wsdl/"> - Get Stock quote for a company Symbol - </documentation> - <wsdl:input message="tns:GetQuoteHttpPostIn" /> - <wsdl:output message="tns:GetQuoteHttpPostOut" /> - </wsdl:operation> - </wsdl:portType> - <wsdl:binding name="StockQuoteSoap" type="tns:StockQuoteSoap"> - - <soap:binding transport="http://schemas.xmlsoap.org/soap/http" - style="document" /> - <wsdl:operation name="GetQuote"> - <soap:operation - soapAction="http://www.webserviceX.NET/GetQuote" style="document" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - - </wsdl:operation> - </wsdl:binding> - <wsdl:binding name="StockQuoteHttpGet" - type="tns:StockQuoteHttpGet"> - <http:binding verb="GET" /> - <wsdl:operation name="GetQuote"> - <http:operation location="/GetQuote" /> - <wsdl:input> - <http:urlEncoded /> - </wsdl:input> - - <wsdl:output> - <mime:mimeXml part="Body" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:binding name="StockQuoteHttpPost" - type="tns:StockQuoteHttpPost"> - <http:binding verb="POST" /> - <wsdl:operation name="GetQuote"> - <http:operation location="/GetQuote" /> - - <wsdl:input> - <mime:content type="application/x-www-form-urlencoded" /> - </wsdl:input> - <wsdl:output> - <mime:mimeXml part="Body" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:service name="StockQuote"> - - <wsdl:port name="StockQuoteSoap" binding="tns:StockQuoteSoap"> - <soap:address - location="http://www.webservicex.net/stockquote.asmx" /> - </wsdl:port> - <wsdl:port name="StockQuoteHttpGet" - binding="tns:StockQuoteHttpGet"> - <http:address - location="http://www.webservicex.net/stockquote.asmx" /> - </wsdl:port> - <wsdl:port name="StockQuoteHttpPost" - binding="tns:StockQuoteHttpPost"> - <http:address - location="http://www.webservicex.net/stockquote.asmx" /> - </wsdl:port> - - </wsdl:service> -</wsdl:definitions>
\ No newline at end of file diff --git a/cpp/sca/samples/RubyBigBank/bigbank.account/bigbank.account.composite b/cpp/sca/samples/RubyBigBank/bigbank.account/bigbank.account.composite deleted file mode 100644 index 8fff8425a1..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.account/bigbank.account.composite +++ /dev/null @@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="bigbank.account"> - - <service name="AccountService"> - <interface.wsdl interface="http://www.bigbank.com/AccountService#wsdl.interface(AccountService)"/> - <!-- The endpoint is optional --> - <!-- <binding.ws endpoint="http://www.bigbank.com/AccountService#wsdl.endpoint(AccountService/AccountServiceSOAP)"/> --> - <binding.ws/> - <reference>AccountServiceComponent</reference> - </service> - - <component name="AccountServiceComponent"> - <implementation.ruby script="AccountServiceImpl.rb" class="AccountServiceImpl"/> - <reference name="accountDataService">AccountDataServiceComponent</reference> - <reference name="stockQuoteService">StockQuoteServiceComponent</reference> - <property name="currency">USD</property> - </component> - - <component name="AccountDataServiceComponent"> - <implementation.ruby script="AccountDataServiceImpl.rb" class="AccountDataServiceImpl"/> - </component> - - <component name="StockQuoteServiceComponent"> - <implementation.ruby script="StockQuoteServiceImpl.rb" class="StockQuoteServiceImpl"/> - <reference name="webService">StockQuoteWebService</reference> - </component> - - <reference name="StockQuoteWebService"> - <interface.wsdl interface="http://www.webserviceX.NET/#wsdl.interface(StockQuoteSoap)"/> - <binding.ws endpoint="http://www.webserviceX.NET/#wsdl.endpoint(StockQuote/StockQuoteSoap)"/> - </reference> - -</composite> diff --git a/cpp/sca/samples/RubyBigBank/bigbank.account/runwsserver.bat b/cpp/sca/samples/RubyBigBank/bigbank.account/runwsserver.bat deleted file mode 100644 index 3ab4275436..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.account/runwsserver.bat +++ /dev/null @@ -1,51 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo Using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo Using SDO installed at %TUSCANY_SDOCPP% - -if "%AXIS2C_HOME%" == "" ( -echo "AXIS2C_HOME not set" -goto end -) -echo Using Axis2C installed at %AXIS2C_HOME% - -set APFULLDIR=%~d0%~p0 -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ -set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -rem Run the server -set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SCACPP%\extensions\cpp\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH% - -cd %AXIS2C_HOME%\bin -.\axis2_http_server.exe - -:end -endlocal diff --git a/cpp/sca/samples/RubyBigBank/bigbank.account/runwsserver.sh b/cpp/sca/samples/RubyBigBank/bigbank.account/runwsserver.sh deleted file mode 100755 index e3bbca46c6..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.account/runwsserver.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd $AXIS2C_HOME/bin -./axis2_http_server diff --git a/cpp/sca/samples/RubyBigBank/bigbank.app.composite b/cpp/sca/samples/RubyBigBank/bigbank.app.composite deleted file mode 100644 index dd94e61e5b..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.app.composite +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="bigbank.app"> - - <component name="bigbank.AccountManagementComponent"> - <implementation.composite name="bigbank.account"/> - </component> - - <component name="bigbank.AccountWSClientComponent"> - <implementation.composite name="bigbank.wsclient"/> - <reference name="AccountService">bigbank.AccountManagementComponent/AccountService</reference> - </component> - -</composite> diff --git a/cpp/sca/samples/RubyBigBank/bigbank.client/AccountClient.rb b/cpp/sca/samples/RubyBigBank/bigbank.client/AccountClient.rb deleted file mode 100644 index 31c0acc909..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.client/AccountClient.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -require("tuscany_sca_ruby") - -accountService = SCA::locateService("AccountServiceComponent") - -report = accountService.getAccountReport(1234) - -checking = report.root.elements["checking"] -savings = report.root.elements["savings"] -stocks = report.root.elements["stocks"] - -print "\n" -print "Checking account: ", checking.elements["accountNumber"].text.strip, "\n" -print "Balance: ", checking.elements["balance"].text.strip, "\n" - -print "Savings account: ", savings.elements["accountNumber"].text.strip, "\n" -print "Balance: ", savings.elements["balance"].text.strip, "\n" - -print "Stocks account:", stocks.elements["accountNumber"].text.strip, "\n" -print "Symbol: ", stocks.elements["symbol"].text.strip, "\n" -print "Quantity: ", stocks.elements["quantity"].text.strip, "\n" -print "Balance: ", stocks.elements["balance"].text.strip, "\n" diff --git a/cpp/sca/samples/RubyBigBank/bigbank.client/Makefile.am b/cpp/sca/samples/RubyBigBank/bigbank.client/Makefile.am deleted file mode 100644 index 4e4936746a..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.client/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RubyBigBank/deploy -clientdir=$(deploydir)/bigbank.client - -client_DATA = *.rb -client_SCRIPTS = runclient.sh -EXTRA_DIST = runclient.sh *.rb diff --git a/cpp/sca/samples/RubyBigBank/bigbank.client/runclient.bat b/cpp/sca/samples/RubyBigBank/bigbank.client/runclient.bat deleted file mode 100644 index 0495237f7f..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.client/runclient.bat +++ /dev/null @@ -1,51 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo Using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo Using SDO installed at %TUSCANY_SDOCPP% - -if "%AXIS2C_HOME%" == "" ( -echo "AXIS2C_HOME not set" -goto end -) -echo Using Axis2C installed at %AXIS2C_HOME% - -rem Run the client -set PATH=%TUSCANY_SCACPP%\extensions\ruby\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH% - -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ -set TUSCANY_SCACPP_COMPONENT=bigbank.AccountManagementComponent -set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd %TUSCANY_SCACPP_ROOT%\bigbank.client -ruby -I%TUSCANY_SCACPP%\extensions\ruby\bin AccountClient.rb - -:end -endlocal diff --git a/cpp/sca/samples/RubyBigBank/bigbank.client/runclient.sh b/cpp/sca/samples/RubyBigBank/bigbank.client/runclient.sh deleted file mode 100755 index 94d5cd6ff8..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.client/runclient.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/ruby/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_COMPONENT=bigbank.AccountManagementComponent -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd $TUSCANY_SCACPP_ROOT/bigbank.client -ruby -I$TUSCANY_SCACPP/extensions/ruby/lib AccountClient.rb diff --git a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/AccountService.wsdl b/cpp/sca/samples/RubyBigBank/bigbank.wsclient/AccountService.wsdl deleted file mode 100644 index b83c453462..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/AccountService.wsdl +++ /dev/null @@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:tns="http://www.bigbank.com/AccountService" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.bigbank.com/AccountService" - name="AccountService"> - - <wsdl:types> - <xsd:schema - targetNamespace="http://www.bigbank.com/AccountService" - xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - - <xsd:element name="getAccountReport"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="customerID" - type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="getAccountReportResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="result" - type="tns:AccountReport" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:complexType name="AccountReport"> - <xsd:sequence> - <xsd:element name="checking" - type="tns:CheckingAccount" maxOccurs="unbounded" /> - <xsd:element name="savings" - type="tns:SavingsAccount" maxOccurs="unbounded" /> - <xsd:element name="stocks" type="tns:StockAccount" - maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="StockAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="symbol" type="xsd:string" /> - <xsd:element name="quantity" type="xsd:integer" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="CheckingAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="SavingsAccount"> - <xsd:sequence> - <xsd:element name="accountNumber" type="xsd:string" /> - <xsd:element name="balance" type="xsd:float" /> - </xsd:sequence> - </xsd:complexType> - </xsd:schema> - </wsdl:types> - - <wsdl:message name="getAccountReportRequest"> - <wsdl:part element="tns:getAccountReport" - name="getAccountReportRequest" /> - </wsdl:message> - - <wsdl:message name="getAccountReportResponse"> - <wsdl:part element="tns:getAccountReportResponse" - name="getAccountReportResponse" /> - </wsdl:message> - - <wsdl:portType name="AccountService"> - <wsdl:operation name="getAccountReport"> - <wsdl:input message="tns:getAccountReportRequest" /> - <wsdl:output message="tns:getAccountReportResponse" /> - </wsdl:operation> - </wsdl:portType> - - <wsdl:binding name="AccountServiceSOAP" type="tns:AccountService"> - <soap:binding style="document" - transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="getAccountReport"> - <soap:operation - soapAction="http://www.bigbank.com/AccountService/getAccountReport" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - - <wsdl:service name="AccountService"> - <wsdl:port binding="tns:AccountServiceSOAP" - name="AccountServiceSOAP"> - <soap:address - location="http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/AccountService" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> diff --git a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/AccountWSClient.rb b/cpp/sca/samples/RubyBigBank/bigbank.wsclient/AccountWSClient.rb deleted file mode 100644 index 6775b80f7a..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/AccountWSClient.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -require("tuscany_sca_ruby") - -accountService = SCA::locateService("AccountService") - -report = accountService.getAccountReport(1234) - -checking = report.root.elements["checking"] -savings = report.root.elements["savings"] -stocks = report.root.elements["stocks"] - -print "\n\n" -print "Checking account #: ", checking.elements["accountNumber"].text.strip, "\n" -print "Balance: ", checking.elements["balance"].text.strip, "\n" - -print "Savings account #: ", savings.elements["accountNumber"].text.strip, "\n" -print "Balance: ", savings.elements["balance"].text.strip, "\n" - -print "Stocks account #:", stocks.elements["accountNumber"].text.strip, "\n" -print "Symbol: ", stocks.elements["symbol"].text.strip, "\n" -print "Quantity: ", stocks.elements["quantity"].text.strip, "\n" -print "Balance: ", stocks.elements["balance"].text.strip, "\n" diff --git a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/Makefile.am b/cpp/sca/samples/RubyBigBank/bigbank.wsclient/Makefile.am deleted file mode 100644 index 23f8b55959..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RubyBigBank/deploy -clientdir=$(deploydir)/bigbank.wsclient - -client_DATA = *.rb *.composite *.wsdl -client_SCRIPTS = runwsclient.sh -EXTRA_DIST = runwsclient.sh *.rb *.composite *.wsdl diff --git a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/bigbank.wsclient.composite b/cpp/sca/samples/RubyBigBank/bigbank.wsclient/bigbank.wsclient.composite deleted file mode 100644 index f484a2fc7c..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/bigbank.wsclient.composite +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="bigbank.wsclient"> - - <reference name="AccountService"> - <interface.wsdl interface="http://www.bigbank.com/AccountService#wsdl.interface(AccountService)"/> - <binding.ws/> - </reference> - -</composite> diff --git a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/runwsclient.bat b/cpp/sca/samples/RubyBigBank/bigbank.wsclient/runwsclient.bat deleted file mode 100644 index 6e1bb27b4a..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/runwsclient.bat +++ /dev/null @@ -1,51 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo Using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo Using SDO installed at %TUSCANY_SDOCPP% - -if "%AXIS2C_HOME%" == "" ( -echo "AXIS2C_HOME not set" -goto end -) -echo Using Axis2C installed at %AXIS2C_HOME% - -rem Run the client -set PATH=%TUSCANY_SCACPP%\extensions\ruby\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH% - -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ -set TUSCANY_SCACPP_COMPONENT=bigbank.AccountWSClientComponent -set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd %TUSCANY_SCACPP_ROOT%\bigbank.wsclient -ruby -I%TUSCANY_SCACPP%\extensions\ruby\bin AccountWSClient.rb - -:end -endlocal diff --git a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/runwsclient.sh b/cpp/sca/samples/RubyBigBank/bigbank.wsclient/runwsclient.sh deleted file mode 100755 index d50e6a4b0a..0000000000 --- a/cpp/sca/samples/RubyBigBank/bigbank.wsclient/runwsclient.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/ruby/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_COMPONENT=bigbank.AccountWSClientComponent -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd $TUSCANY_SCACPP_ROOT/bigbank.wsclient -ruby -I$TUSCANY_SCACPP/extensions/ruby/lib AccountWSClient.rb diff --git a/cpp/sca/samples/RubyCalculator/Makefile.am b/cpp/sca/samples/RubyCalculator/Makefile.am deleted file mode 100644 index 246ea1852f..0000000000 --- a/cpp/sca/samples/RubyCalculator/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RubyCalculator/deploy -SUBDIRS = sample.calculator sample.calculator.client -EXTRA_DIST = *.composite README.html -deploy_DATA = *.composite diff --git a/cpp/sca/samples/RubyCalculator/README b/cpp/sca/samples/RubyCalculator/README deleted file mode 100644 index 670f561dc1..0000000000 --- a/cpp/sca/samples/RubyCalculator/README +++ /dev/null @@ -1,20 +0,0 @@ -Tuscany SCA for C++ Samples - Calculator Sample -=============================================== - -This is a very simple sample to show how an SCA composite can wire together -two components to implement a Calculator service and expose that service as -a Web Service. - -There are two sub projects in this workspace: - - sample.calculator - This contains the source code and SCDL artifacts for the SCA Calculator. - composite implementing the sample Calculator. - - - sample.calculator.client - A sample client which does a local call to the Calculator service. - -Additionally, there is the sample.calculator.app.composite file. This -describes the configuration of the SCA Calculator composite deployed to the -SCA runtime. - -See the README.html file for instructions to build and run this sample diff --git a/cpp/sca/samples/RubyCalculator/README.html b/cpp/sca/samples/RubyCalculator/README.html deleted file mode 100644 index bb6fe7e0ea..0000000000 --- a/cpp/sca/samples/RubyCalculator/README.html +++ /dev/null @@ -1,187 +0,0 @@ - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../../doc/css/maven-base.css"); -@import url("../../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA Native Samples - Ruby Calculator Sample</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H1>Tuscany SCA Native Samples - Ruby Calculator Sample</H1> - - <P>This is a very simple sample to show how an SCA composite can wire - together two Ruby components to implement a Calculator service and invoke - the service via a local client. - </P> - <P>There are two sub projects in this workspace:</P> - <UL> - <LI>sample.calculator<BR/> - This contains the Ruby scripts and SCDL artifacts for the SCA Calculator - composite implementing the sample Calculator. - </LI> - <LI>sample.calculator.client<BR/> - A sample client which does a local call to the Calculator service. - </LI> - </UL> - <P>Additionally, there is the sample.calculator.app.composite file. This - describes the configuration of the SCA Calculator composite deployed to the SCA - runtime. - </P> - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the Ruby samples on Linux and Mac OS X</A></LI> - <LI><A HREF="#linuxrun">Running the Ruby Calculator sample on Linux and Mac OS X</A></LI> - <LI><A HREF="#winbld">Building the Ruby Calculator sample on Windows</A></LI> - <LI><A HREF="#winrun">Running the Ruby Calculator sample on Windows</A></LI> - <LI><A HREF="#help">Getting help</A></LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the Ruby samples on Linux and Mac OS X</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the samples on Linux and Mac OS X</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL></LI> - </LI> - <LI>As the Ruby Calculator sample is based on Ruby scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the Ruby samples only with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure --enable-ruby --enable-cpp=no --prefix=$TUSCANY_SCACPP/samples</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide the --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/RubyCalculator</LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the Ruby Calculator sample on Linux and Mac OS X</H2></A> - <OL> - <LI>The Ruby Calculator sample requires the following extension: - <UL> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - </UL> - Please follow the documentation to ensure you have this extension built and installed - on your system - </LI> - - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/RubyCalculator/deploy/sample.calculator.client</LI> - <LI>./runclient.sh</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winbld"><H2>Building the Ruby Calculator sample on Windows</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>\samples - go directly to <A HREF="#winrun">Running the samples on Windows</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>As this sample is based on Ruby scripts, a specific compilation step is not necessary - - only deployment is required. Deploy the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\RubyCalculator</LI> - <LI>deploy.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winrun"><H2>Running the Ruby Calculator sample on Windows</H2></A> - <OL> - <LI>The Ruby Calculator sample requires the following extension: - <UL> - <LI><A HREF="../../doc/RubyExtension.html">Ruby Extension</A></LI> - </UL> - Please follow the documentation to ensure you have this extension built and installed - on your system - </LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>\samples\RubyCalculator\deploy\sample.calculator.client</LI> - <LI>runclient.bat</LI> - </UL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>The first place to look is at the Tuscany SCA FAQ at - <A HREF="http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ" - TARGET="_blank">http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://cwiki.apache.org/TUSCANY/mailing-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> - diff --git a/cpp/sca/samples/RubyCalculator/sample.calculator.app.composite b/cpp/sca/samples/RubyCalculator/sample.calculator.app.composite deleted file mode 100644 index ada4d89a1c..0000000000 --- a/cpp/sca/samples/RubyCalculator/sample.calculator.app.composite +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.calculator.app"> - - <component name="sample.calculator.CalculatorComponent"> - <implementation.composite name="sample.calculator" /> - </component> - -</composite> diff --git a/cpp/sca/samples/RubyCalculator/sample.calculator.client/CalculatorClient.rb b/cpp/sca/samples/RubyCalculator/sample.calculator.client/CalculatorClient.rb deleted file mode 100644 index 253928df0c..0000000000 --- a/cpp/sca/samples/RubyCalculator/sample.calculator.client/CalculatorClient.rb +++ /dev/null @@ -1,25 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -require("tuscany_sca_ruby") - -calculator = SCA::locateService("CalculatorComponent") - -x = calculator.div(5, 2) -print x, "\n" diff --git a/cpp/sca/samples/RubyCalculator/sample.calculator.client/Makefile.am b/cpp/sca/samples/RubyCalculator/sample.calculator.client/Makefile.am deleted file mode 100644 index 38f61539d3..0000000000 --- a/cpp/sca/samples/RubyCalculator/sample.calculator.client/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RubyCalculator/deploy -clientdir=$(deploydir)/sample.calculator.client - -client_DATA = *.rb -client_SCRIPTS = runclient.sh -EXTRA_DIST = runclient.sh *.rb diff --git a/cpp/sca/samples/RubyCalculator/sample.calculator.client/runclient.bat b/cpp/sca/samples/RubyCalculator/sample.calculator.client/runclient.bat deleted file mode 100644 index 4a1079986a..0000000000 --- a/cpp/sca/samples/RubyCalculator/sample.calculator.client/runclient.bat +++ /dev/null @@ -1,44 +0,0 @@ -@echo off - -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -setlocal - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo using SCA installed at %TUSCANY_SCACPP% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo using SDO installed at %TUSCANY_SDOCPP% - -set PATH=%TUSCANY_SCACPP%\extensions\ruby\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%PATH% - -set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ -set TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorComponent -set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd %TUSCANY_SCACPP_ROOT%\sample.calculator.client -ruby -I%TUSCANY_SCACPP%\extensions\ruby\bin CalculatorClient.rb - -:end -endlocal diff --git a/cpp/sca/samples/RubyCalculator/sample.calculator.client/runclient.sh b/cpp/sca/samples/RubyCalculator/sample.calculator.client/runclient.sh deleted file mode 100755 index bc2d6c0904..0000000000 --- a/cpp/sca/samples/RubyCalculator/sample.calculator.client/runclient.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/ruby/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ -export TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorComponent -export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 - -cd $TUSCANY_SCACPP_ROOT/sample.calculator.client -ruby -I$TUSCANY_SCACPP/extensions/ruby/lib CalculatorClient.rb diff --git a/cpp/sca/samples/RubyCalculator/sample.calculator/Calculator.wsdl b/cpp/sca/samples/RubyCalculator/sample.calculator/Calculator.wsdl deleted file mode 100644 index 331b996ba2..0000000000 --- a/cpp/sca/samples/RubyCalculator/sample.calculator/Calculator.wsdl +++ /dev/null @@ -1,161 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://sample/calculator" - targetNamespace="http://sample/calculator"> - <types> - <xs:schema targetNamespace="http://sample/calculator" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://sample/calculator" elementFormDefault="qualified"> - - <xs:element name="add"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="sub"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="mul"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="div"> - <xs:complexType> - <xs:sequence> - <xs:element name="param1" type="xs:float"/> - <xs:element name="param2" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="result"> - <xs:complexType> - <xs:sequence> - <xs:element name="data" type="xs:float"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - </xs:schema> - </types> - - <message name="addRequestMsg"> - <part name="body" element="tns:add" /> - </message> - <message name="subRequestMsg"> - <part name="body" element="tns:sub" /> - </message> - <message name="mulRequestMsg"> - <part name="body" element="tns:mul" /> - </message> - <message name="divRequestMsg"> - <part name="body" element="tns:div" /> - </message> - - <message name="calculatorResponseMsg"> - <part name="body" element="tns:result" /> - </message> - - <portType name="Calculator"> - <operation name="add"> - <input message="tns:addRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - <operation name="sub"> - <input message="tns:subRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - <operation name="mul"> - <input message="tns:mulRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - <operation name="div"> - <input message="tns:divRequestMsg" /> - <output message="tns:calculatorResponseMsg" /> - </operation> - </portType> - - <binding name="CalculatorBinding" - type="tns:Calculator"> - <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> - <operation name="add"> - <soap:operation soapAction="CalculatorService#add" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="sub"> - <soap:operation soapAction="CalculatorService#sub" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="mul"> - <soap:operation soapAction="CalculatorService#mul" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - <operation name="div"> - <soap:operation soapAction="CalculatorService#div" /> - <input> - <soap:body use="literal" /> - </input> - <output> - <soap:body use="literal" /> - </output> - </operation> - </binding> - - <service name="CalculatorService"> - <port name="CalculatorPort" - binding="tns:CalculatorBinding"> - <soap:address location="http://localhost:9090/axis2/services/sample.calculator.CalculatorComponent/CalculatorService" /> - </port> - </service> -</definitions> diff --git a/cpp/sca/samples/RubyCalculator/sample.calculator/CalculatorImpl.rb b/cpp/sca/samples/RubyCalculator/sample.calculator/CalculatorImpl.rb deleted file mode 100644 index 36ed15ff9b..0000000000 --- a/cpp/sca/samples/RubyCalculator/sample.calculator/CalculatorImpl.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -class CalculatorImpl - - attr_writer :divideService - - def initialize() - print "Ruby - CalculatorImpl.initialize\n" - end - - def div(arg1, arg2) - print "Ruby - CalculatorImpl.div\n" - @divideService.divide(arg1.to_f, arg2.to_f) - end - - def add(arg1, arg2) - print "Ruby - CalculatorImpl.add\n" - arg1.to_f + arg2.to_f - end - - def sub(arg1, arg2) - print "Ruby - CalculatorImpl.sub\n" - arg1.to_f - arg2.to_f - end - - def mul(arg1, arg2) - print "Ruby - CalculatorImpl.mul\n" - arg1.to_f * arg2.to_f - end - -end
\ No newline at end of file diff --git a/cpp/sca/samples/RubyCalculator/sample.calculator/DivideImpl.rb b/cpp/sca/samples/RubyCalculator/sample.calculator/DivideImpl.rb deleted file mode 100644 index c6615bfcfa..0000000000 --- a/cpp/sca/samples/RubyCalculator/sample.calculator/DivideImpl.rb +++ /dev/null @@ -1,39 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -class DivideImpl - - attr_writer :round - - def initialize() - print "Ruby - DivideImpl.initialize\n" - end - - def divide(arg1, arg2) - print "Ruby - DivideImpl.divide ", arg1, " / ", arg2, "\n" - res = arg1.to_f / arg2.to_f - if @round then - res = res.round - print "DivideImpl.divide rounding\n" - end - print "DivideImpl.divide ", res, "\n" - res - end - -end
\ No newline at end of file diff --git a/cpp/sca/samples/RubyCalculator/sample.calculator/Makefile.am b/cpp/sca/samples/RubyCalculator/sample.calculator/Makefile.am deleted file mode 100644 index 7de5b9fdd3..0000000000 --- a/cpp/sca/samples/RubyCalculator/sample.calculator/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -deploydir=$(prefix)/RubyCalculator/deploy -compositedir=$(deploydir)/sample.calculator - -composite_DATA = *.composite *.wsdl *.rb -EXTRA_DIST = *.composite *.wsdl *.rb diff --git a/cpp/sca/samples/RubyCalculator/sample.calculator/sample.calculator.composite b/cpp/sca/samples/RubyCalculator/sample.calculator/sample.calculator.composite deleted file mode 100644 index d77ba538fe..0000000000 --- a/cpp/sca/samples/RubyCalculator/sample.calculator/sample.calculator.composite +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="sample.calculator"> - - <component name="CalculatorComponent"> - <implementation.ruby script="CalculatorImpl.rb" class="CalculatorImpl"/> - <reference name="divideService">DivideComponent</reference> - </component> - - <component name="DivideComponent"> - <implementation.ruby script="DivideImpl.rb" class="DivideImpl"/> - <property name="round">true</property> - </component> - -</composite>
\ No newline at end of file diff --git a/cpp/sca/samples/SupplyChain/supplychain.demo.app.composite b/cpp/sca/samples/SupplyChain/supplychain.demo.app.composite deleted file mode 100644 index 3b8738a843..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.demo.app.composite +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="supplychain.demo.app"> - - <component name="supplychain.DemoClient"> - <implementation.composite name="supplychain.demo"/> - <reference name="retailer">supplychain.Retailer/RetailerService</reference> - <reference name="logging">supplychain.Logging/LoggingService</reference> - </component> - - <component name="supplychain.Logging"> - <implementation.composite name="supplychain.logging"/> - </component> - -</composite> diff --git a/cpp/sca/samples/SupplyChain/supplychain.demo/DemoClientImpl.componentType b/cpp/sca/samples/SupplyChain/supplychain.demo/DemoClientImpl.componentType deleted file mode 100644 index a63e4c37d3..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.demo/DemoClientImpl.componentType +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <reference name="retailer"> - <interface.cpp header="Retailer.h"/> - </reference> - - <reference name="logging"> - <interface.cpp header="Logging.h"/> - </reference> - -</componentType> -
\ No newline at end of file diff --git a/cpp/sca/samples/SupplyChain/supplychain.demo/supplychain.demo.composite b/cpp/sca/samples/SupplyChain/supplychain.demo/supplychain.demo.composite deleted file mode 100644 index 20b0e49ec1..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.demo/supplychain.demo.composite +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="supplychain.demo"> - - <component name="DemoClient"> - <implementation.cpp library="demo" header="DemoClientImpl.h"/> - <reference name="retailer">retailer</reference> - <reference name="logging">logging</reference> - </component> - - <reference name="retailer"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl#wsdl.interface(RetailerPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl#wsdl.endpoint(RetailerService/RetailerPort)" - uri="http://localhost:9090/axis2/services/supplychain.retailer.solution/RetailerService"/> - </reference> - - <reference name="logging"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl#wsdl.interface(LoggingFacilityLogPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl#wsdl.endpoint(LoggingFacilityService/LoggingFacilityPort)"/> - </reference> - -</composite> diff --git a/cpp/sca/samples/SupplyChain/supplychain.logging/LoggerImpl.componentType b/cpp/sca/samples/SupplyChain/supplychain.logging/LoggerImpl.componentType deleted file mode 100644 index e78e602635..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.logging/LoggerImpl.componentType +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <service name="LoggingService"> - <interface.cpp header="Logging.h"/> - </service> - -</componentType>
\ No newline at end of file diff --git a/cpp/sca/samples/SupplyChain/supplychain.logging/LoggingFacility.wsdl b/cpp/sca/samples/SupplyChain/supplychain.logging/LoggingFacility.wsdl deleted file mode 100644 index c78357b1a8..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.logging/LoggingFacility.wsdl +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<wsdl:definitions name="LoggingFacility" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl" - xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - - <wsdl:import - namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl" - location="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl" /> - - <wsdl:service name="LoggingFacilityService"> - <wsdl:port name="LoggingFacilityPort" - binding="tns:LoggingFacilitySoapBinding"> - <soap:address - location="http://localhost:9090/axis2/services/LoggingFacility" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> diff --git a/cpp/sca/samples/SupplyChain/supplychain.logging/supplychain.logging.composite b/cpp/sca/samples/SupplyChain/supplychain.logging/supplychain.logging.composite deleted file mode 100644 index 2b28c8f9e2..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.logging/supplychain.logging.composite +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="supplychain.logging"> - - <service name="LoggingService"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl#wsdl.interface(LoggingFacilityLogPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl#wsdl.endpoint(LoggingFacilityService/LoggingFacilityPort)"/> - <reference>Logger/Logging</reference> - </service> - - <component name="Logger"> - <implementation.cpp library="logging" header="LoggerImpl.h"/> - </component> - -</composite> diff --git a/cpp/sca/samples/SupplyChain/supplychain.manufacturer/Manufacturer.wsdl b/cpp/sca/samples/SupplyChain/supplychain.manufacturer/Manufacturer.wsdl deleted file mode 100644 index fb0c8a5676..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.manufacturer/Manufacturer.wsdl +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions name="Manufacturer" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl" - xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl"> - - <wsdl:import - namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl" - location="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl" /> - - <wsdl:service name="ManufacturerService"> - <wsdl:port name="ManufacturerPort" - binding="tns:ManufacturerSoapBinding"> - <soap:address - location="http://localhost:9090/axis2/services/Manufacturer" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions>
\ No newline at end of file diff --git a/cpp/sca/samples/SupplyChain/supplychain.manufacturer/ManufacturerImpl.componentType b/cpp/sca/samples/SupplyChain/supplychain.manufacturer/ManufacturerImpl.componentType deleted file mode 100644 index 63530bc0ee..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.manufacturer/ManufacturerImpl.componentType +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <service name="ManufacturerService"> - <interface.cpp header="Manufacturer.h"/> - </service> - - <reference name="callback"> - <interface.cpp header="WarehouseCallback.h"/> - </reference> - - <reference name="logging"> - <interface.cpp header="Logging.h"/> - </reference> - - <property name="manufacturerID" type="xs:string"/> - -</componentType>
\ No newline at end of file diff --git a/cpp/sca/samples/SupplyChain/supplychain.manufacturer/WarehouseCallback.wsdl b/cpp/sca/samples/SupplyChain/supplychain.manufacturer/WarehouseCallback.wsdl deleted file mode 100644 index 256671f64f..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.manufacturer/WarehouseCallback.wsdl +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions name="WarehouseCallback" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl" - xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl"> - - <wsdl:import - namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl" - location="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl" /> - - <wsdl:service name="WarehouseCallbackService"> - <wsdl:port name="WarehouseCallbackPort" - binding="tns:WarehouseCallbackSoapBinding"> - <soap:address - location="http://localhost:9090/axis2/services/WarehouseCallback" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions>
\ No newline at end of file diff --git a/cpp/sca/samples/SupplyChain/supplychain.manufacturer/supplychain.manufacturer.composite b/cpp/sca/samples/SupplyChain/supplychain.manufacturer/supplychain.manufacturer.composite deleted file mode 100644 index c61657c0a7..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.manufacturer/supplychain.manufacturer.composite +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - name="supplychain.manufacturer"> - - <service name="ManufacturerService"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl#wsdl.interface(ManufacturerPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl#wsdl.endpoint(ManufacturerService/ManufacturerPort)"/> - <reference>ManufacturerProcess/ManufacturerService</reference> - </service> - - <property name="manufacturerID" type="xs:string"/> - - <component name="ManufacturerProcess"> - <implementation.cpp library="manufacturer" header="ManufacturerImpl.h"/> - <reference name="callback">callback</reference> - <reference name="logging">logging</reference> - <property name="manufacturerID" source="$manufacturerID"/> - </component> - - <reference name="logging"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl#wsdl.interface(LoggingFacilityLogPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl#wsdl.endpoint(LoggingFacilityService/LoggingFacilityPort)"/> - </reference> - - <reference name="callback"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl#wsdl.interface(WarehouseCallbackPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl#wsdl.endpoint(WarehouseCallbackService/WarehouseCallbackPort)"/> - </reference> - -</composite> diff --git a/cpp/sca/samples/SupplyChain/supplychain.manufacturerA.app.composite b/cpp/sca/samples/SupplyChain/supplychain.manufacturerA.app.composite deleted file mode 100644 index 1963304b83..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.manufacturerA.app.composite +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="supplychain.manufacturerA.app"> - - <component name="supplychain.manufacturerA"> - <implementation.composite name="supplychain.manufacturer"/> - <reference name="logging">supplychain.Logging/LoggingService</reference> - <property name="manufacturerID">manufacturerA</property> - </component> - -</composite> diff --git a/cpp/sca/samples/SupplyChain/supplychain.manufacturerB.app.composite b/cpp/sca/samples/SupplyChain/supplychain.manufacturerB.app.composite deleted file mode 100644 index a2f9141f00..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.manufacturerB.app.composite +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="supplychain.manufacturerB.app"> - - <component name="supplychain.manufacturerB"> - <implementation.composite name="supplychain.manufacturer"/> - <reference name="logging">supplychain.Logging/LoggingService</reference> - <property name="manufacturerID">manufacturerB</property> - </component> - -</composite> diff --git a/cpp/sca/samples/SupplyChain/supplychain.manufacturerC.app.composite b/cpp/sca/samples/SupplyChain/supplychain.manufacturerC.app.composite deleted file mode 100644 index a48258b6ca..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.manufacturerC.app.composite +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="supplychain.manufacturerC.app"> - - <component name="supplychain.manufacturerC"> - <implementation.composite name="supplychain.manufacturer"/> - <reference name="logging">supplychain.Logging/LoggingService</reference> - <property name="manufacturerID">manufacturerC</property> - </component> - -</composite> diff --git a/cpp/sca/samples/SupplyChain/supplychain.retailer.app.composite b/cpp/sca/samples/SupplyChain/supplychain.retailer.app.composite deleted file mode 100644 index 734849de05..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.retailer.app.composite +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="supplychain.retailer.app"> - - <component name="supplychain.Retailer"> - <implementation.composite name="supplychain.retailer"/> - <reference name="warehouse">supplychain.WarehouseA/WarehouseService</reference> - <reference name="warehouse">supplychain.WarehouseB/WarehouseService</reference> - <reference name="warehouse">supplychain.WarehouseC/WarehouseService</reference> - <reference name="logging">supplychain.Logging/LoggingService</reference> - </component> - - <component name="supplychain.WarehouseA"> - <implementation.composite name="supplychain.warehouse"/> - <reference name="manufacturer">supplychain.manufacturerA/ManufacturerService</reference> - <reference name="logging">supplychain.Logging/LoggingService</reference> - <property name="warehouseID">warehouseA</property> - </component> - - <component name="supplychain.WarehouseB"> - <implementation.composite name="supplychain.warehouse"/> - <reference name="manufacturer">supplychain.manufacturerB/ManufacturerService</reference> - <reference name="logging">supplychain.Logging/LoggingService</reference> - <property name="warehouseID">warehouseB</property> - </component> - - <component name="supplychain.WarehouseC"> - <implementation.composite name="supplychain.warehouse"/> - <reference name="manufacturer">supplychain.manufacturerA/ManufacturerService</reference> - <reference name="logging">supplychain.Logging/LoggingService</reference> - <property name="warehouseID">warehouseC</property> - </component> - - <wire> - <source>supplychain.manufacturerA/callback</source> - <target>supplychain.WarehouseA/WarehouseCallbackService</target> - </wire> - <wire> - <source>supplychain.manufacturerB/callback</source> - <target>supplychain.WarehouseB/WarehouseCallbackService</target> - </wire> - <wire> - <source>supplychain.manufacturerC/callback</source> - <target>supplychain.WarehouseC/WarehouseCallbackService</target> - </wire> - -</composite> diff --git a/cpp/sca/samples/SupplyChain/supplychain.retailer/Retailer.wsdl b/cpp/sca/samples/SupplyChain/supplychain.retailer/Retailer.wsdl deleted file mode 100644 index 39bd1963f2..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.retailer/Retailer.wsdl +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions name="Retailer" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl" - xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns="http://schemas.xmlsoap.org/wsdl/"> - - <wsdl:import - namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl" - location="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl" /> - - <wsdl:service name="RetailerService"> - <wsdl:port name="RetailerPort" - binding="tns:RetailerSoapBinding"> - <soap:address - location="http://localhost:9090/axis2/services/Retailer" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions>
\ No newline at end of file diff --git a/cpp/sca/samples/SupplyChain/supplychain.retailer/RetailerImpl.componentType b/cpp/sca/samples/SupplyChain/supplychain.retailer/RetailerImpl.componentType deleted file mode 100644 index fb381ec9a6..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.retailer/RetailerImpl.componentType +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <service name="RetailerService"> - <interface.cpp header="Retailer.h"/> - </service> - - <reference name="warehouses" multiplicity="0..n"> - <interface.cpp header="Warehouse.h"/> - </reference> - - <reference name="logging"> - <interface.cpp header="Logging.h"/> - </reference> - -</componentType> -
\ No newline at end of file diff --git a/cpp/sca/samples/SupplyChain/supplychain.retailer/supplychain.retailer.composite b/cpp/sca/samples/SupplyChain/supplychain.retailer/supplychain.retailer.composite deleted file mode 100644 index 51a2b96b1b..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.retailer/supplychain.retailer.composite +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="supplychain.retailer"> - - <service name="RetailerService"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl#wsdl.interface(RetailerPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl#wsdl.endpoint(RetailerService/RetailerPort)"/> - <reference>RetailerProcess/RetailerService</reference> - </service> - - <component name="RetailerProcess"> - <implementation.cpp library="retailer" header="RetailerImpl.h"/> - <reference name="warehouses">warehouses</reference> - <reference name="logging">logging</reference> - </component> - - <reference name="warehouses" multiplicity="0..n"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Warehouse.wsdl#wsdl.interface(WarehouseShipmentsPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Warehouse.wsdl#wsdl.endpoint(WarehouseShipmentsService/WarehouseShipmentsPort)"/> - </reference> - - <reference name="logging"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl#wsdl.interface(LoggingFacilityLogPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl#wsdl.endpoint(LoggingFacilityService/LoggingFacilityPort)"/> - </reference> - -</composite> diff --git a/cpp/sca/samples/SupplyChain/supplychain.warehouse/Warehouse.wsdl b/cpp/sca/samples/SupplyChain/supplychain.warehouse/Warehouse.wsdl deleted file mode 100644 index a007f9957b..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.warehouse/Warehouse.wsdl +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<wsdl:definitions name="Warehouse" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Warehouse.wsdl" - xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Warehouse.wsdl" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - - <wsdl:import - namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Warehouse.wsdl" - location="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Warehouse.wsdl" /> - - <wsdl:service name="WarehouseService"> - <wsdl:port name="WarehousePort" - binding="tns:WarehouseSoapBinding"> - <soap:address - location="http://localhost:9090/axis2/services/Warehouse" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions>
\ No newline at end of file diff --git a/cpp/sca/samples/SupplyChain/supplychain.warehouse/WarehouseCallbackImpl.componentType b/cpp/sca/samples/SupplyChain/supplychain.warehouse/WarehouseCallbackImpl.componentType deleted file mode 100644 index fbc1edb462..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.warehouse/WarehouseCallbackImpl.componentType +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <service name="WarehouseCallbackService"> - <interface.cpp header="WarehouseCallback.h"/> - </service> - - <reference name="logging"> - <interface.cpp header="Logging.h"/> - </reference> - - <property name="warehouseID" type="xs:string"/> - -</componentType>
\ No newline at end of file diff --git a/cpp/sca/samples/SupplyChain/supplychain.warehouse/WarehouseImpl.componentType b/cpp/sca/samples/SupplyChain/supplychain.warehouse/WarehouseImpl.componentType deleted file mode 100644 index 7f63d3b571..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.warehouse/WarehouseImpl.componentType +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - - -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <service name="WarehouseService"> - <interface.cpp header="Warehouse.h"/> - </service> - - <reference name="manufacturer"> - <interface.cpp header="Manufacturer.h"/> - </reference> - - <reference name="logging"> - <interface.cpp header="Logging.h"/> - </reference> - - <property name="warehouseID" type="xs:string"/> - -</componentType>
\ No newline at end of file diff --git a/cpp/sca/samples/SupplyChain/supplychain.warehouse/supplychain.warehouse.composite b/cpp/sca/samples/SupplyChain/supplychain.warehouse/supplychain.warehouse.composite deleted file mode 100644 index e44b964eb4..0000000000 --- a/cpp/sca/samples/SupplyChain/supplychain.warehouse/supplychain.warehouse.composite +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - name="supplychain.warehouse"> - - <service name="WarehouseService"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Warehouse.wsdl#wsdl.interface(WarehouseShipmentsPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Warehouse.wsdl#wsdl.endpoint(WarehouseService/WarehousePort)"/> - <reference>WarehouseProcess/WarehouseService</reference> - </service> - - <service name="WarehouseCallbackService"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl#wsdl.interface(WarehouseCallbackPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl#wsdl.endpoint(WarehouseCallbackService/WarehouseCallbackPort)"/> - <reference>WarehouseCallbackProcess/WarehouseCallbackService</reference> - </service> - - <property name="warehouseID" type="xs:string"/> - - <component name="WarehouseProcess"> - <implementation.cpp library="warehouse" header="WarehouseImpl.h"/> - <reference name="manufacturer">manufacturer</reference> - <reference name="logging">logging</reference> - <property name="warehouseID" source="$warehouseID"/> - </component> - - <component name="WarehouseCallbackProcess"> - <implementation.cpp library="warehouse" header="WarehouseCallbackImpl.h"/> - <reference name="logging">logging</reference> - <property name="warehouseID" source="$warehouseID"/> - </component> - - <reference name="manufacturer"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl#wsdl.interface(ManufacturerPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl#wsdl.endpoint(ManufacturerService/ManufacturerPort)"/> - </reference> - - <reference name="logging"> - <interface.wsdl interface="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl#wsdl.interface(LoggingFacilityLogPortType)"/> - <binding.ws endpoint="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl#wsdl.endpoint(LoggingFacilityService/LoggingFacilityPort)"/> - </reference> - -</composite> diff --git a/cpp/sca/samples/autogen.sh b/cpp/sca/samples/autogen.sh deleted file mode 100755 index 18277601c8..0000000000 --- a/cpp/sca/samples/autogen.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -for i in "libtoolize --force" aclocal autoconf autoheader -do - echo -n "Running $i..." - $i || exit 1 - echo 'done.' -done - -echo -n 'Running automake...' -automake --add-missing -echo 'done.' -exit 0 - diff --git a/cpp/sca/samples/build.sh b/cpp/sca/samples/build.sh deleted file mode 100755 index c306d2a20d..0000000000 --- a/cpp/sca/samples/build.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -./configure.sh -make install - diff --git a/cpp/sca/samples/configure.ac b/cpp/sca/samples/configure.ac deleted file mode 100644 index 41cd6f4dbe..0000000000 --- a/cpp/sca/samples/configure.ac +++ /dev/null @@ -1,206 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -dnl run autogen.sh to generate the configure script. - -AC_PREREQ(2.59) -AC_INIT(tuscany-sca-samples, 1.0-M3) -AC_CANONICAL_SYSTEM -AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) -AC_PREFIX_DEFAULT(/usr/local/tuscany/sca/samples) - -# Checks for programs. -AC_PROG_CXX -AC_PROG_CC -AC_PROG_CPP -AC_PROG_INSTALL -AC_PROG_LN_S -AC_PROG_MAKE_SET -AC_PROG_LIBTOOL - -# Check for running on Darwin -AC_MSG_CHECKING([Checking if running on Darwin]) -UNAME=`uname -s` -if test "x$UNAME" = "xDarwin"; then - AC_DEFINE([IS_DARWIN], [1], [Set to 1 when running on Darwin - Mac OSX]) - AC_MSG_RESULT(yes) - AC_SUBST([libsuffix],[".dylib"]) - is_darwin=true -else - AC_MSG_RESULT(no) - AC_SUBST([libsuffix],[".so"]) - is_darwin=false -fi -AM_CONDITIONAL([DARWIN], [test x$is_darmin = xtrue]) - -# Checks for libraries. - -# Checks for header files. -AC_HEADER_DIRENT -AC_HEADER_STDC -AC_CHECK_HEADERS([inttypes.h stdlib.h string.h sys/time.h unistd.h]) - -# Checks for typedefs, structures, and compiler characteristics. -AC_HEADER_STDBOOL -AC_C_CONST -AC_C_INLINE - -# Checks for library functions. -AC_FUNC_CLOSEDIR_VOID -AC_FUNC_STAT -AC_FUNC_VPRINTF -AC_CHECK_FUNCS([getcwd putenv strdup]) - -# Configure TUSCANY_SCACPP and TUSCANY_SDOCPP -TUSCANY_SCACPP=`echo "$TUSCANY_SCACPP"` -if test "x$TUSCANY_SCACPP" = "x"; then - SCAPWD=`pwd` - AC_SUBST([TUSCANY_SCACPP], ["$SCAPWD/.."]) -fi - -TUSCANY_SDOCPP=`echo "$TUSCANY_SDOCPP"` -if test "x$TUSCANY_SDOCPP" = "x"; then - SCAPWD=`pwd` - AC_SUBST([TUSCANY_SDOCPP], ["$SCAPWD/../../sdo/deploy"]) -fi - -# Configure LIBXML2_INCLUDE and LIBXML2_LIB -LIBXML2_INCLUDE=`echo "$LIBXML2_INCLUDE"` -if test "x$LIBXML2_INCLUDE" = "x"; then - AC_SUBST([LIBXML2_INCLUDE], ["/usr/include/libxml2"]) -fi - -LIBXML2_LIB=`echo "$LIBXML2_LIB"` -if test "x$LIBXML2_LIB" = "x"; then - AC_SUBST([LIBXML2_LIB], ["/usr/lib"]) -fi - -# Configure GCC C++ compile options -AC_SUBST([CXXFLAGS], ["$(CXXFLAGS) -D_DEBUG -O0 -g3 -Wall -std=c++0x -fmessage-length=0"]) - -AC_MSG_CHECKING(whether to build all samples) -AC_ARG_ENABLE(all-samples, [AS_HELP_STRING([--enable-all-samples],[build all samples [default=no]])], -[ case "${enableval}" in - no) - AC_MSG_RESULT(no) - want_all_samples=false - ;; - *) - AC_MSG_RESULT(yes) - want_all_samples=true - ;; - esac ], -[ AC_MSG_RESULT(no) - want_all_samples=false ] -) -AM_CONDITIONAL([WANT_ALL_SAMPLES], [test x$want_all_samples = xtrue]) - -AC_MSG_CHECKING(whether to build C++ samples) -AC_ARG_ENABLE(cpp, [AS_HELP_STRING([--enable-cpp],[build C++ samples [default=yes]])], -[ case "${enableval}" in - no) - AC_MSG_RESULT(no) - want_cpp_samples=false - ;; - *) - AC_MSG_RESULT(yes) - want_cpp_samples=true - ;; - esac ], -[ AC_MSG_RESULT(yes) - want_cpp_samples=true ] -) -AM_CONDITIONAL([WANT_CPP_SAMPLES], [test x$want_cpp_samples = xtrue]) - -AC_MSG_CHECKING(whether to build Python samples) -AC_ARG_ENABLE(python, [AS_HELP_STRING([--enable-python],[build Python samples [default=no]])], -[ case "${enableval}" in - no) - AC_MSG_RESULT(no) - want_python_samples=false - ;; - *) - AC_MSG_RESULT(yes) - want_python_samples=true - ;; - esac ], -[ AC_MSG_RESULT(no) - want_python_samples=false ] -) -AM_CONDITIONAL([WANT_PYTHON_SAMPLES], [test x$want_python_samples = xtrue]) - -AC_MSG_CHECKING(whether to build Ruby samples) -AC_ARG_ENABLE(ruby, [AS_HELP_STRING([--enable-ruby],[build Ruby samples [default=no]])], -[ case "${enableval}" in - no) - AC_MSG_RESULT(no) - want_ruby_samples=false - ;; - *) - AC_MSG_RESULT(yes) - want_ruby_samples=true - ;; - esac ], -[ AC_MSG_RESULT(no) - want_ruby_samples=false ] -) -AM_CONDITIONAL([WANT_RUBY_SAMPLES], [test x$want_ruby_samples = xtrue]) - -AC_CONFIG_FILES([Makefile - AlertAggregator/Makefile - AlertAggregator/sample.alerter/Makefile - AlertAggregator/sample.display/Makefile - AlertAggregator/httpserver/Makefile - CppCalculator/Makefile - CppCalculator/sample.calculator/Makefile - CppCalculator/sample.calculator.client/Makefile - RubyCalculator/Makefile - RubyCalculator/sample.calculator/Makefile - RubyCalculator/sample.calculator.client/Makefile - PythonCalculator/Makefile - PythonCalculator/sample.calculator/Makefile - PythonCalculator/sample.calculator.client/Makefile - PythonWeatherForecast/Makefile - PythonWeatherForecast/sample.weather/Makefile - PythonWeatherForecast/sample.weather.client/Makefile - RestCalculator/Makefile - RestCalculator/sample.calculator/Makefile - RestCalculator/sample.calculator.restclient/Makefile - RestCalculator/httpserver/Makefile - RestCustomer/Makefile - RestCustomer/sample.customer/Makefile - RestCustomer/sample.customer.restclient/Makefile - RestCustomer/httpserver/Makefile - RestYahoo/Makefile - RestYahoo/sample.yahoo/Makefile - RestYahoo/sample.yahoo.client/Makefile - CppBigBank/Makefile - CppBigBank/bigbank.account/Makefile - CppBigBank/bigbank.client/Makefile - CppBigBank/bigbank.phpwsclient/Makefile - RubyBigBank/Makefile - RubyBigBank/bigbank.account/Makefile - RubyBigBank/bigbank.client/Makefile - RubyBigBank/bigbank.wsclient/Makefile - HttpdBigBank/Makefile - HttpdBigBank/bigbank.account/Makefile - HttpdBigBank/bigbank.accountdata/Makefile - HttpdBigBank/bigbank.wsclient/Makefile - HttpdBigBank/httpserver/Makefile - ]) -AC_OUTPUT diff --git a/cpp/sca/samples/runtest.sh b/cpp/sca/samples/runtest.sh deleted file mode 100755 index 1c016a5287..0000000000 --- a/cpp/sca/samples/runtest.sh +++ /dev/null @@ -1,159 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - - -echo "Running CppCalculator client" -cd $TUSCANY_SCACPP/samples/CppCalculator/deploy/sample.calculator.client -r=`./runclient.sh | grep "div(5,2) = 2.5"` -if [ "x$r" == "x" ] -then - echo "CppCalculator client failed" -fi - -echo "Running CppCalculator wsclient" -cd $TUSCANY_SCACPP/samples/CppCalculator/deploy/sample.calculator -(./runwsserver.sh >/dev/null)& -cd $TUSCANY_SCACPP/samples/CppCalculator/deploy/sample.calculator.wsclient -r=`./runwsclient.sh | grep "Result = 2.500e+00"` -killall -q axis2_http_server >/dev/null -if [ "x$r" == "x" ] -then - echo "CppCalculator wsclient failed" -fi - -echo "Running CppBigBank client" -cd $TUSCANY_SCACPP/samples/CppBigBank/deploy/bigbank.client -r=`./runclient.sh | grep "Balance"` -if [ "x$r" == "x" ] -then - echo "CppBigBank client failed" -fi - -echo "Running CppBigBank wsclient" -cd $TUSCANY_SCACPP/samples/CppBigBank/deploy/bigbank.account -(./runwsserver.sh >/dev/null)& -cd $TUSCANY_SCACPP/samples/CppBigBank/deploy/bigbank.wsclient -r=`./runwsclient.sh | grep "</balance>"` -killall -q axis2_http_server >/dev/null -if [ "x$r" == "x" ] -then - echo "CppBigBank wsclient failed" -fi - -echo "Running RubyCalculator client" -cd $TUSCANY_SCACPP/samples/RubyCalculator/deploy/sample.calculator.client -r=`./runclient.sh | grep "^3"` -if [ "x$r" == "x" ] -then - echo "RubyCalculator client failed" -fi - -echo "Running RubyCalculator wsclient" -cd $TUSCANY_SCACPP/samples/RubyCalculator/deploy/sample.calculator -(./runwsserver.sh >/dev/null)& -cd $TUSCANY_SCACPP/samples/RubyCalculator/deploy/sample.calculator.wsclient -r=`./runwsclient.sh | grep "^3.0"` -killall -q axis2_http_server >/dev/null -if [ "x$r" == "x" ] -then - echo "RubyCalculator wsclient failed" -fi - -echo "Running RubyBigBank client" -cd $TUSCANY_SCACPP/samples/RubyBigBank/deploy/bigbank.client -r=`./runclient.sh | grep "Balance:"` -if [ "x$r" == "x" ] -then - echo "RubyBigBank client failed" -fi - -echo "Running RubyBigBank wsclient" -cd $TUSCANY_SCACPP/samples/RubyBigBank/deploy/bigbank.account -(./runwsserver.sh >/dev/null)& -cd $TUSCANY_SCACPP/samples/RubyBigBank/deploy/bigbank.wsclient -r=`./runwsclient.sh | grep "Balance:"` -killall -q axis2_http_server >/dev/null -if [ "x$r" == "x" ] -then - echo "RubyBigBank wsclient failed" -fi - -echo "Running PythonCalculator client" -cd $TUSCANY_SCACPP/samples/PythonCalculator/deploy/sample.calculator.client -r=`./runclient.sh | grep "div ( 5 , 2 ) = 3.0"` -if [ "x$r" == "x" ] -then - echo "PythonCalculator client failed" -fi - -echo "Running PythonCalculator wsclient" -cd $TUSCANY_SCACPP/samples/PythonCalculator/deploy/sample.calculator -(./runwsserver.sh >/dev/null)& -cd $TUSCANY_SCACPP/samples/PythonCalculator/deploy/sample.calculator.wsclient -r=`./runwsclient.sh | grep "div ( 5 , 2 ) = 3.0"` -killall -q axis2_http_server >/dev/null -if [ "x$r" == "x" ] -then - echo "PythonCalculator wsclient failed" -fi - -echo "Running PythonWeatherForecast client" -cd $TUSCANY_SCACPP/samples/PythonWeatherForecast/deploy/sample.weather.client -r=`./runclient.sh | grep "Latitude: 34.090107"` -if [ "x$r" == "x" ] -then - echo "PythonWeatherForecast client failed" -fi - -echo "Running HttpdBigBank wsclient" -cd $TUSCANY_SCACPP/samples/HttpdBigBank/deploy/httpserver -./startserver.sh >/dev/null -cd $TUSCANY_SCACPP/samples/HttpdBigBank/deploy/bigbank.wsclient -r=`./runwsclient.sh | grep "Balance:"` -cd $TUSCANY_SCACPP/samples/HttpdBigBank/deploy/httpserver -./stopserver.sh >/dev/null -if [ "x$r" == "x" ] -then - echo "HttpdBigBank wsclient failed" -fi - -echo "Running RestCalculator restclient" -cd $TUSCANY_SCACPP/samples/RestCalculator/deploy/httpserver -./startserver.sh >/dev/null -cd $TUSCANY_SCACPP/samples/RestCalculator/deploy/sample.calculator.restclient -r=`./runrestclient.sh | grep "^3"` -cd $TUSCANY_SCACPP/samples/RestCalculator/deploy/httpserver -./stopserver.sh >/dev/null -if [ "x$r" == "x" ] -then - echo "RestCalculator restclient failed" -fi - -echo "Running RestCustomer restclient" -cd $TUSCANY_SCACPP/samples/RestCustomer/deploy/httpserver -./startserver.sh >/dev/null -cd $TUSCANY_SCACPP/samples/RestCustomer/deploy/sample.customer.restclient -r=`./runrestclient.sh | grep "Command - Deleted customer 1234"` -cd $TUSCANY_SCACPP/samples/RestCustomer/deploy/httpserver -./stopserver.sh >/dev/null -if [ "x$r" == "x" ] -then - echo "RestCustomer restclient failed" -fi - diff --git a/cpp/sca/samples/scagen.bat b/cpp/sca/samples/scagen.bat deleted file mode 100644 index 169855a0a9..0000000000 --- a/cpp/sca/samples/scagen.bat +++ /dev/null @@ -1,37 +0,0 @@ -@echo off -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. - -rem Will copy the correct files from the source tree for packaging and -rem deployment of the SCA Calculator sample. - -setlocal - -if . == .%1 ( -echo source path not specified -goto usage -) -set srcdir=%1 - -%TUSCANY_SCACPP%\extensions\cpp\bin\scagen.bat -dir %srcdir% -output %srcdir% -verbose - -goto end -:usage -echo Usage: scagen <sample-src> -:end - -endlocal |