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 2007/01/10 13:39:24 UTC

svn commit: r494799 - in /incubator/tuscany/cpp/sca: VSExpress/tuscany_sca/ VSExpress/tuscany_sca/tuscany_sca_php/ runtime/extensions/php/src/tuscany/sca/php/ samples/PHPCalculator/ samples/PHPCalculator/sample.calculator.client/ samples/PHPCalculator/...

Author: ajborley
Date: Wed Jan 10 04:39:17 2007
New Revision: 494799

URL: http://svn.apache.org/viewvc?view=rev&rev=494799
Log:
Applying Simon's TUSCANY-974 patches (up to 090107)

Added:
    incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca_php/
    incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca_php/tuscany_sca_php.vcproj   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/
    incubator/tuscany/cpp/sca/samples/PHPCalculator/README   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/deploy.bat   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.app.composite   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.php   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient.bat   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/Calculator.wsdl   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/CalculatorWSClient.php   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/runwsclient.bat   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.componentType   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.h   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.php   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.componentType   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.h   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.php   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.wsdl   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.componentType   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.h   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.php   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.componentType   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.h   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.php   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.componentType   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.h   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.php   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/runwsserver.bat   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite   (with props)
    incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite.back
Modified:
    incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca.sln
    incubator/tuscany/cpp/sca/runtime/extensions/php/src/tuscany/sca/php/PHPServiceWrapper.cpp

Modified: incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca.sln
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca.sln?view=diff&rev=494799&r1=494798&r2=494799
==============================================================================
--- incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca.sln (original)
+++ incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca.sln Wed Jan 10 04:39:17 2007
@@ -3,20 +3,20 @@
 # Visual C++ Express 2005
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Build", "Build\Build.vcproj", "{DE6DB733-17B8-40EC-B01D-6665C84347B4}"
 	ProjectSection(ProjectDependencies) = postProject
-		{13E1E4E1-0891-44C2-A9BF-1F6B5F2D81BF} = {13E1E4E1-0891-44C2-A9BF-1F6B5F2D81BF}
-		{4E16D015-6578-4D78-8DF0-82A98DB56CC3} = {4E16D015-6578-4D78-8DF0-82A98DB56CC3}
 		{C255EE00-A218-4A7F-8767-C3B2F24E60B1} = {C255EE00-A218-4A7F-8767-C3B2F24E60B1}
-		{287EB9DF-08E5-4D2F-BCCC-46F374B55AB3} = {287EB9DF-08E5-4D2F-BCCC-46F374B55AB3}
+		{4E16D015-6578-4D78-8DF0-82A98DB56CC3} = {4E16D015-6578-4D78-8DF0-82A98DB56CC3}
+		{E13F6477-84B6-4F60-8E51-78848D5C339E} = {E13F6477-84B6-4F60-8E51-78848D5C339E}
 		{739F4B82-E119-4E0F-B5E0-729D3BF22F47} = {739F4B82-E119-4E0F-B5E0-729D3BF22F47}
 		{29DA398E-ED24-4C7D-BA77-88CD96DA54A0} = {29DA398E-ED24-4C7D-BA77-88CD96DA54A0}
-		{B8B866BF-EF67-49C8-B111-5A8D0D99FE34} = {B8B866BF-EF67-49C8-B111-5A8D0D99FE34}
-		{6D7429AA-A268-4F21-B93B-A61776C9C96F} = {6D7429AA-A268-4F21-B93B-A61776C9C96F}
-		{AF06B4A8-F3F4-41BE-B12E-AE7D421BF0A2} = {AF06B4A8-F3F4-41BE-B12E-AE7D421BF0A2}
-		{E35EC8A6-A7CA-49EC-8C23-AC186F9D27C2} = {E35EC8A6-A7CA-49EC-8C23-AC186F9D27C2}
-		{F721B298-4AD0-44F0-A53D-6CD5DD718688} = {F721B298-4AD0-44F0-A53D-6CD5DD718688}
-		{FE557491-82A6-4610-9059-5C2C4BCFBFBD} = {FE557491-82A6-4610-9059-5C2C4BCFBFBD}
 		{B5630E91-D747-4520-8089-0EAAB76BE600} = {B5630E91-D747-4520-8089-0EAAB76BE600}
-		{E13F6477-84B6-4F60-8E51-78848D5C339E} = {E13F6477-84B6-4F60-8E51-78848D5C339E}
+		{FE557491-82A6-4610-9059-5C2C4BCFBFBD} = {FE557491-82A6-4610-9059-5C2C4BCFBFBD}
+		{F721B298-4AD0-44F0-A53D-6CD5DD718688} = {F721B298-4AD0-44F0-A53D-6CD5DD718688}
+		{E35EC8A6-A7CA-49EC-8C23-AC186F9D27C2} = {E35EC8A6-A7CA-49EC-8C23-AC186F9D27C2}
+		{AF06B4A8-F3F4-41BE-B12E-AE7D421BF0A2} = {AF06B4A8-F3F4-41BE-B12E-AE7D421BF0A2}
+		{6D7429AA-A268-4F21-B93B-A61776C9C96F} = {6D7429AA-A268-4F21-B93B-A61776C9C96F}
+		{B8B866BF-EF67-49C8-B111-5A8D0D99FE34} = {B8B866BF-EF67-49C8-B111-5A8D0D99FE34}
+		{287EB9DF-08E5-4D2F-BCCC-46F374B55AB3} = {287EB9DF-08E5-4D2F-BCCC-46F374B55AB3}
+		{13E1E4E1-0891-44C2-A9BF-1F6B5F2D81BF} = {13E1E4E1-0891-44C2-A9BF-1F6B5F2D81BF}
 	EndProjectSection
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tuscany_sca", "tuscany_sca\tuscany_sca.vcproj", "{E13F6477-84B6-4F60-8E51-78848D5C339E}"
@@ -50,8 +50,8 @@
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tuscany_sca_python_sca_module", "tuscany_sca_python_sca_module\tuscany_sca_python_sca_module.vcproj", "{C255EE00-A218-4A7F-8767-C3B2F24E60B1}"
 	ProjectSection(ProjectDependencies) = postProject
