You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ed...@apache.org on 2006/06/15 12:57:45 UTC

svn commit: r414552 [1/2] - in /incubator/tuscany/cpp/sca/samples: BigBank/ BigBank/AccountClient/ BigBank/Accounts/ BigBank/deploy/ BigBank/deploy/modules/ BigBank/deploy/modules/Accounts/ BigBank/deploy/subsystems/ BigBank/deploy/subsystems/Accounts/...

Author: edslattery
Date: Thu Jun 15 03:57:42 2006
New Revision: 414552

URL: http://svn.apache.org/viewvc?rev=414552&view=rev
Log: (empty)

Added:
    incubator/tuscany/cpp/sca/samples/BigBank/
    incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/
    incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.dsp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.plg
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataService.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.componentType
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.wsdl
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.componenttype
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Accounts.dsp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Accounts.plg
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteExternalService.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteService.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteService.wsdl
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.componentType
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteExternal_Proxy.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteExternal_Proxy.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Proxy.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Proxy.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Wrapper.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/sca.module
    incubator/tuscany/cpp/sca/samples/BigBank/Accounts/sca.subsystem
    incubator/tuscany/cpp/sca/samples/BigBank/BigBank.dsw   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/BigBank.ncb
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/
    incubator/tuscany/cpp/sca/samples/BigBank/deploy.bat   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/AccountClient.exe   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/AccountClient.pdb   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/AccountDataService.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/AccountDataServiceImpl.componentType
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/AccountDataServiceImpl.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/AccountService.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/AccountService.wsdl
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/AccountServiceImpl.componenttype
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/AccountServiceImpl.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/Accounts.dll   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/Accounts.pdb   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/StockQuoteExternalService.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/StockQuoteExternalService.wsdl
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/StockQuoteExternalTypes.xsd   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/StockQuoteService.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/StockQuoteService.wsdl
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/StockQuoteServiceImpl.componentType
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/StockQuoteServiceImpl.h   (with props)
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/Tuscany-model.config
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/modules/Accounts/sca.module
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/subsystems/
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/subsystems/Accounts/
    incubator/tuscany/cpp/sca/samples/BigBank/deploy/subsystems/Accounts/sca.subsystem
Modified:
    incubator/tuscany/cpp/sca/samples/Calculator/Client/readme.txt

