You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by aj...@apache.org on 2006/10/04 17:41:58 UTC
svn commit: r452913 [1/2] - in /incubator/tuscany/cpp/sca: ./ samples/
samples/BigBank/ samples/Calculator/ samples/PythonCalculator/
samples/RubyBank/ samples/RubyCalculator/
Author: ajborley
Date: Wed Oct 4 08:41:57 2006
New Revision: 452913
URL: http://svn.apache.org/viewvc?view=rev&rev=452913
Log:
New and refreshed docs for SCA and SCA samples
Added:
incubator/tuscany/cpp/sca/samples/BigBank/README.html (with props)
incubator/tuscany/cpp/sca/samples/Calculator/README.html (with props)
incubator/tuscany/cpp/sca/samples/PythonCalculator/README.html (with props)
incubator/tuscany/cpp/sca/samples/RubyBank/README.html (with props)
incubator/tuscany/cpp/sca/samples/RubyBank/deploy.cmd
incubator/tuscany/cpp/sca/samples/RubyCalculator/README.html (with props)
incubator/tuscany/cpp/sca/samples/RubyCalculator/deploy.cmd
Modified:
incubator/tuscany/cpp/sca/GettingStarted.html
incubator/tuscany/cpp/sca/samples/GettingStarted.html
Modified: incubator/tuscany/cpp/sca/GettingStarted.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/GettingStarted.html?view=diff&rev=452913&r1=452912&r2=452913
==============================================================================
--- incubator/tuscany/cpp/sca/GettingStarted.html (original)
+++ incubator/tuscany/cpp/sca/GettingStarted.html Wed Oct 4 08:41:57 2006
@@ -17,14 +17,16 @@
<DIV ID="bodyColumn">
<DIV ID="contentBox">
<DIV CLASS="section">
- <H2>Tuscany - Getting Started - SCA C++ Milestone release 1</H2>
+ <H2>Tuscany - Getting Started - SCA C++ Milestone release 2</H2>
<P>Tuscany SCA C++ provides a runtime implementation for the Service Component
- Architecture 0.9 specification, written in C++ and currently supports C++
+ Architecture 0.96 Assembly specification and the 0.95 C++ Client & Implementation specification
+ (found <A HREF="http://www.osoa.org/display/Main/Service+Component+Architecture+Specifications">here</A>),
+ written in C++ and currently supports C++, Python and Ruby
component implementation types. This page describes what is needed to install and run Tuscany
SCA for C++.<BR/>If you haven't already done so, the first
- step is to download the SCA C++ Milestone release 1 of Apache Tuscany from our
- <A HREF="http://incubator.apache.org/tuscany/download.html" target='_blank'>download page</A>.<BR/>
+ step is to download the SCA C++ Milestone release 2 of Apache Tuscany from our
+ <A HREF="http://incubator.apache.org/tuscany/downloads.html" target='_blank'>download page</A>.<BR/>
</P>
</DIV>
@@ -70,7 +72,7 @@
</TD>
</TR>
<TR CLASS="a">
- <TD>Axis2C Release 0.92</TD>
+ <TD>Axis2C Release 0.93</TD>
<TD>
<A HREF="http://ws.apache.org/axis2/c/download.cgi"
@@ -79,7 +81,7 @@
</TD>
</TR>
<TR CLASS="b">
- <TD>Tuscany SDO for C++ Milestone Release 1</TD>
+ <TD>Tuscany SDO for C++ Milestone Release 2</TD>
<TD>
<A HREF="http://incubator.apache.org/tuscany/download.html"
@@ -116,7 +118,7 @@
<OL>
<LI>Extract the binary tar package to a folder</LI>
<LI>Set the TUSCANY_SCACPP environment variable to point to the directory that was just extracted</LI>
- <LI>Add the *install_dir*/lib directory to the LD_LIBRARY_PATH (Linux) or DYLD_LIBRARY_PATH (MacOS X) environment variable</LI>
+ <LI>Add the *install_dir*/lib directory to the LD_LIBRARY_PATH <!--(Linux) or DYLD_LIBRARY_PATH (MacOS X)--> environment variable</LI>
</OL>
<A NAME="linuxsrc"><H3>Getting Tuscany SCA for C++ working with the source release on Linux</H3></A>
<OL>
@@ -124,7 +126,7 @@
<LI>The following environment variables are required:
<UL>
<LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO>
- <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
</UL></LI>
<LI>Build the source with the following command sequence:
<UL>
@@ -148,7 +150,7 @@
<LI>The following environment variables are required:
<UL>
<LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO>
- <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
</UL></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.
@@ -205,7 +207,7 @@
<DIV CLASS="section">
<A NAME="help"><H2>Getting Help</H2></A>
- <P>First place to look is at the Tuscany FAQ at
+ <P>The first place to look is at the Tuscany FAQ at
<A HREF="http://incubator.apache.org/tuscany/faq.html"
TARGET="_blank">http://incubator.apache.org/tuscany/faq.html</A> </P>
@@ -227,15 +229,10 @@
<P>Thank you for your interest in Tuscany.</P> <STRONG><EM>-The
Tuscany Development Team</EM></STRONG>
-
- <P></P>
-
</TD>
</TR>
</TBODY>
</TABLE>
-
- <P></P>
</DIV>
</DIV>
</DIV>
Added: incubator/tuscany/cpp/sca/samples/BigBank/README.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/README.html?view=auto&rev=452913
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/README.html (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/README.html Wed Oct 4 08:41:57 2006
@@ -0,0 +1,313 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!--
+ 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.
+ -->
+<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 for C++ Samples - BigBank Sample</TITLE>
+</HEAD>
+
+<BODY>
+<DIV ID="bodyColumn">
+ <DIV ID="contentBox">
+ <DIV CLASS="section">
+ <H2>Tuscany SCA for C++ Samples - BigBank Sample</H2>
+
+ <P>This sample that 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 five 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.accountmanagement<BR/>
+ This contains the SCDL file describing the configuration of the SCA
+ BigBank composite deployed to the SCA runtime.
+ </LI>
+ <LI>bigbank.client<BR/>
+ A sample client which does a local call to the BigBank service.
+ </LI>
+ <LI>bigbank.wsclient<BR/>
+ A sample Axis2 Web Service client which calls the BigBank Web 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>.
+ </LI>
+ </UL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <H2>Contents</H2>
+ <OL>
+ <LI><A HREF="#linuxbld">Building the C++ samples on Linux</A></LI>
+ <LI><A HREF="#linuxrun">Running the BigBank sample on Linux:</A></LI>
+ <UL>
+ <LI><A HREF="#linuxbasic">Running the basic client</A></LI>
+ <LI><A HREF="#linuxws">Running the Web Service client</A></LI>
+ <LI><A HREF="#linuxphp">Installing and running the PHP web client</A></LI>
+ </UL>
+ <LI><A HREF="#winbld">Building the BigBank sample on Windows</A></LI>
+ <LI><A HREF="#winrun">Running the BigBank sample on Windows:</A></LI>
+ <UL>
+ <LI><A HREF="#winbasic">Running the basic client</A></LI>
+ <LI><A HREF="#winws">Running the Web Service 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</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</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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </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</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/BigBank</LI>
+ </OL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <A NAME="linuxrun"><H2>Running the BigBank sample on Linux</H2></A>
+ <A NAME="linuxbasic"><H3>BigBank with basic client</H3></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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI>
+ </UL>
+ </LI>
+ <LI>Run the sample with the following commands:
+ <UL>
+ <LI>cd <tuscany_sca_install_dir>/samples/BigBank/deploy/bin</LI>
+ <LI>./runclient.sh</LI>
+ </UL>
+ </LI>
+ </OL>
+ <A NAME="linuxws"><H3>BigBank with Web Service client</H3></A>
+ <OL>
+ <LI>Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions found here.
+ </LI>
+ <LI>Start the Axis2C 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 axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/BigBank/deploy/bin
+ </LI>
+ <LI>./runwsserver.sh</LI>
+ </OL>
+ </LI>
+ <LI>Run the client:
+ <OL>
+ <LI>The following environment variable is required:
+ <UL>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/BigBank/deploy/bin</LI>
+ <LI>./runwsclient.sh</LI>
+ </OL>
+ </LI>
+ </OL>
+ <A NAME="linuxphp"><H3>BigBank with PHP web client</H3></A>
+ <OL>
+ <LI>Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions found here.
+ </LI>
+ <LI>Start the Axis2C 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 axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/BigBank/deploy/bin
+ </LI>
+ <LI>./runwsserver.sh</LI>
+ </OL>
+ </LI>
+ <LI>Install the PHP web client:
+ <OL>
+ <LI></LI>
+ </OL>
+ </LI>
+ <LI>Run the PHP web client by pointing your browser at
+ <A HREF="http://localhost/BigBank/welcome.php">http://localhost/BigBank/welcome.php</A>
+ </LI>
+
+ </OL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <A NAME="winbld"><H2>Building the 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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </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 6 or 7 projects under
+ <tuscany_sca_install_dir>\samples\ides or via the command-line build file
+ found at <tuscany_sca_install_dir>\samples\ides\devstudio6\projects\BigBank\build.cmd
+ which will build and deploy the samples.
+ </LI>
+ </OL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <A NAME="winrun"><H2>Running the BigBank sample on Windows</H2></A>
+ <A NAME="winbasic"><H3>BigBank with basic client</H3></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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>Run the sample with the following commands:
+ <UL>
+ <LI>cd <tuscany_sca_install_dir>/samples/BigBank/deploy/bin</LI>
+ <LI>./runclient.bat</LI>
+ </UL>
+ </LI>
+ </OL>
+ <A NAME="winws"><H3>BigBank with Web Service client</H3></A>
+ <OL>
+ <LI>Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions found here.
+ </LI>
+ <LI>Start the Axis2C 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 axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/BigBank/deploy/bin
+ </LI>
+ <LI>./runwsserver.bat</LI>
+ </OL>
+ </LI>
+ <LI>Run the client:
+ <OL>
+ <LI>The following environment variable is required:
+ <UL>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/BigBank/deploy/bin</LI>
+ <LI>./runwsclient.bat</LI>
+ </OL>
+ </LI>
+ </OL>
+ <A NAME="winphp"><H3>BigBank with PHP web client</H3></A>
+ <OL>
+ <LI>Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions found here.
+ </LI>
+ <LI>Start the Axis2C 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 axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/BigBank/deploy/bin
+ </LI>
+ <LI>./runwsserver.bat</LI>
+ </OL>
+ </LI>
+ <LI>Install the PHP web client:
+ <OL>
+ <LI></LI>
+ </OL>
+ </LI>
+ <LI>Run the PHP web client by pointing your browser at
+ <A HREF="http://localhost/BigBank/welcome.php">http://localhost/BigBank/welcome.php</A>
+ </LI>
+ </OL>
+ </DIV>
+
+
+
+ <DIV CLASS="section">
+ <A NAME="help"><H2>Getting Help</H2></A>
+
+ <P>First place to look is at the Tuscany FAQ at
+ <A HREF="http://incubator.apache.org/tuscany/faq.html"
+ TARGET="_blank">http://incubator.apache.org/tuscany/faq.html</A> </P>
+
+ <P>Any problem with this release can be reported to the Tuscany
+ <A HREF="http://incubator.apache.org/tuscany/mail-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>
+
Propchange: incubator/tuscany/cpp/sca/samples/BigBank/README.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/samples/BigBank/README.html
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/cpp/sca/samples/Calculator/README.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/Calculator/README.html?view=auto&rev=452913
==============================================================================
--- incubator/tuscany/cpp/sca/samples/Calculator/README.html (added)
+++ incubator/tuscany/cpp/sca/samples/Calculator/README.html Wed Oct 4 08:41:57 2006
@@ -0,0 +1,249 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!--
+ 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.
+ -->
+<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 for C++ Samples - Calculator Sample</TITLE>
+</HEAD>
+
+<BODY>
+<DIV ID="bodyColumn">
+ <DIV ID="contentBox">
+ <DIV CLASS="section">
+ <H2>Tuscany SCA for C++ Samples - Calculator Sample</H2>
+
+ <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 expose
+ that service as a Web Service.
+ </P>
+ <P>There are four 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.solution<BR/>
+ This contains the SCDL file describing the configuration of the SCA
+ Calculator composite deployed to the SCA runtime.
+ </LI>
+ <LI>sample.calculator.client<BR/>
+ A sample client which does a local call to the Calculator service.
+ </LI>
+ <LI>sample.calculator.wsclient<BR/>
+ A sample Axis2 Web Service client which calls the Calculator Web service.
+ </LI>
+ </UL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <H2>Contents</H2>
+ <OL>
+ <LI><A HREF="#linuxbld">Building the C++ samples on Linux</A></LI>
+ <LI><A HREF="#linuxrun">Running the Calculator sample on Linux:</A></LI>
+ <UL>
+ <LI><A HREF="#linuxbasic">Running the basic client</A></LI>
+ <LI><A HREF="#linuxws">Running the Web Service client</A></LI>
+ </UL>
+ <LI><A HREF="#winbld">Building the Calculator sample on Windows</A></LI>
+ <LI><A HREF="#winrun">Running the Calculator sample on Windows:</A></LI>
+ <UL>
+ <LI><A HREF="#winbasic">Running the basic client</A></LI>
+ <LI><A HREF="#winws">Running the Web Service 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</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</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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </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</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/Calculator</LI>
+ </OL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <A NAME="linuxrun"><H2>Running the Calculator sample on Linux</H2></A>
+ <A NAME="linuxbasic"><H3>Calculator with basic client</H3></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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI>
+ </UL>
+ </LI>
+ <LI>Run the sample with the following commands:
+ <UL>
+ <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI>
+ <LI>./runclient.sh</LI>
+ </UL>
+ </LI>
+ </OL>
+ <A NAME="linuxws"><H3>Calculator with Web Service client</H3></A>
+ <OL>
+ <LI>Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions found here.
+ </LI>
+ <LI>Start the Axis2C 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 axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin
+ </LI>
+ <LI>./runwsserver.sh</LI>
+ </OL>
+ </LI>
+ <LI>Run the client:
+ <OL>
+ <LI>The following environment variable is required:
+ <UL>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI>
+ <LI>./runwsclient.sh</LI>
+ </OL>
+ </LI>
+ </OL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <A NAME="winbld"><H2>Building the 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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </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 6 or 7 projects under
+ <tuscany_sca_install_dir>\samples\ides or via the command-line build file
+ found at <tuscany_sca_install_dir>\samples\ides\devstudio6\projects\Calculator\build.cmd
+ which will build and deploy the samples.
+ </LI>
+ </OL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <A NAME="winrun"><H2>Running the Calculator sample on Windows</H2></A>
+ <A NAME="winbasic"><H3>Calculator with basic client</H3></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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>Run the sample with the following commands:
+ <UL>
+ <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI>
+ <LI>./runclient.bat</LI>
+ </UL>
+ </LI>
+ </OL>
+ <A NAME="winws"><H3>Calculator with Web Service client</H3></A>
+ <OL>
+ <LI>Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions found here.
+ </LI>
+ <LI>Start the Axis2C 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 axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin
+ </LI>
+ <LI>./runwsserver.bat</LI>
+ </OL>
+ </LI>
+ <LI>Run the client:
+ <OL>
+ <LI>The following environment variable is required:
+ <UL>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI>
+ <LI>./runwsclient.bat</LI>
+ </OL>
+ </LI>
+ </OL>
+ </DIV>
+
+
+
+ <DIV CLASS="section">
+ <A NAME="help"><H2>Getting Help</H2></A>
+
+ <P>First place to look is at the Tuscany FAQ at
+ <A HREF="http://incubator.apache.org/tuscany/faq.html"
+ TARGET="_blank">http://incubator.apache.org/tuscany/faq.html</A> </P>
+
+ <P>Any problem with this release can be reported to the Tuscany
+ <A HREF="http://incubator.apache.org/tuscany/mail-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>
+
Propchange: incubator/tuscany/cpp/sca/samples/Calculator/README.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/samples/Calculator/README.html
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/tuscany/cpp/sca/samples/GettingStarted.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/GettingStarted.html?view=diff&rev=452913&r1=452912&r2=452913
==============================================================================
--- incubator/tuscany/cpp/sca/samples/GettingStarted.html (original)
+++ incubator/tuscany/cpp/sca/samples/GettingStarted.html Wed Oct 4 08:41:57 2006
@@ -17,212 +17,68 @@
<DIV ID="bodyColumn">
<DIV ID="contentBox">
<DIV CLASS="section">
- <H2>Tuscany Samples - Getting Started - SCA C++ Milestone release 1</H2>
+ <H2>Tuscany Samples - Getting Started - SCA C++ Milestone release 2</H2>
- <P>Tuscany SCA C++ includes a simple technology sample that demonstrates some of the functionality of
- the Tuscany SCA C++ runtime. This page describes what is needed to install and run the sample.
+ <P>Tuscany SCA C++ includes a set of simple technology samples that demonstrates some of the functionality of
+ the Tuscany SCA C++ runtime. This page describes the samples and links to the documents that describe how to
+ build and run them
</P>
</DIV>
<DIV CLASS="section">
- <H2>Contents</H2>
- <OL>
- <LI><A HREF="#linuxbld">Building the samples on Linux</A></LI>
- <LI><A HREF="#linuxrun">Running the samples on Linux:</A></LI>
- <UL>
- <LI><A HREF="#linuxcalcbasic">Calculator with basic client</A></LI>
- <LI><A HREF="#linuxcalcws">Calculator with Web Service client</A></LI>
- </UL>
- <LI><A HREF="#winbld">Building the samples on Windows</A></LI>
- <LI><A HREF="#winrun">Running the samples on Windows:</A></LI>
- <UL>
- <LI><A HREF="#wincalcbasic">Calculator with basic client</A></LI>
- <LI><A HREF="#wincalcws">Calculator with Web Service client</A></LI>
- </UL>
- </OL>
- </DIV>
-
-
- <DIV CLASS="section">
- <A NAME="linuxbld"><H2>Building the samples on Linux</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</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>
- <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI>
- </UL></LI>
- </LI>
- <LI>Build the source with the following command sequence:
- <UL>
- <LI>cd <tuscany_sca_install_dir>/samples</LI>
- <LI>./configure</LI>
- <LI>make</LI>
- <LI>make install</LI>
- </UL>
- NOTE: If you don't provide a --prefix configure option, it will by default install into
- /usr/local/tuscany/sca/samples/Calculator</LI>
- </OL>
- </DIV>
-
- <DIV CLASS="section">
- <A NAME="linuxrun"><H2>Running the samples on Linux</H2></A>
- <A NAME="linuxcalcbasic"><H3>Calculator with basic client</H3></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>
- <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI>
- </UL>
- </LI>
- <LI>Run the sample with the following commands:
- <UL>
- <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI>
- <LI>./runclient.sh</LI>
- </UL>
- </LI>
- </OL>
- <A NAME="linuxcalcws"><H3>Calculator with Web Service client</H3></A>
- <OL>
- <LI>Deploy the Calculator as an Axis2C service:
- <OL>
- <LI>Create a new service folder in axis2:<BR/>
- <AXIS2C_HOME>/services/Calculator</LI>
- <LI>Copy the <TUSCANY_SCACPP>/samples/Calculator/CalculatorComposite/services.xml
- to <AXIS2C_HOME>/services/Calculator/services.xml</LI>
- <LI>Edit the <AXIS2C_HOME>/services/Calculator/services.xml file to set the TuscanySystemRoot parameter to<BR/>
- <parameter name="TuscanySystemRoot" locked="xsd:false"><tuscany_sca_install_dir>/samples/Calculator/deploy</parameter><BR/>
- replacing <tuscany_sca_install_dir> with the install path of Tuscany SCA</LI>
- <LI>Copy the <TUSCANY_SCACPP>/lib/libtuscany_sca_ws_service.so library into <AXIS2C_HOME>/services/Calculator</LI>
- </OL>
- </LI>
- <LI>Start the Axis2C simple http server:
- <OL>
- <LI>cd <AXIS2C_HOME>/bin</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 axis2c version 0.92></LI>
- </UL>
- </LI>
- <LI>Add <TUSCANY_SCACPP>/lib, <TUSCANY_SDOCPP>/lib and <AXIS2C_HOME>/lib
- to the LD_LIBRARY_PATH environment variable
- </LI>
- <LI>./axis2_http_server</LI>
- </OL>
- </LI>
- <LI>Run the client:
- <OL>
- <LI>The following environment variable is required:
- <UL>
- <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI>
- </UL>
- </LI>
- <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI>
- <LI>./runwsclient.sh</LI>
- </OL>
- </LI>
- </OL>
- </DIV>
-
- <DIV CLASS="section">
- <A NAME="winbld"><H2>Building the samples 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>
- <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI>
- </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 6 or 7 projects under
- <tuscany_sca_install_dir>\samples\ides or via the command-line build file
- found at <tuscany_sca_install_dir>\samples\ides\devstudio6\projects\Calculator\build.cmd
- which will build and deploy the samples.
- </LI>
- </OL>
- </DIV>
-
- <DIV CLASS="section">
- <A NAME="winrun"><H2>Running the samples on Windows</H2></A>
- <A NAME="wincalcbasic"><H3>Calculator with basic client</H3></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>
- <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI>
- </UL>
- </LI>
- <LI>Run the sample with the following commands:
- <UL>
- <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI>
- <LI>runclient add 5 6<BR/>
- (can also use sub, div, mul).</LI>
- </UL>
- </LI>
- </OL>
- <A NAME="wincalcws"><H3>Calculator with Web Service client</H3></A>
- <OL>
- <LI>Deploy the Calculator as an Axis2C service:
- <OL>
- <LI>Create a new service folder in axis2:<BR/>
- <AXIS2C_HOME>/services/Calculator</LI>
- <LI>Copy the <TUSCANY_SCACPP>/samples/Calculator/CalculatorComposite/services.xml
- to <AXIS2C_HOME>/services/Calculator/services.xml</LI>
- <LI>Edit the <AXIS2C_HOME>/services/Calculator/services.xml file to set the TuscanySystemRoot parameter to<BR/>
- <parameter name="TuscanySystemRoot" locked="xsd:false"><TUSCANY_SCACPP>/samples/Calculator/deploy</parameter><BR/>
- replacing <TUSCANY_SCACPP> with the install path of Tuscany SCA</LI>
- <LI>Copy the <TUSCANY_SCACPP>/lib/tuscany_sca_ws_service.dll (and .pdb if debugging) file(s)
- into <AXIS2C_HOME>/services/Calculator</LI>
- </OL>
- </LI>
- <LI>Start the Axis2C simple http server:
- <OL>
- <LI>cd <AXIS2C_HOME>/bin</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 axis2c version 0.92></LI>
- </UL>
- </LI>
- <LI>Add <TUSCANY_SCACPP>\bin, <TUSCANY_SDOCPP>\bin and <AXIS2C_HOME>/lib
- to the PATH environment variable
- </LI>
- <LI>axis2_http_server</LI>
- </OL>
- </LI>
- <LI>Run the client:
- <OL>
- <LI>The following environment variable is required:
- <UL>
- <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI>
- </UL>
- </LI>
- <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI>
- <LI>runwsclient</LI>
- </OL>
- </LI>
- </OL>
+ <A NAME="samples"><H2>Samples</H2></A>
+ <TABLE CLASS="bodyTable">
+ <TBODY>
+ <TR CLASS="a">
+ <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="Calculator/README.html">Calculator</A>
+ </TD>
+ <TD>A very simple sample to show how an SCA composite can wire
+ together two C++ components to implement a Calculator service
+ and expose that service as a Web 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
+ and expose that service as a Web 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
+ and expose that service as a Web Service
+ </TD>
+ </TR>
+ <TR CLASS="a">
+ <TD STYLE="vertical-align: top; white-space: nowrap;"><A HREF="BigBank/README.html">BigBank</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="RubyBank/README.html">RubyBank</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>
+ </TBODY>
+ </TABLE>
+ <BR>
</DIV>
-
-
<DIV CLASS="section">
<A NAME="help"><H2>Getting Help</H2></A>
- <P>First place to look is at the Tuscany FAQ at
+ <P>The first place to look is at the Tuscany FAQ at
<A HREF="http://incubator.apache.org/tuscany/faq.html"
TARGET="_blank">http://incubator.apache.org/tuscany/faq.html</A> </P>
@@ -244,17 +100,14 @@
<P>Thank you for your interest in Tuscany.</P> <STRONG><EM>-The
Tuscany Development Team</EM></STRONG>
-
- <P></P>
-
</TD>
</TR>
</TBODY>
</TABLE>
-
- <P></P>
</DIV>
+
</DIV>
+
</DIV>
</BODY>
Added: incubator/tuscany/cpp/sca/samples/PythonCalculator/README.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PythonCalculator/README.html?view=auto&rev=452913
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PythonCalculator/README.html (added)
+++ incubator/tuscany/cpp/sca/samples/PythonCalculator/README.html Wed Oct 4 08:41:57 2006
@@ -0,0 +1,249 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!--
+ 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.
+ -->
+<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 for C++ Samples - PythonCalculator Sample</TITLE>
+</HEAD>
+
+<BODY>
+<DIV ID="bodyColumn">
+ <DIV ID="contentBox">
+ <DIV CLASS="section">
+ <H2>Tuscany SCA for C++ Samples - PythonCalculator Sample</H2>
+
+ <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 expose
+ that service as a Web Service.
+ </P>
+ <P>There are four 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.solution<BR/>
+ This contains the SCDL file describing the configuration of the SCA
+ Calculator composite deployed to the SCA runtime.
+ </LI>
+ <LI>sample.calculator.client<BR/>
+ A sample client which does a local call to the Calculator service.
+ </LI>
+ <LI>sample.calculator.wsclient<BR/>
+ A sample client which does a local call to a composite that contains a Web Service reference
+ that calls the Calculator Web Service.
+ </LI>
+ </UL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <H2>Contents</H2>
+ <OL>
+ <LI><A HREF="#linuxbld">Building the Python samples on Linux</A></LI>
+ <LI><A HREF="#linuxrun">Running the PythonCalculator sample on Linux:</A></LI>
+ <UL>
+ <LI><A HREF="#linuxbasic">Running the basic client</A></LI>
+ <LI><A HREF="#linuxws">Running the Web Service client</A></LI>
+ </UL>
+ <LI><A HREF="#winbld">Building the PythonCalculator sample on Windows</A></LI>
+ <LI><A HREF="#winrun">Running the PythonCalculator sample on Windows:</A></LI>
+ <UL>
+ <LI><A HREF="#winbasic">Running the basic client</A></LI>
+ <LI><A HREF="#winws">Running the Web Service client</A></LI>
+ </UL>
+ <LI><A HREF="#help">Getting help</A></LI>
+ </OL>
+ </DIV>
+
+
+ <DIV CLASS="section">
+ <A NAME="linuxbld"><H2>Building the Python samples on Linux</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</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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL></LI>
+ </LI>
+ <LI>As the PythonCalculator 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</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 PythonCalculator sample on Linux</H2></A>
+ <A NAME="linuxbasic"><H3>PythonCalculator with basic client</H3></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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>Run the sample with the following commands:
+ <UL>
+ <LI>cd <tuscany_sca_install_dir>/samples/PythonCalculator/deploy/bin</LI>
+ <LI>./runclient.sh</LI>
+ </UL>
+ </LI>
+ </OL>
+ <A NAME="linuxws"><H3>PythonCalculator with Web Service client</H3></A>
+ <OL>
+ <LI>Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions found here.
+ </LI>
+ <LI>Start the Axis2C 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 axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/PythonCalculator/deploy/bin
+ </LI>
+ <LI>./runwsserver.sh</LI>
+ </OL>
+ </LI>
+ <LI>Run the client:
+ <OL>
+ <LI>The following environment variable is required:
+ <UL>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/PythonCalculator/deploy/bin</LI>
+ <LI>./runwsclient.sh</LI>
+ </OL>
+ </LI>
+ </OL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <A NAME="winbld"><H2>Building the PythonCalculator 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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></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.cmd</LI>
+ </UL>
+ </LI>
+ </OL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <A NAME="winrun"><H2>Running the PythonCalculator sample on Windows</H2></A>
+ <A NAME="winbasic"><H3>PythonCalculator with basic client</H3></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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>Run the sample with the following commands:
+ <UL>
+ <LI>cd <tuscany_sca_install_dir>/samples/PythonCalculator/deploy/bin</LI>
+ <LI>./runclient.bat</LI>
+ </UL>
+ </LI>
+ </OL>
+ <A NAME="winws"><H3>PythonCalculator with Web Service client</H3></A>
+ <OL>
+ <LI>Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions found here.
+ </LI>
+ <LI>Start the Axis2C 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 axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/PythonCalculator/deploy/bin
+ </LI>
+ <LI>./runwsserver.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>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/PythonCalculator/deploy/bin</LI>
+ <LI>./runwsclient.bat</LI>
+ </OL>
+ </LI>
+ </OL>
+ </DIV>
+
+
+
+ <DIV CLASS="section">
+ <A NAME="help"><H2>Getting Help</H2></A>
+
+ <P>First place to look is at the Tuscany FAQ at
+ <A HREF="http://incubator.apache.org/tuscany/faq.html"
+ TARGET="_blank">http://incubator.apache.org/tuscany/faq.html</A> </P>
+
+ <P>Any problem with this release can be reported to the Tuscany
+ <A HREF="http://incubator.apache.org/tuscany/mail-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>
+
Propchange: incubator/tuscany/cpp/sca/samples/PythonCalculator/README.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/samples/PythonCalculator/README.html
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/cpp/sca/samples/RubyBank/README.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RubyBank/README.html?view=auto&rev=452913
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RubyBank/README.html (added)
+++ incubator/tuscany/cpp/sca/samples/RubyBank/README.html Wed Oct 4 08:41:57 2006
@@ -0,0 +1,233 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!--
+ 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.
+ -->
+<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 for C++ Samples - RubyBank Sample</TITLE>
+</HEAD>
+
+<BODY>
+<DIV ID="bodyColumn">
+ <DIV ID="contentBox">
+ <DIV CLASS="section">
+ <H2>Tuscany SCA for C++ Samples - RubyBank Sample</H2>
+
+ <P>This sample that the "Simplified RubyBank" 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>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 RubyBank
+ composite implementing the account services.
+ </LI>
+ <LI>bigbank.accountmanagement<BR/>
+ This contains the SCDL file describing the configuration of the SCA
+ RubyBank composite deployed to the SCA runtime.
+ </LI>
+ <LI>bigbank.client<BR/>
+ A sample client which does a local call to the RubyBank service.
+ </LI>
+ </UL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <H2>Contents</H2>
+ <OL>
+ <LI><A HREF="#linuxbld">Building the C++ samples on Linux</A></LI>
+ <LI><A HREF="#linuxrun">Running the RubyBank sample on Linux:</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 RubyBank sample on Windows</A></LI>
+ <LI><A HREF="#winrun">Running the RubyBank 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 C++ samples on Linux</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</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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL></LI>
+ </LI>
+ <LI>As the RubyBank 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</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/RubyBank
+ </LI>
+ </OL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <A NAME="linuxrun"><H2>Running the RubyBank sample on Linux</H2></A>
+ <A NAME="linuxbasic"><H3>RubyBank with basic client</H3></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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI>
+ </UL>
+ </LI>
+ <LI>Run the sample with the following commands:
+ <UL>
+ <LI>cd <tuscany_sca_install_dir>/samples/RubyBank/deploy/bin</LI>
+ <LI>./runclient.sh</LI>
+ </UL>
+ </LI>
+ </OL>
+ <A NAME="linuxws"><H3>RubyBank with Web Service clients</H3></A>
+ <OL>
+ <LI>Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions found here.
+ </LI>
+ <LI>Start the Axis2C 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 axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/RubyBank/deploy/bin
+ </LI>
+ <LI>./runwsserver.sh</LI>
+ </OL>
+ </LI>
+ <LI>The Web Service client and PHP web client detailed in the
+ <A HREF="../BigBank/README.html">BigBank</A> sample can both be used
+ with the RubyBank service that is served by the Axis2C http server started above.
+ </LI>
+ </OL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <A NAME="winbld"><H2>Building the RubyBank 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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </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/RubyBank</LI>
+ <LI>./deploy.cmd</LI>
+ </UL>
+ </LI>
+ </OL>
+ </DIV>
+
+ <DIV CLASS="section">
+ <A NAME="winrun"><H2>Running the RubyBank sample on Windows</H2></A>
+ <A NAME="winbasic"><H3>RubyBank with basic client</H3></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>
+ <LI>AXIS2C_HOME=<path to axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>Run the sample with the following commands:
+ <UL>
+ <LI>cd <tuscany_sca_install_dir>/samples/RubyBank/deploy/bin</LI>
+ <LI>./runclient.bat</LI>
+ </UL>
+ </LI>
+ </OL>
+ <A NAME="winws"><H3>RubyBank with Web Service clients</H3></A>
+ <OL>
+ <LI>Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions found here.
+ </LI>
+ <LI>Start the Axis2C 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 axis2c version 0.93></LI>
+ </UL>
+ </LI>
+ <LI>cd <tuscany_sca_install_dir>/samples/RubyBank/deploy/bin
+ </LI>
+ <LI>./runwsserver.bat</LI>
+ </OL>
+ </LI>
+ <LI>The Web Service client and PHP web client detailed in the
+ <A HREF="../BigBank/README.html">BigBank</A> sample can both be used
+ with the RubyBank service that is served by the Axis2C http server started above.
+ </LI>
+ </OL>
+ </DIV>
+
+
+
+ <DIV CLASS="section">
+ <A NAME="help"><H2>Getting Help</H2></A>
+
+ <P>First place to look is at the Tuscany FAQ at
+ <A HREF="http://incubator.apache.org/tuscany/faq.html"
+ TARGET="_blank">http://incubator.apache.org/tuscany/faq.html</A> </P>
+
+ <P>Any problem with this release can be reported to the Tuscany
+ <A HREF="http://incubator.apache.org/tuscany/mail-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>
+
Propchange: incubator/tuscany/cpp/sca/samples/RubyBank/README.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/samples/RubyBank/README.html
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/cpp/sca/samples/RubyBank/deploy.cmd
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RubyBank/deploy.cmd?view=auto&rev=452913
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RubyBank/deploy.cmd (added)
+++ incubator/tuscany/cpp/sca/samples/RubyBank/deploy.cmd Wed Oct 4 08:41:57 2006
@@ -0,0 +1,51 @@
+@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 deployment of the
+rem SCA sample.
+setlocal
+set currentPath=%~d0%~p0
+set sourcePath=%currentPath%
+
+if . == %2. (
+set destinationPath=%sourcePath%\deploy
+) ELSE (
+set destinationPath=%2
+)
+
+if not exist %destinationPath% mkdir %destinationPath%
+if not exist %destinationPath%\packages mkdir %destinationPath%\packages
+if not exist %destinationPath%\packages\bigbank.account mkdir %destinationPath%\packages\bigbank.account
+if not exist %destinationPath%\packages\bigbank.client mkdir %destinationPath%\packages\bigbank.client
+if not exist %destinationPath%\configuration mkdir %destinationPath%\configuration
+if not exist %destinationPath%\configuration\bigbank.accountmanagement mkdir %destinationPath%\configuration\bigbank.accountmanagement
+if not exist %destinationPath%\bin mkdir %destinationPath%\bin
+
+copy %sourcePath%\bigbank.account\*.rb %destinationPath%\packages\bigbank.account
+copy %sourcePath%\bigbank.account\*.composite %destinationPath%\packages\bigbank.account
+copy %sourcePath%\bigbank.account\*.wsdl %destinationPath%\packages\bigbank.account
+copy %sourcePath%\bigbank.account\*.xsd %destinationPath%\packages\bigbank.account
+
+copy %sourcePath%\bigbank.client\*.rb %destinationPath%\packages\bigbank.client
+
+copy %sourcePath%\bigbank.accountmanagement\*.composite %destinationPath%\configuration\bigbank.accountmanagement
+
+copy %sourcePath%\bigbank.account\*.bat %destinationPath%\bin
+copy %sourcePath%\bigbank.client\*.bat %destinationPath%\bin
+
+endlocal
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org