-		{E35EC8A6-A7CA-49EC-8C23-AC186F9D27C2} = {E35EC8A6-A7CA-49EC-8C23-AC186F9D27C2}
 		{E13F6477-84B6-4F60-8E51-78848D5C339E} = {E13F6477-84B6-4F60-8E51-78848D5C339E}
+		{E35EC8A6-A7CA-49EC-8C23-AC186F9D27C2} = {E35EC8A6-A7CA-49EC-8C23-AC186F9D27C2}
 	EndProjectSection
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tuscany_sca_scabinding_reference", "tuscany_sca_scabinding_reference\tuscany_sca_scabinding_reference.vcproj", "{6D7429AA-A268-4F21-B93B-A61776C9C96F}"
@@ -66,8 +66,8 @@
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tuscany_sca_rest_reference", "tuscany_sca_rest_reference\tuscany_sca_rest_reference.vcproj", "{29DA398E-ED24-4C7D-BA77-88CD96DA54A0}"
 	ProjectSection(ProjectDependencies) = postProject
-		{287EB9DF-08E5-4D2F-BCCC-46F374B55AB3} = {287EB9DF-08E5-4D2F-BCCC-46F374B55AB3}
 		{E13F6477-84B6-4F60-8E51-78848D5C339E} = {E13F6477-84B6-4F60-8E51-78848D5C339E}
+		{287EB9DF-08E5-4D2F-BCCC-46F374B55AB3} = {287EB9DF-08E5-4D2F-BCCC-46F374B55AB3}
 	EndProjectSection
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tuscany_sca_rest_service", "tuscany_sca_rest_service\tuscany_sca_rest_service.vcproj", "{B8B866BF-EF67-49C8-B111-5A8D0D99FE34}"
@@ -86,6 +86,8 @@
 		{E13F6477-84B6-4F60-8E51-78848D5C339E} = {E13F6477-84B6-4F60-8E51-78848D5C339E}
 	EndProjectSection
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tuscany_sca_php", "tuscany_sca_php\tuscany_sca_php.vcproj", "{28E45334-1F59-45CB-93EE-FB787D81B6D2}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Win32 = Debug|Win32
@@ -146,6 +148,10 @@
 		{287EB9DF-08E5-4D2F-BCCC-46F374B55AB3}.Debug|Win32.Build.0 = Debug|Win32
 		{287EB9DF-08E5-4D2F-BCCC-46F374B55AB3}.Release|Win32.ActiveCfg = Release|Win32
 		{287EB9DF-08E5-4D2F-BCCC-46F374B55AB3}.Release|Win32.Build.0 = Release|Win32
+		{28E45334-1F59-45CB-93EE-FB787D81B6D2}.Debug|Win32.ActiveCfg = Debug|Win32
+		{28E45334-1F59-45CB-93EE-FB787D81B6D2}.Debug|Win32.Build.0 = Debug|Win32
+		{28E45334-1F59-45CB-93EE-FB787D81B6D2}.Release|Win32.ActiveCfg = Release|Win32
+		{28E45334-1F59-45CB-93EE-FB787D81B6D2}.Release|Win32.Build.0 = Release|Win32
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

Added: incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca_php/tuscany_sca_php.vcproj
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca_php/tuscany_sca_php.vcproj?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca_php/tuscany_sca_php.vcproj (added)
+++ incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca_php/tuscany_sca_php.vcproj Wed Jan 10 04:39:17 2007
@@ -0,0 +1,229 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="8.00"
+	Name="tuscany_sca_php"
+	ProjectGUID="{28E45334-1F59-45CB-93EE-FB787D81B6D2}"
+	RootNamespace="tuscany_sca_php"
+	Keyword="Win32Proj"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory=".\Debug"
+			IntermediateDirectory=".\Debug"
+			ConfigurationType="2"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="../../../runtime/extensions/php/src;../../../deploy/include;&quot;$(TUSCANY_SDOCPP)/include&quot;;&quot;$(PHP_HOME)/sapi/embed&quot;;&quot;$(PHP_HOME)&quot;;&quot;$(PHP_HOME)/zend&quot;;&quot;$(PHP_HOME)/TSRM&quot;"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;TUSCANY_SCA_PHP_EXPORTS;ZEND_WIN32;PHP_WIN32;ZTS"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				DisableLanguageExtensions="false"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="false"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="tuscany_sca.lib tuscany_sdo.lib php5embed.lib"
+				LinkIncremental="2"
+				AdditionalLibraryDirectories="..\..\..\deploy\lib,$(TUSCANY_SDOCPP)\lib,$(PHP_HOME)\Debug_Ts"
+				IgnoreDefaultLibraryNames="MSVCRT"
+				GenerateDebugInformation="true"
+				SubSystem="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+				CommandLine="..\..\..\runtime\extensions\php\deploy.bat ..\..\..\ Debug"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="2"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;TUSCANY_SCA_PHP_EXPORTS"
+				RuntimeLibrary="2"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				LinkIncremental="1"
+				GenerateDebugInformation="true"
+				SubSystem="2"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="model"
+			>
+			<File
+				RelativePath="..\..\..\runtime\extensions\php\src\tuscany\sca\php\model\PHPImplementation.cpp"
+				>
+			</File>
+			<File
+				RelativePath="..\..\..\runtime\extensions\php\src\tuscany\sca\php\model\PHPImplementation.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\..\runtime\extensions\php\src\tuscany\sca\php\model\PHPServiceBinding.cpp"
+				>
+			</File>
+			<File
+				RelativePath="..\..\..\runtime\extensions\php\src\tuscany\sca\php\model\PHPServiceBinding.h"
+				>
+			</File>
+		</Filter>
+		<File
+			RelativePath="..\..\..\runtime\extensions\php\src\tuscany\sca\php\export.h"
+			>
+		</File>
+		<File
+			RelativePath="..\..\..\runtime\extensions\php\src\tuscany\sca\php\PHPExtension.cpp"
+			>
+		</File>
+		<File
+			RelativePath="..\..\..\runtime\extensions\php\src\tuscany\sca\php\PHPExtension.h"
+			>
+		</File>
+		<File
+			RelativePath="..\..\..\runtime\extensions\php\src\tuscany\sca\php\PHPImplementationExtension.cpp"
+			>
+		</File>
+		<File
+			RelativePath="..\..\..\runtime\extensions\php\src\tuscany\sca\php\PHPImplementationExtension.h"
+			>
+		</File>
+		<File
+			RelativePath="..\..\..\runtime\extensions\php\src\tuscany\sca\php\PHPServiceWrapper.cpp"
+			>
+		</File>
+		<File
+			RelativePath="..\..\..\runtime\extensions\php\src\tuscany\sca\php\PHPServiceWrapper.h"
+			>
+		</File>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

