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/11/28 12:18:49 UTC

svn commit: r479990 - in /incubator/tuscany/cpp/sca/samples/WeatherForecast: ./ sample.weather.client/ sample.weather/

Author: ajborley
Date: Tue Nov 28 03:18:45 2006
New Revision: 479990

URL: http://svn.apache.org/viewvc?view=rev&rev=479990
Log:
Added WeatherForecast Python sample

Added:
    incubator/tuscany/cpp/sca/samples/WeatherForecast/
    incubator/tuscany/cpp/sca/samples/WeatherForecast/Makefile.am   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/README   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/README.html   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/deploy.bat   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/
    incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.app.composite   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/
    incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/Makefile.am   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.bat   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.sh   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/weather_forecast_client.py   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/Makefile.am   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecast.wsdl   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecastImpl.py   (with props)
    incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/sample.weather.composite   (with props)

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/Makefile.am?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/Makefile.am (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/Makefile.am Tue Nov 28 03:18:45 2006
@@ -0,0 +1,21 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#    http://www.apache.org/licenses/LICENSE-2.0
+#    
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT 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)/samples/WeatherForecast/deploy
+SUBDIRS = sample.weather sample.weather.client
+EXTRA_DIST = *.composite README.html
+deploy_DATA = *.composite

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/Makefile.am
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/Makefile.am
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/README?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/README (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/README Tue Nov 28 03:18:45 2006
@@ -0,0 +1,20 @@
+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

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/README
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/README
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/README.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/README.html?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/README.html (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/README.html Tue Nov 28 03:18:45 2006
@@ -0,0 +1,185 @@
+
+<!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 for C++ Samples - Weather Forecast 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 components to implement calls to a Weather Forecast web service. 
+         </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.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 Python samples on Linux</A></LI>
+            <LI><A HREF="#linuxrun">Running the WeatherForecast sample on Linux:</A></LI>
+            <LI><A HREF="#winbld">Building the WeatherForecast sample on Windows</A></LI>
+            <LI><A HREF="#winrun">Running the WeatherForecast 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</H2></A>
+         <P>If using the binary distribution the samples are built and installed in
+            &lt;tuscany_sca_install_dir&gt;/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=&lt;path to installed Tuscany SCA&gt;                                      
+                  <LI>TUSCANY_SDOCPP=&lt;path to installed Tuscany SDO&gt;                                      
+                  <LI>AXIS2C_HOME=&lt;path to axis2c version 0.94&gt;</LI>
+                </UL></LI>
+             </LI>
+             <LI>As the WeatherForecast 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 &lt;tuscany_sca_install_dir&gt;/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/WeatherForecast</LI>
+         </OL>                                                  
+        </DIV>
+
+       <DIV CLASS="section"> 
+         <A NAME="linuxrun"><H2>Running the WeatherForecast sample on Linux</H2></A>
+         <OL>
+             <LI>Ensure you have enabled the Tuscany Python extension. Follow the instructions 
+                 found <A HREF="../../doc/PythonExtension.html#linuxbin">here</A>.
+             </LI>
+             <LI>The following environment variables are required:                                 
+                <UL>
+                  <LI>TUSCANY_SCACPP=&lt;path to installed Tuscany SCA&gt;</LI>                                      
+                  <LI>TUSCANY_SDOCPP=&lt;path to installed Tuscany SDO&gt;</LI>                                      
+                  <LI>AXIS2C_HOME=&lt;path to axis2c version 0.94&gt;</LI>
+                </UL>
+             </LI>
+             <LI>Run the sample with the following commands:
+                <UL>
+                   <LI>cd &lt;tuscany_sca_install_dir&gt;/samples/WeatherForecast/deploy/sample.weather.client</LI>
+                   <LI>./runclient.sh</LI>
+                </UL>
+             </LI>
+         </OL>                                                  
+        </DIV>
+
+        <DIV CLASS="section">
+         <A NAME="winbld"><H2>Building the WeatherForecast sample on Windows</H2></A>
+         <P>If using the binary distribution the samples are built and installed in
+            &lt;tuscany_sca_install_dir&gt;\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=&lt;path to installed Tuscany SCA&gt;                                      
+                  <LI>TUSCANY_SDOCPP=&lt;path to installed Tuscany SDO&gt;                                      
+                  <LI>AXIS2C_HOME=&lt;path to axis2c version 0.94&gt;</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 &lt;tuscany_sca_install_dir&gt;\samples\WeatherForecast</LI>
+                   <LI>deploy.bat</LI>
+                </UL>
+             </LI>
+         </OL>                                                  
+        </DIV>
+
+       <DIV CLASS="section"> 
+         <A NAME="winrun"><H2>Running the WeatherForecast sample on Windows</H2></A>
+         <OL>
+             <LI>Ensure you have enabled the Tuscany Python extension. Follow the instructions 
+                 found <A HREF="../../doc/PythonExtension.html#winbin">here</A>.
+             </LI>
+             <LI>The following environment variables are required:                                 
+                <UL>
+                  <LI>TUSCANY_SCACPP=&lt;path to installed Tuscany SCA&gt;</LI>                                      
+                  <LI>TUSCANY_SDOCPP=&lt;path to installed Tuscany SDO&gt;</LI>                                      
+                  <LI>AXIS2C_HOME=&lt;path to axis2c version 0.94&gt;</LI>
+                </UL>
+             </LI>
+             <LI>Run the sample with the following commands:
+                <UL>
+                   <LI>cd &lt;tuscany_sca_install_dir&gt;\samples\WeatherForecast\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>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&nbsp;<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/WeatherForecast/README.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/README.html
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/README.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/deploy.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/deploy.bat?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/deploy.bat (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/deploy.bat Tue Nov 28 03:18:45 2006
@@ -0,0 +1,49 @@
+@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%
+
+set deploydir=%TUSCANY_SCACPP%
+set samplesdir=%deploydir%\samples
+set weatherdir=%samplesdir%\WeatherForecast
+
+if . == %1. (
+set destinationPath=%weatherdir%\deploy
+) ELSE (
+set destinationPath=%1
+)
+
+if not exist %samplesdir%                         mkdir %samplesdir%
+if not exist %weatherdir%                         mkdir %weatherdir%
+if not exist %destinationPath%                    mkdir %destinationPath%
+if not exist %destinationPath%\sample.weather     mkdir %destinationPath%\sample.weather
+copy %sourcePath%\sample.weather\*.composite      %destinationPath%\sample.weather
+copy %sourcePath%\sample.weather\*.py             %destinationPath%\sample.weather
+copy %sourcePath%\sample.weather\*.wsdl           %destinationPath%\sample.weather
+
+if not exist %destinationPath%\sample.weather.client mkdir         %destinationPath%\sample.weather.client
+copy %sourcePath%\sample.weather.client\weather_forecast_client.py %destinationPath%\sample.weather.client
+copy %sourcePath%\sample.weather.client\runclient.bat              %destinationPath%\sample.weather.client
+
+copy %sourcePath%\*.composite %destinationPath%
+
+endlocal

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/deploy.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/deploy.bat
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.app.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.app.composite?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.app.composite (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.app.composite Tue Nov 28 03:18:45 2006
@@ -0,0 +1,28 @@
+<?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>

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.app.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.app.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/Makefile.am?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/Makefile.am (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/Makefile.am Tue Nov 28 03:18:45 2006
@@ -0,0 +1,23 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#    http://www.apache.org/licenses/LICENSE-2.0
+#    
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT 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)/samples/WeatherForecast/deploy
+clientdir=$(deploydir)/sample.weather.client
+
+client_DATA = *.py
+client_SCRIPTS = runclient.sh
+EXTRA_DIST = runclient.sh *.py

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/Makefile.am
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/Makefile.am
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.bat?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.bat (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.bat Tue Nov 28 03:18:45 2006
@@ -0,0 +1,50 @@
+@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

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.bat
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.sh
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.sh?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.sh (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.sh Tue Nov 28 03:18:45 2006
@@ -0,0 +1,48 @@
+#!/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/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
+

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/runclient.sh
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/weather_forecast_client.py
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/weather_forecast_client.py?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/weather_forecast_client.py (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/weather_forecast_client.py Tue Nov 28 03:18:45 2006
@@ -0,0 +1,49 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT 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
+
+
+
+
+

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/weather_forecast_client.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather.client/weather_forecast_client.py
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/Makefile.am?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/Makefile.am (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/Makefile.am Tue Nov 28 03:18:45 2006
@@ -0,0 +1,23 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#    http://www.apache.org/licenses/LICENSE-2.0
+#    
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT 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)/samples/WeatherForecast/deploy
+compositedir=$(deploydir)/sample.weather
+
+composite_DATA = *.composite *.wsdl *.py
+EXTRA_DIST = *.composite *.wsdl *.py
+

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/Makefile.am
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/Makefile.am
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecast.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecast.wsdl?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecast.wsdl (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecast.wsdl Tue Nov 28 03:18:45 2006
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="utf-8"?>
+<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="GetWeatherByZipCode">
+        <s:complexType>
+          <s:sequence>
+            <s:element minOccurs="0" maxOccurs="1" name="ZipCode" type="s:string" />
+          </s:sequence>
+        </s:complexType>
+      </s:element>
+      <s:element name="GetWeatherByZipCodeResponse">
+        <s:complexType>
+          <s:sequence>
+            <s:element minOccurs="1" maxOccurs="1" name="GetWeatherByZipCodeResult" type="tns:WeatherForecasts" />
+          </s:sequence>
+        </s:complexType>
+      </s:element>
+      <s:complexType name="WeatherForecasts">
+        <s:sequence>
+          <s:element minOccurs="1" maxOccurs="1" name="Latitude" type="s:float" />
+          <s:element minOccurs="1" maxOccurs="1" name="Longitude" type="s:float" />
+          <s:element minOccurs="1" maxOccurs="1" name="AllocationFactor" type="s:float" />
+          <s:element minOccurs="0" maxOccurs="1" name="FipsCode" type="s:string" />
+          <s:element minOccurs="0" maxOccurs="1" name="PlaceName" type="s:string" />
+          <s:element minOccurs="0" maxOccurs="1" name="StateCode" type="s:string" />
+          <s:element minOccurs="0" maxOccurs="1" name="Status" type="s:string" />
+          <s:element minOccurs="0" maxOccurs="1" name="Details" type="tns:ArrayOfWeatherData" />
+        </s:sequence>
+      </s:complexType>
+      <s:complexType name="ArrayOfWeatherData">
+        <s:sequence>
+          <s:element minOccurs="0" maxOccurs="unbounded" name="WeatherData" type="tns:WeatherData" />
+        </s:sequence>
+      </s:complexType>
+      <s:complexType name="WeatherData">
+        <s:sequence>
+          <s:element minOccurs="0" maxOccurs="1" name="Day" type="s:string" />
+          <s:element minOccurs="0" maxOccurs="1" name="WeatherImage" type="s:string" />
+          <s:element minOccurs="0" maxOccurs="1" name="MaxTemperatureF" type="s:string" />
+          <s:element minOccurs="0" maxOccurs="1" name="MinTemperatureF" type="s:string" />
+          <s:element minOccurs="0" maxOccurs="1" name="MaxTemperatureC" type="s:string" />
+          <s:element minOccurs="0" maxOccurs="1" name="MinTemperatureC" type="s:string" />
+        </s:sequence>
+      </s:complexType>
+      <s:element name="GetWeatherByPlaceName">
+        <s:complexType>
+          <s:sequence>
+            <s:element minOccurs="0" maxOccurs="1" name="PlaceName" type="s:string" />
+          </s:sequence>
+        </s:complexType>
+      </s:element>
+      <s:element name="GetWeatherByPlaceNameResponse">
+        <s:complexType>
+          <s:sequence>
+            <s:element minOccurs="1" maxOccurs="1" name="GetWeatherByPlaceNameResult" type="tns:WeatherForecasts" />
+          </s:sequence>
+        </s:complexType>
+      </s:element>
+      <s:element name="WeatherForecasts" type="tns:WeatherForecasts" />
+    </s:schema>
+  </wsdl:types>
+  <wsdl:message name="GetWeatherByZipCodeSoapIn">
+    <wsdl:part name="parameters" element="tns:GetWeatherByZipCode" />
+  </wsdl:message>
+  <wsdl:message name="GetWeatherByZipCodeSoapOut">
+    <wsdl:part name="parameters" element="tns:GetWeatherByZipCodeResponse" />
+  </wsdl:message>
+  <wsdl:message name="GetWeatherByPlaceNameSoapIn">
+    <wsdl:part name="parameters" element="tns:GetWeatherByPlaceName" />
+  </wsdl:message>
+  <wsdl:message name="GetWeatherByPlaceNameSoapOut">
+    <wsdl:part name="parameters" element="tns:GetWeatherByPlaceNameResponse" />
+  </wsdl:message>
+  <wsdl:message name="GetWeatherByZipCodeHttpGetIn">
+    <wsdl:part name="ZipCode" type="s:string" />
+  </wsdl:message>
+  <wsdl:message name="GetWeatherByZipCodeHttpGetOut">
+    <wsdl:part name="Body" element="tns:WeatherForecasts" />
+  </wsdl:message>
+  <wsdl:message name="GetWeatherByPlaceNameHttpGetIn">
+    <wsdl:part name="PlaceName" type="s:string" />
+  </wsdl:message>
+  <wsdl:message name="GetWeatherByPlaceNameHttpGetOut">
+    <wsdl:part name="Body" element="tns:WeatherForecasts" />
+  </wsdl:message>
+  <wsdl:message name="GetWeatherByZipCodeHttpPostIn">
+    <wsdl:part name="ZipCode" type="s:string" />
+  </wsdl:message>
+  <wsdl:message name="GetWeatherByZipCodeHttpPostOut">
+    <wsdl:part name="Body" element="tns:WeatherForecasts" />
+  </wsdl:message>
+  <wsdl:message name="GetWeatherByPlaceNameHttpPostIn">
+    <wsdl:part name="PlaceName" type="s:string" />
+  </wsdl:message>
+  <wsdl:message name="GetWeatherByPlaceNameHttpPostOut">
+    <wsdl:part name="Body" element="tns:WeatherForecasts" />
+  </wsdl:message>
+  <wsdl:portType name="WeatherForecastSoap">
+    <wsdl:operation name="GetWeatherByZipCode">
+      <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Get one week weather forecast for a valid Zip Code(USA)</documentation>
+      <wsdl:input message="tns:GetWeatherByZipCodeSoapIn" />
+      <wsdl:output message="tns:GetWeatherByZipCodeSoapOut" />
+    </wsdl:operation>
+    <wsdl:operation name="GetWeatherByPlaceName">
+      <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Get one week  weather forecast for a place name(USA)</documentation>
+      <wsdl:input message="tns:GetWeatherByPlaceNameSoapIn" />
+      <wsdl:output message="tns:GetWeatherByPlaceNameSoapOut" />
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:portType name="WeatherForecastHttpGet">
+    <wsdl:operation name="GetWeatherByZipCode">
+      <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Get one week weather forecast for a valid Zip Code(USA)</documentation>
+      <wsdl:input message="tns:GetWeatherByZipCodeHttpGetIn" />
+      <wsdl:output message="tns:GetWeatherByZipCodeHttpGetOut" />
+    </wsdl:operation>
+    <wsdl:operation name="GetWeatherByPlaceName">
+      <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Get one week  weather forecast for a place name(USA)</documentation>
+      <wsdl:input message="tns:GetWeatherByPlaceNameHttpGetIn" />
+      <wsdl:output message="tns:GetWeatherByPlaceNameHttpGetOut" />
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:portType name="WeatherForecastHttpPost">
+    <wsdl:operation name="GetWeatherByZipCode">
+      <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Get one week weather forecast for a valid Zip Code(USA)</documentation>
+      <wsdl:input message="tns:GetWeatherByZipCodeHttpPostIn" />
+      <wsdl:output message="tns:GetWeatherByZipCodeHttpPostOut" />
+    </wsdl:operation>
+    <wsdl:operation name="GetWeatherByPlaceName">
+      <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Get one week  weather forecast for a place name(USA)</documentation>
+      <wsdl:input message="tns:GetWeatherByPlaceNameHttpPostIn" />
+      <wsdl:output message="tns:GetWeatherByPlaceNameHttpPostOut" />
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:binding name="WeatherForecastSoap" type="tns:WeatherForecastSoap">
+    <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:binding name="WeatherForecastHttpGet" type="tns:WeatherForecastHttpGet">
+    <http:binding verb="GET" />
+    <wsdl:operation name="GetWeatherByZipCode">
+      <http:operation location="/GetWeatherByZipCode" />
+      <wsdl:input>
+        <http:urlEncoded />
+      </wsdl:input>
+      <wsdl:output>
+        <mime:mimeXml part="Body" />
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="GetWeatherByPlaceName">
+      <http:operation location="/GetWeatherByPlaceName" />
+      <wsdl:input>
+        <http:urlEncoded />
+      </wsdl:input>
+      <wsdl:output>
+        <mime:mimeXml part="Body" />
+      </wsdl:output>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:binding name="WeatherForecastHttpPost" type="tns:WeatherForecastHttpPost">
+    <http:binding verb="POST" />
+    <wsdl:operation name="GetWeatherByZipCode">
+      <http:operation location="/GetWeatherByZipCode" />
+      <wsdl:input>
+        <mime:content type="application/x-www-form-urlencoded" />
+      </wsdl:input>
+      <wsdl:output>
+        <mime:mimeXml part="Body" />
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="GetWeatherByPlaceName">
+      <http:operation location="/GetWeatherByPlaceName" />
+      <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="WeatherForecast">
+    <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Get one week weather forecast for valid zip code or Place name in USA</documentation>
+    <wsdl:port name="WeatherForecastSoap" binding="tns:WeatherForecastSoap">
+      <soap:address location="http://www.webservicex.net/WeatherForecast.asmx" />
+    </wsdl:port>
+    <wsdl:port name="WeatherForecastHttpGet" binding="tns:WeatherForecastHttpGet">
+      <http:address location="http://www.webservicex.net/WeatherForecast.asmx" />
+    </wsdl:port>
+    <wsdl:port name="WeatherForecastHttpPost" binding="tns:WeatherForecastHttpPost">
+      <http:address location="http://www.webservicex.net/WeatherForecast.asmx" />
+    </wsdl:port>
+  </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecast.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecast.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecastImpl.py
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecastImpl.py?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecastImpl.py (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecastImpl.py Tue Nov 28 03:18:45 2006
@@ -0,0 +1,65 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT 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"):
+            result += node.findtext(pathAndNS+"Day")
+            result += ":\tMax "+ node.findtext(pathAndNS+"MaxTemperatureC")
+            result += "C. Min "+ node.findtext(pathAndNS+"MinTemperatureC")+ "C.\n"
+
+    return result

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecastImpl.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/WeatherForecastImpl.py
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/sample.weather.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/sample.weather.composite?view=auto&rev=479990
==============================================================================
--- incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/sample.weather.composite (added)
+++ incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/sample.weather.composite Tue Nov 28 03:18:45 2006
@@ -0,0 +1,36 @@
+<?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(WeatherForecastSoap)"/>
+        <binding.ws endpoint="http://www.webservicex.net#wsdl.endpoint(WeatherForecast/WeatherForecastSoap)"/>
+        <!--binding.ws uri="http://www.webservicex.net/WeatherForecast.asmx"/-->
+    </reference>
+
+</composite>

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/sample.weather.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/WeatherForecast/sample.weather/sample.weather.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org