Added: incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.cpp?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.cpp (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.cpp Thu Jun 15 03:57:42 2006
@@ -0,0 +1,131 @@
+/* 
++----------------------------------------------------------------------+
+| (c) Copyright IBM Corporation 2005.                                  | 
+| All Rights Reserved.                                                 |
++----------------------------------------------------------------------+ 
+|                                                                      | 
+| Licensed under the Apache License, Version 2.0 (the "License"); you  | 
+| may not use this file except in compliance with the License. You may | 
+| obtain a copy of the License at                                      | 
+|  http://www.apache.org/licenses/LICENSE-2.0                          |
+|                                                                      | 
+| Unless required by applicable law or agreed to in writing, software  | 
+| distributed under the License is distributed on an "AS IS" BASIS,    | 
+| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or      | 
+| implied. See the License for the specific language governing         | 
+| permissions and limitations under the License.                       | 
++----------------------------------------------------------------------+ 
+*/
+
+
+#if defined(WIN32)  || defined (_WINDOWS)
+#pragma warning(disable: 4786)
+#endif
+
+#include "..\Accounts\AccountService.h"
+#include "osoa/sca/sca.h"
+#include <iostream>
+#include <stdlib.h>
+
+using namespace osoa::sca;
+using namespace std;
+using namespace com::bigbank::account;
+using namespace commonj::sdo;
+
+int main(int argc, char* argv[])
+{
+	
+    if (argc != 2)
+    {
+        cout << "AccountClient.exe: Argument must be the name of the account" << endl;
+    	return 0;
+    }
+	try
+	{
+
+        // Locate a service
+		ModuleContext myContext = ModuleContext::getCurrent();
+		AccountService *accountService = 
+            (AccountService*) myContext.locateService("AccountServiceComponent");
+		if (accountService == 0)
+		{
+			cout << "AccountClient.exe: Unable to find Account service" << endl;
+		}
+		else
+		{
+			try
+			{
+                // exercise the account service
+
+                DataFactoryPtr mdg  = DataFactory::getDataFactory();
+
+                XSDHelperPtr xsh = HelperProvider::getXSDHelper(mdg);
+    
+                xsh->defineFile("AccountService.wsdl");
+
+
+                DataObjectPtr report = 
+                    accountService->getAccountReport(argv[1]);
+
+                if (report != 0)
+                {
+                    int i;
+                    char balanceStr[20];
+                    float balance;
+
+                    cout << "My Account Report" << endl;
+                    cout << "=================" << endl;
+
+                    DataObjectList& stocks = report->getList("stocks");
+
+                    for (i=0;i< stocks.size() ;i++)
+                    {
+                        cout << "Stock Account " << stocks[i]->getCString("accountNumber") << endl;
+                        cout << "Stock Symbol : " << stocks[i]->getCString("symbol") << endl;
+                        cout << "     Holding : " << stocks[i]->getCString("quantity") << endl;
+                        balance = stocks[i]->getFloat("balance");
+                        sprintf(balanceStr,"%.2f",balance);
+                        cout << "       Value : " << balanceStr << endl << endl;
+                    }
+
+                    DataObjectList& checking = report->getList("checking");
+    
+                    for (i=0;i< checking.size() ;i++)
+                    {
+                        cout << "Checking Account " << checking[i]->getCString("accountNumber") << endl;
+                        balance = checking[i]->getFloat("balance");
+                        sprintf(balanceStr,"%.2f",balance);
+                        cout << "      Balance  : " << balanceStr << endl << endl;
+                    }
+
+                    DataObjectList& savings = report->getList("savings");
+
+                    for (i=0;i< savings.size() ;i++)
+                    {
+                        cout << "Savings Account " <<  savings[i]->getCString("accountNumber") << endl;
+                        balance = savings[i]->getFloat("balance");
+                        sprintf(balanceStr,"%.2f",balance);
+                        cout << "      Balance  : " << balanceStr << endl << endl;
+                    }
+
+                    cout << endl;
+                }
+			}
+            catch (SDORuntimeException& e)
+            {
+                cout << e << endl;
+            }
+			catch (char* x)
+			{
+				cout << "AccountService.exe: exception caught: " << x << endl;
+			}
+		}
+		
+	}
+	catch (ServiceRuntimeException& ex)
+	{
+		cout << ex << endl;
+	}
+	return 0;
+}
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.dsp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.dsp?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.dsp (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.dsp Thu Jun 15 03:57:42 2006
@@ -0,0 +1,102 @@
+# Microsoft Developer Studio Project File - Name="AccountClient" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=AccountClient - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE 
+!MESSAGE NMAKE /f "AccountClient.mak".
+!MESSAGE 
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE 
+!MESSAGE NMAKE /f "AccountClient.mak" CFG="AccountClient - Win32 Debug"
+!MESSAGE 
+!MESSAGE Possible choices for configuration are:
+!MESSAGE 
+!MESSAGE "AccountClient - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "AccountClient - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  "$(CFG)" == "AccountClient - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD BASE RSC /l 0x809 /d "NDEBUG"
+# ADD RSC /l 0x809 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+
+!ELSEIF  "$(CFG)" == "AccountClient - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "$(TUSCANY_SDOCPP)/include" /I "$(TUSCANY_SCACPP)/include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# SUBTRACT CPP /X
+# ADD BASE RSC /l 0x809 /d "_DEBUG"
+# ADD RSC /l 0x809 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib tuscany_sdo.lib tuscany_sca.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"Accounts" /libpath:"$(TUSCANY_SCACPP)/lib" /libpath:"$(TUSCANY_SDOCPP)/lib"
+
+!ENDIF 
+
+# Begin Target
+
+# Name "AccountClient - Win32 Release"
+# Name "AccountClient - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\AccountClient.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.dsp
------------------------------------------------------------------------------
    svn:eol-style = CRLF

Added: incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.plg
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.plg?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.plg (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/AccountClient.plg Thu Jun 15 03:57:42 2006
@@ -0,0 +1,32 @@
+<html>
+<body>
+<pre>
+<h1>Build Log</h1>
+<h3>
+--------------------Configuration: AccountClient - Win32 Debug--------------------
+</h3>
+<h3>Command Lines</h3>
+Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSPB4F.tmp" with contents
+[
+/nologo /MLd /W3 /Gm /GX /ZI /Od /I "c:\apache\apache_checkout\cpp\sdo\deploy/include" /I "c:\apache\apache_checkout\cpp\sca/include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/AccountClient.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c 
+"C:\apache\apache_checkout\cpp\sca\samples\BigBank\AccountClient\AccountClient.cpp"
+]
+Creating command line "cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSPB4F.tmp" 
+Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSPB50.tmp" with contents
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib tuscany_sdo.lib tuscany_sca.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/AccountClient.pdb" /debug /machine:I386 /out:"Debug/AccountClient.exe" /pdbtype:sept /libpath:"Accounts" /libpath:"c:\apache\apache_checkout\cpp\sca/lib" /libpath:"c:\apache\apache_checkout\cpp\sdo\deploy/lib" 
+.\Debug\AccountClient.obj
+]
+Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSPB50.tmp"
+<h3>Output Window</h3>
+Compiling...
+AccountClient.cpp
+Linking...
+
+
+
+<h3>Results</h3>
+AccountClient.exe - 0 error(s), 0 warning(s)
+</pre>
+</body>
+</html>

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataService.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataService.h?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataService.h (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataService.h Thu Jun 15 03:57:42 2006
@@ -0,0 +1,48 @@
+
+
+
+#include "commonj/sdo/SDO.h"
+
+namespace com
+{
+    namespace bigbank
+    {
+        namespace account
+        {
+
+    /*
+     *  AccountDataService C interface
+     */
+
+    class AccountDataService {
+
+    public:
+
+        // CheckingAccount is a data object containing
+        // String "accountNumber"
+        // float balance
+
+        virtual commonj::sdo::DataObjectPtr /* CheckingAccount*/ getCheckingAccount(
+            const char *id) = 0;
+
+        // SavingsAccount is a data object containing
+        // String accountNumber
+        // float balance
+
+        virtual commonj::sdo::DataObjectPtr /* SavingsAccount */ getSavingsAccount(
+            const char *id) = 0;
+
+        // StockAccount is a data object containing
+        // String accountNumber
+        // String symbol
+        // int quantity
+
+        virtual commonj::sdo::DataObjectPtr /* StockAccount */ getStockAccount (
+            const char* id) = 0;
+
+         
+    };
+
+}
+} 		 
+} // namespace;

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataService.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataService.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.componentType?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.componentType (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.componentType Thu Jun 15 03:57:42 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+ -->
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9">
+
+	<service name="AccountDataService">
+		<interface.cpp header="AccountDataService.h">
+		</interface.cpp>
+	</service>
+
+</componentType>
+	
\ No newline at end of file

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.cpp?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.cpp (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.cpp Thu Jun 15 03:57:42 2006
@@ -0,0 +1,123 @@
+#if defined(WIN32)  || defined (_WINDOWS)
+#pragma warning(disable: 4786)
+#endif
+
+#include "commonj/sdo/SDO.h"
+
+#include "AccountDataServiceImpl.h"
+
+using namespace commonj::sdo;
+
+namespace com
+{
+    namespace bigbank
+    {
+        namespace account
+        {
+
+            DataObjectPtr /* CheckingAccount*/ AccountDataServiceImpl::getCheckingAccount(
+            const char *id) 
+            {
+                try {
+
+                    DataFactoryPtr factory  = DataFactory::getDataFactory();
+
+                    XSDHelperPtr helper = HelperProvider::getXSDHelper(factory);
+    
+                    helper->defineFile("AccountService.wsdl");
+
+                    DataObjectPtr newaccount = 
+                        factory->create("http://www.bigbank.com/AccountService/","CheckingAccount");
+
+                    char* name = new char[strlen(id) + 10];
+                    strcpy(name,id);
+                    strcat(name,"_CHA12345");
+
+                    newaccount->setCString("accountNumber",name);
+                    
+                    delete name;
+
+                    newaccount->setFloat("balance",1500.0f);
+
+                    return newaccount;
+
+                }
+                catch (SDORuntimeException e)
+                {
+                    return 0;
+                }
+            }
+
+
+
+            DataObjectPtr /* SavingsAccount */ AccountDataServiceImpl::getSavingsAccount(
+            const char *id) 
+            {
+                try {
+
+                    DataFactoryPtr factory  = DataFactory::getDataFactory();
+
+                    XSDHelperPtr helper = HelperProvider::getXSDHelper(factory);
+    
+                    helper->defineFile("AccountService.wsdl");
+
+                    DataObjectPtr newaccount = 
+                        factory->create("http://www.bigbank.com/AccountService/","SavingsAccount");
+
+                    char* name = new char[strlen(id) + 10];
+                    strcpy(name,id);
+                    strcat(name,"_SAA12345");
+
+                    newaccount->setCString("accountNumber",name);
+                    
+                    delete name;
+
+                    newaccount->setFloat("balance",1500.0f);
+
+                    return newaccount;
+
+                }
+                catch (SDORuntimeException e)
+                {
+                    return 0;
+                }
+            }
+
+
+            DataObjectPtr /* StockAccount */ AccountDataServiceImpl::getStockAccount (
+            const char* id)
+            {
+                try {
+
+                    DataFactoryPtr factory  = DataFactory::getDataFactory();
+
+                    XSDHelperPtr helper = HelperProvider::getXSDHelper(factory);
+    
+                    helper->defineFile("AccountService.wsdl");
+
+                    DataObjectPtr newaccount = 
+                        factory->create("http://www.bigbank.com/AccountService/","StockAccount");
+
+                    char* name = new char[strlen(id) + 10];
+                    strcpy(name,id);
+                    strcat(name,"_STA12345");
+
+                    newaccount->setCString("accountNumber",name);
+                    
+                    delete name;
+
+                    newaccount->setCString("symbol","IBM");
+
+                    newaccount->setInteger("quantity",100);
+
+                    return newaccount;
+
+                }
+                catch (SDORuntimeException e)
+                {
+                    return 0;
+                }
+            }
+        }
+    }
+}
\ No newline at end of file

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.h?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.h (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.h Thu Jun 15 03:57:42 2006
@@ -0,0 +1,45 @@
+
+
+#include "AccountDataService.h"
+
+
+namespace com
+{
+    namespace bigbank
+    {
+        namespace account
+        {
+
+    /*
+     *  AccountDataService C interface
+     */
+
+        class AccountDataServiceImpl : public AccountDataService {
+
+            public:
+            // CheckingAccount is a data object containing
+            // String "accountNumber"
+            // float balance
+
+            virtual DataObjectPtr /* CheckingAccount*/ getCheckingAccount(
+                const char *id);
+
+            // SavingsAccount is a data object containing
+            // String accountNumber
+            // float balance
+
+            virtual DataObjectPtr /* SavingsAccount */ getSavingsAccount(
+                const char *id);
+
+            // StockAccount is a data object containing
+            // String accountNumber
+            // String symbol
+            // int quantity
+
+            virtual DataObjectPtr /* StockAccount */ getStockAccount (
+                const char* id);
+
+            };
+        }
+    }
+}

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.cpp?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.cpp (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.cpp Thu Jun 15 03:57:42 2006
@@ -0,0 +1,85 @@
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+#if defined(WIN32)  || defined (_WINDOWS)
+#pragma warning(disable: 4786)
+#endif
+#include "AccountDataServiceImpl_AccountDataService_Proxy.h"
+
+#include "osoa/sca/sca.h"
+using namespace osoa::sca;
+using namespace tuscany::sca;
+
+extern "C"
+{
+
+    #if defined(WIN32) || defined(_WINDOWS)
+    __declspec(dllexport) 
+    #endif
+    AccountDataServiceImpl_AccountDataService_Proxy* AccountDataServiceImpl_AccountDataService_Proxy_Factory(ServiceWrapper* target)
+    {
+        return new AccountDataServiceImpl_AccountDataService_Proxy(target);
+    }
+
+    #if defined(WIN32) || defined(_WINDOWS)
+    __declspec(dllexport) 
+    #endif
+    void AccountDataServiceImpl_AccountDataService_Proxy_Destructor(void* proxy)
+    {
+        delete (AccountDataServiceImpl_AccountDataService_Proxy*)proxy;
+    }
+}
+
+AccountDataServiceImpl_AccountDataService_Proxy::AccountDataServiceImpl_AccountDataService_Proxy(ServiceWrapper* targ) : target(targ)
+{
+}
+
+AccountDataServiceImpl_AccountDataService_Proxy::~AccountDataServiceImpl_AccountDataService_Proxy()
+{
+    if (target)
+        delete target;
+}
+
+commonj::sdo::DataObjectPtr AccountDataServiceImpl_AccountDataService_Proxy::getCheckingAccount(const char* arg0)
+{
+    Operation operation("getCheckingAccount");
+    operation.addParameter(&arg0);
+    commonj::sdo::DataObjectPtr ret;
+    operation.setReturnValue(&ret);
+    target->invoke(operation);
+    return ret;
+}
+
+commonj::sdo::DataObjectPtr AccountDataServiceImpl_AccountDataService_Proxy::getSavingsAccount(const char* arg0)
+{
+    Operation operation("getSavingsAccount");
+    operation.addParameter(&arg0);
+    commonj::sdo::DataObjectPtr ret;
+    operation.setReturnValue(&ret);
+    target->invoke(operation);
+    return ret;
+}
+
+commonj::sdo::DataObjectPtr AccountDataServiceImpl_AccountDataService_Proxy::getStockAccount(const char* arg0)
+{
+    Operation operation("getStockAccount");
+    operation.addParameter(&arg0);
+    commonj::sdo::DataObjectPtr ret;
+    operation.setReturnValue(&ret);
+    target->invoke(operation);
+    return ret;
+}
+
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.h?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.h (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.h Thu Jun 15 03:57:42 2006
@@ -0,0 +1,36 @@
+/* 
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+#ifndef AccountDataServiceImpl_AccountDataService_Proxy_h
+#define AccountDataServiceImpl_AccountDataService_Proxy_h
+
+#include "AccountDataService.h"
+#include "tuscany/sca/core/ServiceWrapper.h"
+
+class AccountDataServiceImpl_AccountDataService_Proxy : public com::bigbank::account::AccountDataService
+{
+public:
+    AccountDataServiceImpl_AccountDataService_Proxy(tuscany::sca::ServiceWrapper*);
+    virtual ~AccountDataServiceImpl_AccountDataService_Proxy();
+    virtual commonj::sdo::DataObjectPtr getCheckingAccount(const char* id);
+    virtual commonj::sdo::DataObjectPtr getSavingsAccount(const char* id);
+    virtual commonj::sdo::DataObjectPtr getStockAccount(const char* id);
+private:
+    tuscany::sca::ServiceWrapper* target;
+};
+
+#endif // AccountDataServiceImpl_AccountDataService_Proxy_h
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.cpp?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.cpp (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.cpp Thu Jun 15 03:57:42 2006
@@ -0,0 +1,84 @@
+/* 
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+#if defined(WIN32)  || defined (_WINDOWS)
+#pragma warning(disable: 4786)
+#endif
+#include "AccountDataServiceImpl_AccountDataService_Wrapper.h"
+
+#include "osoa/sca/sca.h"
+using namespace osoa::sca;
+using namespace tuscany::sca;
+
+extern "C"
+{
+
+    #if defined(WIN32) || defined(_WINDOWS)
+    __declspec(dllexport) 
+    #endif
+    AccountDataServiceImpl_AccountDataService_Wrapper* AccountDataServiceImpl_AccountDataService_Wrapper_Factory(tuscany::sca::model::Service* target)
+    {
+        return new AccountDataServiceImpl_AccountDataService_Wrapper(target);
+    }
+}
+
+AccountDataServiceImpl_AccountDataService_Wrapper::AccountDataServiceImpl_AccountDataService_Wrapper(Service* target) : ComponentServiceWrapper(target)
+{
+    impl = (com::bigbank::account::AccountDataServiceImpl*)getImplementation();
+}
+
+AccountDataServiceImpl_AccountDataService_Wrapper::~AccountDataServiceImpl_AccountDataService_Wrapper()
+{
+    releaseImplementation();
+}
+
+void* AccountDataServiceImpl_AccountDataService_Wrapper::newImplementation()
+{
+    return new com::bigbank::account::AccountDataServiceImpl;
+}
+
+void AccountDataServiceImpl_AccountDataService_Wrapper::deleteImplementation()
+{
+    delete impl;
+}
+
+void AccountDataServiceImpl_AccountDataService_Wrapper::invokeService(Operation& operation)
+{
+    const string& operationName = operation.getName();
+
+    if (operationName == "getCheckingAccount")
+    {
+        const char* p0 = *(const char**)operation.getParameterValue(0);
+        *(commonj::sdo::DataObjectPtr*)operation.getReturnValue() = impl->getCheckingAccount(p0);
+        return;
+    }
+    if (operationName == "getSavingsAccount")
+    {
+        const char* p0 = *(const char**)operation.getParameterValue(0);
+        *(commonj::sdo::DataObjectPtr*)operation.getReturnValue() = impl->getSavingsAccount(p0);
+        return;
+    }
+    if (operationName == "getStockAccount")
+    {
+        const char* p0 = *(const char**)operation.getParameterValue(0);
+        *(commonj::sdo::DataObjectPtr*)operation.getReturnValue() = impl->getStockAccount(p0);
+        return;
+    }
+        
+
+    throw ServiceRuntimeException("Invalid operation");
+    
+}
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.h?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.h (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.h Thu Jun 15 03:57:42 2006
@@ -0,0 +1,36 @@
+/* 
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+#ifndef AccountDataServiceImpl_AccountDataService_Wrapper_h
+#define AccountDataServiceImpl_AccountDataService_Wrapper_h
+
+#include "AccountDataServiceImpl.h"
+#include "tuscany/sca/core/ComponentServiceWrapper.h"
+
+class AccountDataServiceImpl_AccountDataService_Wrapper : public tuscany::sca::ComponentServiceWrapper
+{
+public:
+    AccountDataServiceImpl_AccountDataService_Wrapper(tuscany::sca::model::Service* target);
+    virtual ~AccountDataServiceImpl_AccountDataService_Wrapper();
+    virtual void invokeService(tuscany::sca::Operation& operation);
+    virtual void* newImplementation();
+    virtual void deleteImplementation();
+private:
+    com::bigbank::account::AccountDataServiceImpl* impl;
+};
+
+#endif // AccountDataServiceImpl_AccountDataService_Wrapper_h
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.h?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.h (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.h Thu Jun 15 03:57:42 2006
@@ -0,0 +1,41 @@
+/**
+ * AccountService.h
+ *
+ */
+
+
+#include <commonj/sdo/SDO.h>
+
+
+namespace com
+{
+    namespace bigbank
+    {
+        namespace account
+        {
+
+    /*
+     *  AccountService C interface
+     */
+
+            class AccountService {
+ 		 
+            public:
+
+                //The account report data object has one many-valued
+                // property "accountSummaries".
+                // This had properties
+                // String accountNumber
+                // String accountType
+                // Float balance.
+
+                 virtual commonj::sdo::DataObjectPtr /*AccountReport*/
+                     getAccountReport(const char* id) = 0;
+         
+        
+            };
+    
+        }   
+    }
+} // namespaces 
+    
\ No newline at end of file

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.wsdl?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.wsdl (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountService.wsdl Thu Jun 15 03:57:42 2006
@@ -0,0 +1,89 @@
+<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+xmlns:tns="http://www.bigbank.com/AccountService/"
+xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+targetNamespace="http://www.bigbank.com/AccountService/"
+name="AccountService" > 
+
+<wsdl:types>
+ <xsd:schema 
+  targetNamespace="http://www.bigbank.com/AccountService/"
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
+  
+  <xsd:element name="customerID" type="xsd:string" />
+  
+  <xsd:element name="getAcountReportResponse" type="tns:AccountReport" />
+
+  <xsd:complexType name="AccountReport"> 
+   <xsd:sequence>
+    <xsd:element name="checking" type="tns:CheckingAccount" 
+	  maxOccurs="unbounded"/>
+    <xsd:element name="savings" type="tns:SavingsAccount" 
+	  maxOccurs="unbounded"/>
+    <xsd:element name="stocks" type="tns:StockAccount" 
+	  maxOccurs="unbounded"/>
+   </xsd:sequence>
+   </xsd:complexType>
+  
+  <xsd:complexType name="StockAccount">
+   <xsd:sequence>
+    <xsd:element name="accountNumber" type="xsd:string"/>
+	<xsd:element name="symbol" type="xsd:string"/>
+	<xsd:element name="quantity" type="xsd:integer"/>
+	<xsd:element name="balance" type="xsd:float"/>
+    </xsd:sequence>
+  </xsd:complexType>
+  <xsd:complexType name="CheckingAccount">
+   <xsd:sequence>
+    <xsd:element name="accountNumber" type="xsd:string"/>
+	<xsd:element name="balance" type="xsd:float"/>
+   </xsd:sequence>
+  </xsd:complexType>
+  <xsd:complexType name="SavingsAccount">
+   <xsd:sequence>
+    <xsd:element name="accountNumber" type="xsd:string"/>
+	<xsd:element name="balance" type="xsd:float"/>
+   </xsd:sequence>
+  </xsd:complexType>
+ </xsd:schema>
+</wsdl:types>
+
+<wsdl:message name="getAcountReportRequest">
+ <wsdl:part element="tns:customerID" name="getAcountReportRequest" />
+</wsdl:message>
+
+<wsdl:message name="getAcountReportResponse">
+ <wsdl:part element="tns:getAcountReportResponse" 
+   name="getAcountReportResponse" />
+</wsdl:message> 
+
+<wsdl:portType name="AccountService"> 
+  SCA Sample Application 16 November 2005 
+ <wsdl:operation name="getAcountReport">
+  <wsdl:input message="tns:getAcountReportRequest" />
+  <wsdl:output message="tns:getAcountReportResponse" />
+ </wsdl:operation>
+</wsdl:portType>
+
+<wsdl:binding name="AccountServiceSOAP" type="tns:AccountService">
+ <soap:binding style="document"
+  transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="getAcountReport">
+ <soap:operation
+   soapAction="http://www.bigbank.com/AccountService/getAcountReport" />
+  <wsdl:input> 
+   <soap:body use="literal" />
+  </wsdl:input>
+  <wsdl:output>
+   <soap:body use="literal" />
+  </wsdl:output>
+ </wsdl:operation>
+</wsdl:binding>
+
+<wsdl:service name="AccountService">
+ <wsdl:port binding="tns:AccountServiceSOAP" 
+   name="AccountServiceSOAP"> 
+  <soap:address location="" />
+ </wsdl:port>
+</wsdl:service>
+</wsdl:definitions> 
\ No newline at end of file

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.componenttype
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.componenttype?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.componenttype (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.componenttype Thu Jun 15 03:57:42 2006
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+ -->
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9"
+		xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+	<service name="AccountService">
+		<interface.cpp header="AccountService.h">
+		</interface.cpp>
+	</service>
+
+	<reference name="AccountDataService">
+		<interface.cpp header="AccountDataService.h">
+		</interface.cpp>
+	</reference>
+
+	<reference name="stockQuote">
+		<interface.cpp header="StockQuoteService.h">
+		</interface.cpp>
+	</reference>
+
+	<property name="currency" type="xs:string"/>
+
+</componentType>
+	
\ No newline at end of file

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.cpp?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.cpp (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.cpp Thu Jun 15 03:57:42 2006
@@ -0,0 +1,184 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+#if defined(WIN32)  || defined (_WINDOWS)
+#pragma warning(disable: 4786)
+#endif
+
+#include "AccountServiceImpl.h"
+#include "StockQuoteService.h"
+#include "AccountDataService.h"
+
+#include "osoa/sca/sca.h"
+
+using namespace osoa::sca;
+
+
+namespace com
+{
+    namespace bigbank
+    {
+        namespace account
+        {
+
+            AccountServiceImpl::AccountServiceImpl() 
+            {
+                initialized = false;
+                // Note - cannot use the component context within the constructor - need to move this
+                // code out to lazy init on first use.
+
+                //ComponentContext myContext = ComponentContext::getCurrent();
+    
+                //dataService = 
+                //    (AccountDataService*)myContext.getService("AccountDataService");
+        
+                //stockService = 
+                //    (StockQuoteService*)myContext.getService("StockQuoteService");
+
+            }
+
+            //void AccountServiceImpl::lazyGetDependencies() 
+            //{
+                // cant do this either - the context cannot be instantiated 
+                // resolve the references on call only
+                
+                //theContext = ComponentContext::getCurrent();
+    
+                //dataService = 
+                //    (AccountDataService*)theContext.getService("AccountDataService");
+        
+                //stockService = 
+                //    (StockQuoteService*)theContext.getService("stockQuote");
+
+                //initialized = true;
+            //}
+
+            AccountServiceImpl::~AccountServiceImpl() 
+            {
+            }
+
+            DataObjectPtr /*AccountReport**/ 
+                AccountServiceImpl::getAccountReport(const char* id)
+            {
+                try {
+
+                    commonj::sdo::DataFactoryPtr factory = 
+                        commonj::sdo::DataFactory::getDataFactory();
+ 
+                    commonj::sdo::XSDHelperPtr helper = 
+                        commonj::sdo::HelperProvider::getXSDHelper(factory);
+    
+                    helper->defineFile("AccountService.wsdl");
+
+                    commonj::sdo::DataObjectPtr newReport = 
+                        factory->create("http://www.bigbank.com/AccountService/","AccountReport");
+                     
+                    ComponentContext theContext = ComponentContext::getCurrent();
+    
+                    com::bigbank::account::AccountDataService *dataService = 
+                       (com::bigbank::account::AccountDataService*)theContext.getService("AccountDataService");
+        
+                    if (dataService == 0)
+                    {
+                            std::cout << "No Account Data Service registered" << std::endl;
+                            return newReport;
+                    }
+
+                    // would be better to return a list of accounts - this only
+                    // gets the first of each.
+
+                    commonj::sdo::DataObjectPtr checking =                     
+                        dataService->getCheckingAccount(id);
+
+                    if (checking != 0)
+                    {
+                        commonj::sdo::DataObjectList& dl = newReport->getList("checking");
+                        checking->setFloat("balance",
+                            fromUSDollarToCurrency(checking->getFloat("balance")));
+                        dl.append(checking);
+                    }
+
+                    commonj::sdo::DataObjectPtr savings = dataService->getSavingsAccount(id);
+
+                    if (savings != 0)
+                    {
+                        commonj::sdo::DataObjectList& dl = newReport->getList("savings");
+                        savings->setFloat("balance",
+                            fromUSDollarToCurrency(savings->getFloat("balance")));
+                        dl.append(savings);
+                    }
+
+                    com::bigbank::stockquote::StockQuoteService* stockService = 
+                      (StockQuoteService*)theContext.getService("stockQuote");
+                    
+                    if (stockService == 0)
+                    {
+                        std::cout << "No Stock Quote Data Service registered" << std::endl;
+                        return newReport;
+                    }
+
+                    commonj::sdo::DataObjectPtr stocks = dataService->getStockAccount(id);
+
+                    if (stocks != 0)
+                    {
+                        commonj::sdo::DataObjectList& dl = newReport->getList("stocks");
+
+                        float value = 10.0f;
+                        try {
+                            value = stockService->getQuote(
+                            stocks->getCString("symbol"));
+                        }
+                        catch (ServiceRuntimeException& e)
+                        {
+                            std::cout << "Fault from stock quote service" << e << std::endl;
+                        }
+                        stocks->setFloat("balance",
+                        fromUSDollarToCurrency(stocks->getInteger("quantity") *
+                        value));
+                        dl.append(stocks);
+                    }
+                    return newReport;
+                }
+                catch (SDORuntimeException& e)
+                {
+                    std::cout << "Error from SDO: " << e << std::endl;
+                    return 0;
+                }
+            }
+
+
+            float AccountServiceImpl::fromUSDollarToCurrency(float value) 
+            {
+                // get the property "currency"
+                ComponentContext myContext = ComponentContext::getCurrent();
+        
+                commonj::sdo::DataObjectInstance properties = myContext.getProperties();
+                if (properties)
+                {
+                    const char* currency = properties->getCString("currency");
+                    if (currency != 0)
+                    {
+                        std::cout << "Currency is : " << currency << std::endl;
+                        if (!strcmp(currency,"USD")) return value;
+                        if (!strcmp(currency,"EURO")) return 0.8f * value;
+                    }
+                }
+                return 0.0f;
+            }
+        }
+    }
+} // namespaces

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.h?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.h (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.h Thu Jun 15 03:57:42 2006
@@ -0,0 +1,58 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+#include "AccountService.h"
+
+
+namespace com
+{
+    namespace bigbank
+    {
+        namespace account
+        {
+
+class AccountServiceImpl:  public AccountService 
+    {
+
+    public:
+
+
+    AccountServiceImpl();
+    virtual ~AccountServiceImpl();
+
+    // public API
+
+    virtual DataObjectPtr /*AccountReport*/
+        getAccountReport(const char* id);
+
+
+    //virtual void lazyGetDependencies();
+    
+private:
+
+   
+    float fromUSDollarToCurrency(float value);
+
+    bool initialized;
+	
+};
+
+}
+}
+} // namespaces
+
+using namespace com::bigbank::account;

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.cpp?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.cpp (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.cpp Thu Jun 15 03:57:42 2006
@@ -0,0 +1,85 @@
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+#if defined(WIN32)  || defined (_WINDOWS)
+#pragma warning(disable: 4786)
+#endif
+#include "AccountServiceImpl_AccountDataService_Proxy.h"
+
+#include "osoa/sca/sca.h"
+using namespace osoa::sca;
+using namespace tuscany::sca;
+
+extern "C"
+{
+
+    #if defined(WIN32) || defined(_WINDOWS)
+    __declspec(dllexport) 
+    #endif
+    AccountServiceImpl_AccountDataService_Proxy* AccountServiceImpl_AccountDataService_Proxy_Factory(ServiceWrapper* target)
+    {
+        return new AccountServiceImpl_AccountDataService_Proxy(target);
+    }
+
+    #if defined(WIN32) || defined(_WINDOWS)
+    __declspec(dllexport) 
+    #endif
+    void AccountServiceImpl_AccountDataService_Proxy_Destructor(void* proxy)
+    {
+        delete (AccountServiceImpl_AccountDataService_Proxy*)proxy;
+    }
+}
+
+AccountServiceImpl_AccountDataService_Proxy::AccountServiceImpl_AccountDataService_Proxy(ServiceWrapper* targ) : target(targ)
+{
+}
+
+AccountServiceImpl_AccountDataService_Proxy::~AccountServiceImpl_AccountDataService_Proxy()
+{
+    if (target)
+        delete target;
+}
+
+commonj::sdo::DataObjectPtr AccountServiceImpl_AccountDataService_Proxy::getCheckingAccount(const char* arg0)
+{
+    Operation operation("getCheckingAccount");
+    operation.addParameter(&arg0);
+    commonj::sdo::DataObjectPtr ret;
+    operation.setReturnValue(&ret);
+    target->invoke(operation);
+    return ret;
+}
+
+commonj::sdo::DataObjectPtr AccountServiceImpl_AccountDataService_Proxy::getSavingsAccount(const char* arg0)
+{
+    Operation operation("getSavingsAccount");
+    operation.addParameter(&arg0);
+    commonj::sdo::DataObjectPtr ret;
+    operation.setReturnValue(&ret);
+    target->invoke(operation);
+    return ret;
+}
+
+commonj::sdo::DataObjectPtr AccountServiceImpl_AccountDataService_Proxy::getStockAccount(const char* arg0)
+{
+    Operation operation("getStockAccount");
+    operation.addParameter(&arg0);
+    commonj::sdo::DataObjectPtr ret;
+    operation.setReturnValue(&ret);
+    target->invoke(operation);
+    return ret;
+}
+
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.h?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.h (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.h Thu Jun 15 03:57:42 2006
@@ -0,0 +1,36 @@
+/* 
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+#ifndef AccountServiceImpl_AccountDataService_Proxy_h
+#define AccountServiceImpl_AccountDataService_Proxy_h
+
+#include "AccountDataService.h"
+#include "tuscany/sca/core/ServiceWrapper.h"
+
+class AccountServiceImpl_AccountDataService_Proxy : public com::bigbank::account::AccountDataService
+{
+public:
+    AccountServiceImpl_AccountDataService_Proxy(tuscany::sca::ServiceWrapper*);
+    virtual ~AccountServiceImpl_AccountDataService_Proxy();
+    virtual commonj::sdo::DataObjectPtr getCheckingAccount(const char* id);
+    virtual commonj::sdo::DataObjectPtr getSavingsAccount(const char* id);
+    virtual commonj::sdo::DataObjectPtr getStockAccount(const char* id);
+private:
+    tuscany::sca::ServiceWrapper* target;
+};
+
+#endif // AccountServiceImpl_AccountDataService_Proxy_h
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.cpp?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.cpp (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.cpp Thu Jun 15 03:57:42 2006
@@ -0,0 +1,65 @@
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+#if defined(WIN32)  || defined (_WINDOWS)
+#pragma warning(disable: 4786)
+#endif
+#include "AccountServiceImpl_AccountService_Proxy.h"
+
+#include "osoa/sca/sca.h"
+using namespace osoa::sca;
+using namespace tuscany::sca;
+
+extern "C"
+{
+
+    #if defined(WIN32) || defined(_WINDOWS)
+    __declspec(dllexport) 
+    #endif
+    AccountServiceImpl_AccountService_Proxy* AccountServiceImpl_AccountService_Proxy_Factory(ServiceWrapper* target)
+    {
+        return new AccountServiceImpl_AccountService_Proxy(target);
+    }
+
+    #if defined(WIN32) || defined(_WINDOWS)
+    __declspec(dllexport) 
+    #endif
+    void AccountServiceImpl_AccountService_Proxy_Destructor(void* proxy)
+    {
+        delete (AccountServiceImpl_AccountService_Proxy*)proxy;
+    }
+}
+
+AccountServiceImpl_AccountService_Proxy::AccountServiceImpl_AccountService_Proxy(ServiceWrapper* targ) : target(targ)
+{
+}
+
+AccountServiceImpl_AccountService_Proxy::~AccountServiceImpl_AccountService_Proxy()
+{
+    if (target)
+        delete target;
+}
+
+commonj::sdo::DataObjectPtr AccountServiceImpl_AccountService_Proxy::getAccountReport(const char* arg0)
+{
+    Operation operation("getAccountReport");
+    operation.addParameter(&arg0);
+    commonj::sdo::DataObjectPtr ret;
+    operation.setReturnValue(&ret);
+    target->invoke(operation);
+    return ret;
+}
+
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.h?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.h (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.h Thu Jun 15 03:57:42 2006
@@ -0,0 +1,34 @@
+/* 
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+#ifndef AccountServiceImpl_AccountService_Proxy_h
+#define AccountServiceImpl_AccountService_Proxy_h
+
+#include "AccountService.h"
+#include "tuscany/sca/core/ServiceWrapper.h"
+
+class AccountServiceImpl_AccountService_Proxy : public com::bigbank::account::AccountService
+{
+public:
+    AccountServiceImpl_AccountService_Proxy(tuscany::sca::ServiceWrapper*);
+    virtual ~AccountServiceImpl_AccountService_Proxy();
+    virtual commonj::sdo::DataObjectPtr getAccountReport(const char* id);
+private:
+    tuscany::sca::ServiceWrapper* target;
+};
+
+#endif // AccountServiceImpl_AccountService_Proxy_h
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.cpp?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.cpp (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.cpp Thu Jun 15 03:57:42 2006
@@ -0,0 +1,72 @@
+/* 
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+#if defined(WIN32)  || defined (_WINDOWS)
+#pragma warning(disable: 4786)
+#endif
+#include "AccountServiceImpl_AccountService_Wrapper.h"
+
+#include "osoa/sca/sca.h"
+using namespace osoa::sca;
+using namespace tuscany::sca;
+
+extern "C"
+{
+
+    #if defined(WIN32) || defined(_WINDOWS)
+    __declspec(dllexport) 
+    #endif
+    AccountServiceImpl_AccountService_Wrapper* AccountServiceImpl_AccountService_Wrapper_Factory(tuscany::sca::model::Service* target)
+    {
+        return new AccountServiceImpl_AccountService_Wrapper(target);
+    }
+}
+
+AccountServiceImpl_AccountService_Wrapper::AccountServiceImpl_AccountService_Wrapper(Service* target) : ComponentServiceWrapper(target)
+{
+    impl = (AccountServiceImpl*)getImplementation();
+}
+
+AccountServiceImpl_AccountService_Wrapper::~AccountServiceImpl_AccountService_Wrapper()
+{
+    releaseImplementation();
+}
+
+void* AccountServiceImpl_AccountService_Wrapper::newImplementation()
+{
+    return new AccountServiceImpl;
+}
+
+void AccountServiceImpl_AccountService_Wrapper::deleteImplementation()
+{
+    delete impl;
+}
+
+void AccountServiceImpl_AccountService_Wrapper::invokeService(Operation& operation)
+{
+    const string& operationName = operation.getName();
+
+    if (operationName == "getAccountReport")
+    {
+        const char* p0 = *(const char**)operation.getParameterValue(0);
+        *(commonj::sdo::DataObjectPtr*)operation.getReturnValue() = impl->getAccountReport(p0);
+        return;
+    }
+        
+
+    throw ServiceRuntimeException("Invalid operation");
+    
+}
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.h?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.h (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.h Thu Jun 15 03:57:42 2006
@@ -0,0 +1,36 @@
+/* 
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+#ifndef AccountServiceImpl_AccountService_Wrapper_h
+#define AccountServiceImpl_AccountService_Wrapper_h
+
+#include "AccountServiceImpl.h"
+#include "tuscany/sca/core/ComponentServiceWrapper.h"
+
+class AccountServiceImpl_AccountService_Wrapper : public tuscany::sca::ComponentServiceWrapper
+{
+public:
+    AccountServiceImpl_AccountService_Wrapper(tuscany::sca::model::Service* target);
+    virtual ~AccountServiceImpl_AccountService_Wrapper();
+    virtual void invokeService(tuscany::sca::Operation& operation);
+    virtual void* newImplementation();
+    virtual void deleteImplementation();
+private:
+    AccountServiceImpl* impl;
+};
+
+#endif // AccountServiceImpl_AccountService_Wrapper_h
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.cpp?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.cpp (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.cpp Thu Jun 15 03:57:42 2006
@@ -0,0 +1,65 @@
+/*
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+#if defined(WIN32)  || defined (_WINDOWS)
+#pragma warning(disable: 4786)
+#endif
+#include "AccountServiceImpl_stockQuote_Proxy.h"
+
+#include "osoa/sca/sca.h"
+using namespace osoa::sca;
+using namespace tuscany::sca;
+
+extern "C"
+{
+
+    #if defined(WIN32) || defined(_WINDOWS)
+    __declspec(dllexport) 
+    #endif
+    AccountServiceImpl_stockQuote_Proxy* AccountServiceImpl_stockQuote_Proxy_Factory(ServiceWrapper* target)
+    {
+        return new AccountServiceImpl_stockQuote_Proxy(target);
+    }
+
+    #if defined(WIN32) || defined(_WINDOWS)
+    __declspec(dllexport) 
+    #endif
+    void AccountServiceImpl_stockQuote_Proxy_Destructor(void* proxy)
+    {
+        delete (AccountServiceImpl_stockQuote_Proxy*)proxy;
+    }
+}
+
+AccountServiceImpl_stockQuote_Proxy::AccountServiceImpl_stockQuote_Proxy(ServiceWrapper* targ) : target(targ)
+{
+}
+
+AccountServiceImpl_stockQuote_Proxy::~AccountServiceImpl_stockQuote_Proxy()
+{
+    if (target)
+        delete target;
+}
+
+float AccountServiceImpl_stockQuote_Proxy::getQuote(const char* arg0)
+{
+    Operation operation("getQuote");
+    operation.addParameter(&arg0);
+    float ret;
+    operation.setReturnValue(&ret);
+    target->invoke(operation);
+    return ret;
+}
+
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.h?rev=414552&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.h (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.h Thu Jun 15 03:57:42 2006
@@ -0,0 +1,34 @@
+/* 
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+#ifndef AccountServiceImpl_stockQuote_Proxy_h
+#define AccountServiceImpl_stockQuote_Proxy_h
+
+#include "StockQuoteService.h"
+#include "tuscany/sca/core/ServiceWrapper.h"
+
+class AccountServiceImpl_stockQuote_Proxy : public com::bigbank::stockquote::StockQuoteService
+{
+public:
+    AccountServiceImpl_stockQuote_Proxy(tuscany::sca::ServiceWrapper*);
+    virtual ~AccountServiceImpl_stockQuote_Proxy();
+    virtual float getQuote(const char* symbol);
+private:
+    tuscany::sca::ServiceWrapper* target;
+};
+
+#endif // AccountServiceImpl_stockQuote_Proxy_h
+

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.h
------------------------------------------------------------------------------
    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