Propchange: incubator/tuscany/cpp/sca/VSExpress/tuscany_sca/tuscany_sca_php/tuscany_sca_php.vcproj
------------------------------------------------------------------------------
    svn:eol-style = CRLF

Modified: incubator/tuscany/cpp/sca/runtime/extensions/php/src/tuscany/sca/php/PHPServiceWrapper.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/php/src/tuscany/sca/php/PHPServiceWrapper.cpp?view=diff&rev=494799&r1=494798&r2=494799
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/php/src/tuscany/sca/php/PHPServiceWrapper.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/php/src/tuscany/sca/php/PHPServiceWrapper.cpp Wed Jan 10 04:39:17 2007
@@ -24,6 +24,8 @@
 // WinSock.h and WinSock2.h to be included leading to redefinitions
 #define _WINSOCKAPI_
 
+#include <iostream>
+
 #include <php_embed.h>
 
 #include "tuscany/sca/php/PHPServiceWrapper.h"
@@ -152,8 +154,11 @@
                     // get the component type information
                     PHPImplementation* impl = (PHPImplementation*)component->getType();
                     
+                    // get the directory containing the component type
+                    const string &compositeDir = impl->getComposite()->getRoot();
+                    
                     // first create the temporay script and include the module
-                    string script = "include '" + impl->getModule() + ".php';";
+                    string script = "include '" + compositeDir + "/" + impl->getModule() + ".php';";
                     
                     // if we have a class create an instance 
                     string className = impl->getClass();
@@ -302,11 +307,25 @@
                     } zend_end_try(); 
 
                     //clean up
-                    php_embed_shutdown(TSRMLS_C); 
+// TODO
+// Shutdown is crashing now I have moved from PHP5.1.4 to PHP5.2.0
+// This SAPI needs rewiriting properly anyhow so I'm not spending the 
+// time to fix at the moment 
+//                    php_embed_shutdown(TSRMLS_C); 
                     loginfo("Engine shutdown");
                    
                     // get the response values
                     loginfo("Script returned: %s", scriptResponse.c_str());
+
+// TODO
+// how do we determine the return type of the component method
+// something has changed in the infrastructure so that this no longer works 
+// I'm cheating for now and assuming it is always a string.
+// Needs fixing when we revist the SAPI
+// the following has the effect of setting the return value type
+// to CHARS
+                    static const char *tempChars = "";
+                    operation.setReturnValue(&tempChars);
 
                     switch(operation.getReturnType())
                     {

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/README?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/README (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/README Wed Jan 10 04:39:17 2007
@@ -0,0 +1,83 @@
+Tuscany SCA for C++ Samples - PHP Calculator Sample
+===================================================
+
+This is a very simple sample to show how an SCA composite can wire together
+two components to implement a Calculator service and expose that service as
+a Web Service. The sample components are implemented in various ways to demonstrate 
+the different features of the PHP SCA extension.
+
+There are three sub projects in this workspace:
+    - sample.calculator
+      This contains the source code and SCDL artifacts for the SCA Calculator.
+      composite implementing the sample Calculator.
+
+    - sample.calculator.client
+      A sample client which does a local call to the Calculator service.
+
+    - sample.calculator.wsclient
+      A sample PHP SCA Web Service client which calls the Calculator Web service.
+
+Additionally, there is the sample.calculator.app.composite file. This 
+describes the configuration of the SCA Calculator composite deployed to the 
+SCA runtime.
+
+(See the README.html file for instructions to build and run this sample - TODO)
+
+This is a work in progress. The ultimate intention is to demonstrate integration
+of PHP SCA with C++ SCA and this sample is being used as a motivator for that 
+work. As it stands the PHP extension for C++ SCA only supports PHP functions or classes
+as service implementations and the work to include PHP SCA is in progress. To this end
+this sample exposes the "add" service and method. This is only callable from the 
+CalculatorWSClient.php. 
+
+
+Client (PHP/SCA)  ->  Calculator (PHP/SCA Service in PHP extension )
+                        add() ------------------------> Add (PHP function)
+                        sub() ------------------------> Subtract (PHP class/function)
+                        mul() ------------------------> PHP/SCA local service 
+                        div() ------------------------> PHP/SCA remote service
+              
+In the first instance of course we don't have this all working. The following is the
+current configuration
+
+Client (PHP/SCA)  ->  Calculator (PHP/SCA Service in PHP extension )
+                        add() ------------------------> Add (PHP function)
+                        
+To run the sample configure the axis runtime to reference the PHPCalculator 
+application. 
+
+Windows
+=======
+
+I use the following bat file to start the stand alone axis server and include 
+appropriate references to PHP dependencies. This needs turning into a proper
+run script but I haven't got to this yet
+
+set TUSCANY_SCACPP_LOGGING=9
+set AXIS2C_HOME=C:\axis2c-bin-0.95-win32
+set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%TUSCANY_SCACPP%\extensions\php\bin;%AXIS2C_HOME%\lib;c:\libxml2-2.6.23.win32\bin;c:\apps\iconv-1.9.1.win32\bin;c:\apps\zlib-1.2.3.win32\bin;C:\php-5.2.0\
+set TUSCANY_SCACPP_ROOT=%TUSCANY_SCACPP%\samples\PHPCalculator
+rem set TUSCANY_SCACPP_DEFAULT_COMPONENT=sample.calculator.CalculatorComponent
+
+%AXIS2C_HOME%\bin\axis2_http_server.exe -l 9                         
+
+I then
+
+cd %TUSCANY_SCACPP%\samples\PHPCalculator\samples.calculator.wsclient
+runwsclient.bat
+
+This has the effect of runing a PHP/SCA client (no C++ SCA content at all)
+to generate a web service request to the C++ SCA runtime hosting the calculator
+application.
+
+Currently this doesn't runt all the way through due to a WSDL bug in PHP SCA
+(http://pecl.php.net/bugs/bug.php?id=9572). But it gets 99% of the way there. 
+You will see the server doing all of its stuff and returning the correct result. 
+
+Linux
+=====
+
+TBD
+              
+
+

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

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

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/deploy.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/deploy.bat?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/deploy.bat (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/deploy.bat Wed Jan 10 04:39:17 2007
@@ -0,0 +1,56 @@
+@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 calcdir=%samplesdir%\PHPCalculator
+
+if . == %1. (
+set destinationPath=%calcdir%\deploy
+) ELSE (
+set destinationPath=%1
+)
+
+if not exist %samplesdir%                        mkdir %samplesdir%
+if not exist %calcdir%                           mkdir %calcdir%
+if not exist %destinationPath%                   mkdir %destinationPath%
+if not exist %destinationPath%\sample.calculator mkdir %destinationPath%\sample.calculator
+copy %sourcePath%\sample.calculator\*.composite     %destinationPath%\sample.calculator
+copy %sourcePath%\sample.calculator\*.componentType %destinationPath%\sample.calculator
+copy %sourcePath%\sample.calculator\*.php           %destinationPath%\sample.calculator
+copy %sourcePath%\sample.calculator\Calculator.wsdl %destinationPath%\sample.calculator
+copy %sourcePath%\sample.calculator\runwsserver.bat          %destinationPath%\sample.calculator
+
+if not exist %destinationPath%\sample.calculator.client mkdir   %destinationPath%\sample.calculator.client
+copy %sourcePath%\sample.calculator.client\CalculatorClient.php %destinationPath%\sample.calculator.client
+copy %sourcePath%\sample.calculator.client\runclient.bat        %destinationPath%\sample.calculator.client
+
+if not exist %destinationPath%\sample.calculator.wsclient mkdir %destinationPath%\sample.calculator.wsclient
+copy %sourcePath%\sample.calculator.wsclient\CalculatorWSClient.php               %destinationPath%\sample.calculator.wsclient
+copy %sourcePath%\sample.calculator.wsclient\Calculator.wsdl                      %destinationPath%\sample.calculator.wsclient
+copy %sourcePath%\sample.calculator.wsclient\runwsclient.bat %destinationPath%\sample.calculator.wsclient
+
+copy %sourcePath%\*.composite %destinationPath%
+
+endlocal

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

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

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.app.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.app.composite?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.app.composite (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.app.composite Wed Jan 10 04:39:17 2007
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+     
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+	name="sample.calculator.app">
+	
+        <component name="sample.calculator.CalculatorComponent">
+        	<implementation.composite name="sample.calculator" />
+       	</component>
+
+<!--
+        <component name="sample.calculator.CalculatorWSClientComponent">
+        	<implementation.composite name="sample.calculator.wsclient" />
+       	</component>
+-->
+</composite>

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

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

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.php
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.php?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.php (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.php Wed Jan 10 04:39:17 2007
@@ -0,0 +1,31 @@
+<?php
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+include 'SCA/SCA.php';
+
+// Get a proxy to the local Calculator.php
+$service = SCA::getService('../sample.calculator/Calculator.php');
+
+// Call the local service and write out the response
+echo "add(1.23, 4.56) = " . $service->add(1.23, 4.56) . "\n";
+echo "sub(1.23, 4.56) = " . $service->sub(1.23, 4.56) . "\n";
+echo "mul(1.23, 4.56) = " . $service->mul(1.23, 4.56) . "\n";
+echo "div(1.23, 4.56) = " . $service->div(1.23, 4.56) . "\n";
+
+?>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.php
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/CalculatorClient.php
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient.bat?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient.bat (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.client/runclient.bat Wed Jan 10 04:39:17 2007
@@ -0,0 +1,25 @@
+@echo off
+
+@REM  Licensed to the Apache Software Foundation (ASF) under one
+@REM  or more contributor license agreements.  See the NOTICE file
+@REM  distributed with this work for additional information
+@REM  regarding copyright ownership.  The ASF licenses this file
+@REM  to you under the Apache License, Version 2.0 (the
+@REM  "License"); you may not use this file except in compliance
+@REM  with the License.  You may obtain a copy of the License at
+@REM  
+@REM    http://www.apache.org/licenses/LICENSE-2.0
+@REM    
+@REM  Unless required by applicable law or agreed to in writing,
+@REM  software distributed under the License is distributed on an
+@REM  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM  KIND, either express or implied.  See the License for the
+@REM  specific language governing permissions and limitations
+@REM  under the License.
+
+setlocal
+
+php CalculatorClient.php
+    
+:end
+endlocal

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

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

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/Calculator.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/Calculator.wsdl?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/Calculator.wsdl (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/Calculator.wsdl Wed Jan 10 04:39:17 2007
@@ -0,0 +1,173 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+     
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	xmlns:tns="http://sample/calculator"
+	targetNamespace="http://sample/calculator">
+	<types>
+		<xs:schema targetNamespace="http://sample/calculator"
+			xmlns:xs="http://www.w3.org/2001/XMLSchema"
+			xmlns:tns="http://sample/calculator" elementFormDefault="qualified">
+
+			<xs:element name="add">
+				<xs:complexType>
+					<xs:sequence>
+						<xs:element name="param1" type="xs:float"/>
+						<xs:element name="param2" type="xs:float"/>
+					</xs:sequence>
+				</xs:complexType>
+			</xs:element>
+			
+			<xs:element name="sub">
+				<xs:complexType>
+					<xs:sequence>
+						<xs:element name="param1" type="xs:float"/>
+						<xs:element name="param2" type="xs:float"/>
+					</xs:sequence>
+				</xs:complexType>
+			</xs:element>
+			
+			<xs:element name="mul">
+				<xs:complexType>
+					<xs:sequence>
+						<xs:element name="param1" type="xs:float"/>
+						<xs:element name="param2" type="xs:float"/>
+					</xs:sequence>
+				</xs:complexType>
+			</xs:element>
+			
+			<xs:element name="div">
+				<xs:complexType>
+					<xs:sequence>
+						<xs:element name="param1" type="xs:float"/>
+						<xs:element name="param2" type="xs:float"/>
+					</xs:sequence>
+				</xs:complexType>
+			</xs:element>
+
+            <xs:element name="addResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="addReturn" type="xs:float"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+    
+			<xs:element name="result">
+				<xs:complexType>
+					<xs:sequence>
+						<xs:element name="data" type="xs:float"/>
+					</xs:sequence>
+				</xs:complexType>
+			</xs:element>
+
+		</xs:schema>
+	</types>
+
+	<message name="addRequestMsg">
+		<part name="body" element="tns:add" />
+	</message>
+	<message name="addResponseMsg">
+		<part name="body" element="tns:addResponse" />
+	</message>	
+	<message name="subRequestMsg">
+		<part name="body" element="tns:sub" />
+	</message>
+	<message name="mulRequestMsg">
+		<part name="body" element="tns:mul" />
+	</message>
+	<message name="divRequestMsg">
+		<part name="body" element="tns:div" />
+	</message>
+	
+	<message name="calculatorResponseMsg">
+		<part name="body" element="tns:result" />
+	</message>
+
+	<portType name="Calculator">
+		<operation name="add">
+			<input message="tns:addRequestMsg" />
+			<output message="tns:addResponseMsg" />
+		</operation>
+		<operation name="sub">
+			<input message="tns:subRequestMsg" />
+			<output message="tns:calculatorResponseMsg" />
+		</operation>
+		<operation name="mul">
+			<input message="tns:mulRequestMsg" />
+			<output message="tns:calculatorResponseMsg" />
+		</operation>
+		<operation name="div">
+			<input message="tns:divRequestMsg" />
+			<output message="tns:calculatorResponseMsg" />
+		</operation>
+	</portType>
+
+	<binding name="CalculatorBinding"
+		type="tns:Calculator">
+		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+		<operation name="add">
+			<soap:operation soapAction="CalculatorService#add" />
+			<input>
+				<soap:body use="literal" />
+			</input>
+			<output>
+				<soap:body use="literal" />
+			</output>
+		</operation>
+		<operation name="sub">
+			<soap:operation soapAction="CalculatorService#sub" />
+			<input>
+				<soap:body use="literal" />
+			</input>
+			<output>
+				<soap:body use="literal" />
+			</output>
+		</operation>
+		<operation name="mul">
+			<soap:operation soapAction="CalculatorService#mul" />
+			<input>
+				<soap:body use="literal" />
+			</input>
+			<output>
+				<soap:body use="literal" />
+			</output>
+		</operation>
+		<operation name="div">
+			<soap:operation soapAction="CalculatorService#div" />
+			<input>
+				<soap:body use="literal" />
+			</input>
+			<output>
+				<soap:body use="literal" />
+			</output>
+		</operation>
+	</binding>
+
+	<service name="CalculatorService">
+		<port name="CalculatorPort"
+			binding="tns:CalculatorBinding">
+			<soap:address location="http://localhost:9090/axis2/services/sample.calculator.CalculatorComponent/CalculatorService" />
+		</port>
+	</service>
+</definitions>
+<!-- this line identifies this file as WSDL generated by SCA for PHP. Do not remove -->

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/Calculator.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/Calculator.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/CalculatorWSClient.php
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/CalculatorWSClient.php?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/CalculatorWSClient.php (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/CalculatorWSClient.php Wed Jan 10 04:39:17 2007
@@ -0,0 +1,31 @@
+<?php
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+include 'SCA/SCA.php';
+
+// Get a proxy to the local Calculator.php
+$service = SCA::getService('Calculator.wsdl');
+
+// Call the local service and write out the response
+echo "add(1.23, 4.56) = " . $service->add(1.23, 4.56) . "\n";
+//echo "sub(1.23, 4.56) = " . $service->sub(1.23, 4.56) . "\n";
+//echo "mul(1.23, 4.56) = " . $service->mul(1.23, 4.56) . "\n";
+//echo "div(1.23, 4.56) = " . $service->div(1.23, 4.56) . "\n";
+
+?>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/CalculatorWSClient.php
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/CalculatorWSClient.php
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/runwsclient.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/runwsclient.bat?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/runwsclient.bat (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/runwsclient.bat Wed Jan 10 04:39:17 2007
@@ -0,0 +1,25 @@
+@echo off
+
+@REM  Licensed to the Apache Software Foundation (ASF) under one
+@REM  or more contributor license agreements.  See the NOTICE file
+@REM  distributed with this work for additional information
+@REM  regarding copyright ownership.  The ASF licenses this file
+@REM  to you under the Apache License, Version 2.0 (the
+@REM  "License"); you may not use this file except in compliance
+@REM  with the License.  You may obtain a copy of the License at
+@REM  
+@REM    http://www.apache.org/licenses/LICENSE-2.0
+@REM    
+@REM  Unless required by applicable law or agreed to in writing,
+@REM  software distributed under the License is distributed on an
+@REM  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM  KIND, either express or implied.  See the License for the
+@REM  specific language governing permissions and limitations
+@REM  under the License.
+
+setlocal
+
+php CalculatorWSClient.php
+    
+:end
+endlocal

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/runwsclient.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator.wsclient/runwsclient.bat
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.componentType?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.componentType (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.componentType Wed Jan 10 04:39:17 2007
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+     
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
+	<service name="AddService">
+		<interface.cpp header="Add.h"/>
+	</service>
+</componentType>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.h?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.h (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.h Wed Jan 10 04:39:17 2007
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/* $Rev$ $Date$ */
+
+
+#ifndef sample_add_h
+#define sample_add_h
+
+class Add  
+{
+    public:
+	    virtual float add(float num1, float num2) = 0;
+};
+
+#endif // sample_add_h
+
+

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.php
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.php?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.php (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.php Wed Jan 10 04:39:17 2007
@@ -0,0 +1,25 @@
+<?php
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+
+function add($num1, $num2)
+{
+    return $num1 + $num2;
+}    
+?>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.php
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Add.php
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.componentType?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.componentType (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.componentType Wed Jan 10 04:39:17 2007
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+     
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
+
+	<service name="CalculatorService">
+		<interface.cpp header="Calculator.h"/>
+	</service>
+
+    <reference name="add_service">
+		<interface.cpp header="Add.h"/>
+	</reference>
+	
+	<reference name="sub_service">
+		<interface.cpp header="Subtract.h"/>
+	</reference>
+	
+	<reference name="mul_service">
+		<interface.cpp header="Multiply.h"/>
+	</reference>
+	
+    <reference name="div_service">
+		<interface.cpp header="Divide.h"/>
+	</reference>
+
+</componentType>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.h?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.h (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.h Wed Jan 10 04:39:17 2007
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/* $Rev$ $Date$ */
+
+#ifndef sample_calculator_h
+#define sample_calculator_h
+
+class Calculator  
+{
+public:
+	virtual float add(float arg1, float arg2) = 0;
+	virtual float sub(float arg1, float arg2) = 0;
+	virtual float mul(float arg1, float arg2) = 0;
+	virtual float div(float arg1, float arg2) = 0;
+};
+
+#endif // sample_calculator_h

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.php
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.php?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.php (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.php Wed Jan 10 04:39:17 2007
@@ -0,0 +1,97 @@
+<?php
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+include 'SCA/SCA.php';
+
+/**
+ * @service
+ * @binding.ws
+ */
+class Calculator {
+
+    /**
+     * @reference
+     * @binding.php Add.php   
+     */
+	public $add_service;
+
+    /**
+     * @reference
+     * @binding.php Subtract.php   
+     */
+	public $sub_service;
+	
+    /**
+     * @reference
+     * @binding.php Multiply.php   
+     */
+	public $mul_service;	
+
+    /**
+     * @reference
+     * @binding.ws Divide.wsdl
+     */
+	public $div_service;
+	
+    /**
+     * Addition
+     * 
+     * @param float $num1 (the first number)
+     * @param float $num2 (the second number)
+     * @return float The result
+     */
+    function add($num1, $num2) {
+        return $this->mul_service->add($num1, $num2);
+    }
+
+    /**
+     * Subtraction
+     * 
+     * @param float $num1 (the first number)
+     * @param float $num2 (the second number)
+     * @return float The result
+     */
+    function sub($num1, $num2) {
+        return $this->mul_service->sub($num1, $num2);
+    }
+    
+    /**
+     * Multiplication
+     * 
+     * @param float $num1 (the first number)
+     * @param float $num2 (the second number)
+     * @return float The result
+     */
+    function mul($num1, $num2) {
+        return $this->mul_service->mul($num1, $num2);
+    }
+    
+    /**
+     * Division
+     * 
+     * @param float $num1 (the first number)
+     * @param float $num2 (the second number)
+     * @return float The result
+     */
+    function div($num1, $num2) {
+        return $this->div_service->div($num1, $num2);
+    }    
+}
+
+?>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.php
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.php
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.wsdl?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.wsdl (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.wsdl Wed Jan 10 04:39:17 2007
@@ -0,0 +1,173 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+     
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	xmlns:tns="http://sample/calculator"
+	targetNamespace="http://sample/calculator">
+	<types>
+		<xs:schema targetNamespace="http://sample/calculator"
+			xmlns:xs="http://www.w3.org/2001/XMLSchema"
+			xmlns:tns="http://sample/calculator" elementFormDefault="qualified">
+
+			<xs:element name="add">
+				<xs:complexType>
+					<xs:sequence>
+						<xs:element name="param1" type="xs:float"/>
+						<xs:element name="param2" type="xs:float"/>
+					</xs:sequence>
+				</xs:complexType>
+			</xs:element>
+			
+			<xs:element name="sub">
+				<xs:complexType>
+					<xs:sequence>
+						<xs:element name="param1" type="xs:float"/>
+						<xs:element name="param2" type="xs:float"/>
+					</xs:sequence>
+				</xs:complexType>
+			</xs:element>
+			
+			<xs:element name="mul">
+				<xs:complexType>
+					<xs:sequence>
+						<xs:element name="param1" type="xs:float"/>
+						<xs:element name="param2" type="xs:float"/>
+					</xs:sequence>
+				</xs:complexType>
+			</xs:element>
+			
+			<xs:element name="div">
+				<xs:complexType>
+					<xs:sequence>
+						<xs:element name="param1" type="xs:float"/>
+						<xs:element name="param2" type="xs:float"/>
+					</xs:sequence>
+				</xs:complexType>
+			</xs:element>
+
+            <xs:element name="addResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="addReturn" type="xs:float"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+    
+			<xs:element name="result">
+				<xs:complexType>
+					<xs:sequence>
+						<xs:element name="data" type="xs:float"/>
+					</xs:sequence>
+				</xs:complexType>
+			</xs:element>
+
+		</xs:schema>
+	</types>
+
+	<message name="addRequestMsg">
+		<part name="body" element="tns:add" />
+	</message>
+	<message name="addResponseMsg">
+		<part name="body" element="tns:addResponse" />
+	</message>	
+	<message name="subRequestMsg">
+		<part name="body" element="tns:sub" />
+	</message>
+	<message name="mulRequestMsg">
+		<part name="body" element="tns:mul" />
+	</message>
+	<message name="divRequestMsg">
+		<part name="body" element="tns:div" />
+	</message>
+	
+	<message name="calculatorResponseMsg">
+		<part name="body" element="tns:result" />
+	</message>
+
+	<portType name="Calculator">
+		<operation name="add">
+			<input message="tns:addRequestMsg" />
+			<output message="tns:addResponseMsg" />
+		</operation>
+		<operation name="sub">
+			<input message="tns:subRequestMsg" />
+			<output message="tns:calculatorResponseMsg" />
+		</operation>
+		<operation name="mul">
+			<input message="tns:mulRequestMsg" />
+			<output message="tns:calculatorResponseMsg" />
+		</operation>
+		<operation name="div">
+			<input message="tns:divRequestMsg" />
+			<output message="tns:calculatorResponseMsg" />
+		</operation>
+	</portType>
+
+	<binding name="CalculatorBinding"
+		type="tns:Calculator">
+		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+		<operation name="add">
+			<soap:operation soapAction="CalculatorService#add" />
+			<input>
+				<soap:body use="literal" />
+			</input>
+			<output>
+				<soap:body use="literal" />
+			</output>
+		</operation>
+		<operation name="sub">
+			<soap:operation soapAction="CalculatorService#sub" />
+			<input>
+				<soap:body use="literal" />
+			</input>
+			<output>
+				<soap:body use="literal" />
+			</output>
+		</operation>
+		<operation name="mul">
+			<soap:operation soapAction="CalculatorService#mul" />
+			<input>
+				<soap:body use="literal" />
+			</input>
+			<output>
+				<soap:body use="literal" />
+			</output>
+		</operation>
+		<operation name="div">
+			<soap:operation soapAction="CalculatorService#div" />
+			<input>
+				<soap:body use="literal" />
+			</input>
+			<output>
+				<soap:body use="literal" />
+			</output>
+		</operation>
+	</binding>
+
+	<service name="CalculatorService">
+		<port name="CalculatorPort"
+			binding="tns:CalculatorBinding">
+			<soap:address location="http://localhost:9090/axis2/services/sample.calculator.CalculatorComponent/CalculatorService" />
+		</port>
+	</service>
+</definitions>
+<!-- this line identifies this file as WSDL generated by SCA for PHP. Do not remove -->

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Calculator.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.componentType?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.componentType (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.componentType Wed Jan 10 04:39:17 2007
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+     
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
+	<service name="DivideService">
+		<interface.cpp header="Divide.h"/>
+	</service>
+</componentType>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.h?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.h (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.h Wed Jan 10 04:39:17 2007
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/* $Rev$ $Date$ */
+
+
+#ifndef sample_divide_h
+#define sample_divide_h
+
+class Divide  
+{
+    public:
+	    virtual float div(float num1, float num2) = 0;
+};
+
+#endif // sample_divide_h
+
+

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.php
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.php?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.php (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.php Wed Jan 10 04:39:17 2007
@@ -0,0 +1,39 @@
+<?php
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+
+/**
+ * @service
+ * @binding.ws
+ */
+class Divide {
+
+    /**
+     * Division
+     * 
+     * @param float $num1 (the first number)
+     * @param float $num2 (the second number)
+     * @return float The result
+     */
+    function div($num1, $num2) {
+        return $num1 / $num2;
+    }    
+}
+  
+?>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.php
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Divide.php
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.componentType?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.componentType (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.componentType Wed Jan 10 04:39:17 2007
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+     
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
+	<service name="MultiplyService">
+		<interface.cpp header="Multiply.h"/>
+	</service>
+</componentType>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.h?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.h (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.h Wed Jan 10 04:39:17 2007
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/* $Rev$ $Date$ */
+
+
+#ifndef sample_multiply_h
+#define sample_multiply_h
+
+class Multiply  
+{
+    public:
+	    virtual float mul(float num1, float num2) = 0;
+};
+
+#endif // sample_multiply_h
+
+

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.php
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.php?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.php (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.php Wed Jan 10 04:39:17 2007
@@ -0,0 +1,40 @@
+<?php
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+
+
+/**
+ * @service
+ * @binding.php
+ */
+class Multiply {
+
+    /**
+     * Division
+     * 
+     * @param float $num1 (the first number)
+     * @param float $num2 (the second number)
+     * @return float The result
+     */
+    function mul($num1, $num2) {
+        return $num1 * $num2;
+    }    
+}
+  
+?>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.php
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Multiply.php
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.componentType?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.componentType (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.componentType Wed Jan 10 04:39:17 2007
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+     
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
+	<service name="SubtractService">
+		<interface.cpp header="Subtract.h"/>
+	</service>
+</componentType>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.h?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.h (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.h Wed Jan 10 04:39:17 2007
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/* $Rev$ $Date$ */
+
+
+#ifndef sample_subtract_h
+#define sample_subtract_h
+
+class Subtract  
+{
+    public:
+	    virtual float sub(float num1, float num2) = 0;
+};
+
+#endif // sample_subtract_h
+
+

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.php
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.php?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.php (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.php Wed Jan 10 04:39:17 2007
@@ -0,0 +1,28 @@
+<?php
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+
+class Subtract 
+{
+    public function sub($num1, $num2)
+    {
+        return $num1 - $num2;
+    }
+}   
+?>

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.php
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/Subtract.php
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/runwsserver.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/runwsserver.bat?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/runwsserver.bat (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/runwsserver.bat Wed Jan 10 04:39:17 2007
@@ -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.
+
+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\php\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH%
+
+set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\
+
+cd %AXIS2C_HOME%\bin
+.\axis2_http_server.exe
+
+:end
+endlocal
+

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/runwsserver.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/runwsserver.bat
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite Wed Jan 10 04:39:17 2007
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+     
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" 
+	       name="sample.calculator">
+
+	<service name="CalculatorService">
+		<interface.wsdl interface="http://sample/calculator#wsdl.interface(Calculator)"/>
+		<binding.ws/>
+		<reference>AddComponent</reference>
+	</service>
+
+<!--
+	<component name="CalculatorComponent">
+        <implementation.php module="Calculator" scope="composite"/>
+        <reference name="add_service">AddComponent</reference>
+        <reference name="sub_service">SubtractComponent</reference>
+        <reference name="mul_service">MultiplyComponent</reference>
+        <reference name="div_service">DivideComponent</reference>
+	</component>
+-->
+    <component name="AddComponent">
+        <implementation.php module="Add" scope="composite"/>
+    </component>
+<!--    
+    <component name="SubtractComponent">
+        <implementation.php module="Subtract" class="Subtract" scope="composite"/>
+    </component>	
+	
+    <component name="MultiplyComponent">
+        <implementation.php module="Multiply" scope="composite"/>
+    </component>	
+    
+    <component name="DivideComponent">
+        <implementation.php module="Divide" scope="composite"/>
+    </component>
+-->     
+<!--        
+	<reference name="DivideReference">
+		<interface.wsdl interface="http://sample/calculator#wsdl.interface(Divide)"/>
+		<binding.ws endpoint="http://sample/calculator#wsdl.endpoint(DivideService/DividePort)"/>
+	</reference>    
+-->
+</composite>
+

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

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

Added: incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite.back
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite.back?view=auto&rev=494799
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite.back (added)
+++ incubator/tuscany/cpp/sca/samples/PHPCalculator/sample.calculator/sample.calculator.composite.back Wed Jan 10 04:39:17 2007
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+   
+     http://www.apache.org/licenses/LICENSE-2.0
+     
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" 
+	name="sample.calculator">
+
+	<service name="CalculatorService">
+		<interface.wsdl interface="http://sample/calculator#wsdl.interface(Calculator)"/>
+		<binding.ws/>
+		<reference>MultiplyComponent</reference>
+	</service>
+
+	<component name="CalculatorComponent">
+        <implementation.php module="Calculator" scope="composite"/>
+        <reference name="mul_service">MultiplyComponent</reference>
+        <reference name="div_service">DivideComponent</reference>
+	</component>
+	
+	<!-- subtract component is not referenced by the -->
+	<!-- CalculatorComponent using SCA               -->
+    <component name="SubtractComponent">
+        <implementation.php module="Subtract" scope="composite"/>
+    </component>	
+	
+    <component name="MultiplyComponent">
+        <implementation.php module="Multiply" class="Multiply" scope="composite"/>
+    </component>	
+
+    <component name="DivideComponent">
+        <implementation.php module="Divide" scope="composite"/>
+    </component>
+
+</composite>
+
+<!--
+	<component name="CalculatorComponent">
+        <implementation.php module="CalculatorImpl" scope="composite"/>
+	    <reference name="divideService">DivideComponent</reference>
+	</component>
+-->
+
+<!--        
+        <property name="doRounding">true</property>
+-->



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