diff options
Diffstat (limited to 'tags/cpp-0.1.incubating-M1-final/sca/samples')
143 files changed, 0 insertions, 9493 deletions
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/AUTHORS b/tags/cpp-0.1.incubating-M1-final/sca/samples/AUTHORS deleted file mode 100644 index e69de29bb2..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/AUTHORS +++ /dev/null diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/AccountClient/AccountClient.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/AccountClient/AccountClient.cpp deleted file mode 100644 index 004c02fd9e..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/AccountClient/AccountClient.cpp +++ /dev/null @@ -1,130 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "..\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 in = mdg->create("http://www.bigbank.com/AccountService","cid"); - in->setCString("customerID",argv[1]); - - DataObjectPtr report = - accountService->getAccountReport(in); - - 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; -} - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/AccountClient/AccountClient.dsp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/AccountClient/AccountClient.dsp deleted file mode 100644 index cf1c043ae2..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/AccountClient/AccountClient.dsp +++ /dev/null @@ -1,102 +0,0 @@ -# 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
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataService.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataService.h deleted file mode 100644 index 1603ed2ccb..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataService.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "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; diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl.componentType b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl.componentType deleted file mode 100644 index 740f9b01d6..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl.componentType +++ /dev/null @@ -1,26 +0,0 @@ -<?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 diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl.cpp deleted file mode 100644 index ec72b4d5b9..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl.cpp +++ /dev/null @@ -1,140 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "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 diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl.h deleted file mode 100644 index 6423c58795..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -#include "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); - - }; - } - } -} diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.cpp deleted file mode 100644 index dbc1588881..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.cpp +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.h deleted file mode 100644 index c86af7e128..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Proxy.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.cpp deleted file mode 100644 index 424ea7fdfb..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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"); - -} - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.h deleted file mode 100644 index af43114af0..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountDataServiceImpl_AccountDataService_Wrapper.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountService.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountService.h deleted file mode 100644 index eb1a585c52..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountService.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * 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(DataObjectPtr cid) = 0; - - - }; - - } - } -} // namespaces -
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountService.wsdl b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountService.wsdl deleted file mode 100644 index 9362ab56c0..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountService.wsdl +++ /dev/null @@ -1,97 +0,0 @@ -<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:complexType name="cid">
- <xsd:sequence>
- <xsd:element name="customerID" type="xsd:string" />
- </xsd:sequence>
- </xsd:complexType>
-
- <xsd:element name="customerID" type="tns:cid" />
-
- <xsd:element name="getAccountReportResponse" 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="getAccountReportRequest">
- <wsdl:part element="tns:customerID" name="getAccountReportRequest" />
-</wsdl:message>
-
-<wsdl:message name="getAccountReportResponse">
- <wsdl:part element="tns:AccountReport"
- name="getAccountReportResponse" />
-</wsdl:message>
-
-<wsdl:portType name="AccountService">
- SCA Sample Application 16 November 2005
- <wsdl:operation name="getAccountReport">
- <wsdl:input message="tns:getAccountReportRequest" />
- <wsdl:output message="tns:getAccountReportResponse" />
- </wsdl:operation>
-</wsdl:portType>
-
-<wsdl:binding name="AccountServiceSOAP" type="tns:AccountService">
- <soap:binding style="document"
- transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="getAccountReport">
- <soap:operation
- soapAction="http://www.bigbank.com/AccountService/getAccountReport" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
-</wsdl:binding>
-
-<wsdl:service name="AccountService">
- <wsdl:port binding="tns:AccountServiceSOAP"
- name="AccountServiceSOAP">
- <soap:address location="http://localhost:9090/axis2/services/Account" />
- </wsdl:port>
-</wsdl:service>
-</wsdl:definitions>
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl.componenttype b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl.componenttype deleted file mode 100644 index 7ab7736069..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl.componenttype +++ /dev/null @@ -1,39 +0,0 @@ -<?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 diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl.cpp deleted file mode 100644 index c78b5963bf..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl.cpp +++ /dev/null @@ -1,186 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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(DataObjectPtr cid) - { - try { - - commonj::sdo::DataFactoryPtr factory = - commonj::sdo::DataFactory::getDataFactory(); - - commonj::sdo::XSDHelperPtr helper = - commonj::sdo::HelperProvider::getXSDHelper(factory); - - helper->defineFile("AccountService.wsdl"); - - const char* id = cid->getCString("customerID"); - - 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 diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl.h deleted file mode 100644 index 1e506f1ed1..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl.h +++ /dev/null @@ -1,58 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "AccountService.h" - - -namespace com -{ - namespace bigbank - { - namespace account - { - -class AccountServiceImpl: public AccountService - { - - public: - - - AccountServiceImpl(); - virtual ~AccountServiceImpl(); - - // public API - - virtual DataObjectPtr /*AccountReport*/ - getAccountReport(DataObjectPtr cid); - - - //virtual void lazyGetDependencies(); - -private: - - - float fromUSDollarToCurrency(float value); - - bool initialized; - -}; - -} -} -} // namespaces - -using namespace com::bigbank::account; diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.cpp deleted file mode 100644 index a0441b213a..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.cpp +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.h deleted file mode 100644 index ff5c6e6d87..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountDataService_Proxy.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#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 - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.cpp deleted file mode 100644 index 1684266b3e..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.cpp +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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( DataObjectPtr arg0) -{ - Operation operation("getAccountReport"); - operation.addParameter(&arg0); - commonj::sdo::DataObjectPtr ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return ret; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.h deleted file mode 100644 index 3b5df16198..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Proxy.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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( DataObjectPtr cid); -private: - tuscany::sca::ServiceWrapper* target; -}; - -#endif // AccountServiceImpl_AccountService_Proxy_h - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.cpp deleted file mode 100644 index 1b97e5c4d0..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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") - { - DataObjectPtr& p0 = *(DataObjectPtr*)operation.getParameterValue(0); *(commonj::sdo::DataObjectPtr*)operation.getReturnValue() = impl->getAccountReport(p0); - return; - } - - - throw ServiceRuntimeException("Invalid operation"); - -} - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.h deleted file mode 100644 index 9dce3fd05d..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_AccountService_Wrapper.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.cpp deleted file mode 100644 index be1b432353..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.cpp +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.h deleted file mode 100644 index d63d507bf4..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/AccountServiceImpl_stockQuote_Proxy.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/Accounts.dsp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/Accounts.dsp deleted file mode 100644 index 52c450a2bd..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/Accounts.dsp +++ /dev/null @@ -1,250 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Accounts" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=Accounts - 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 "Accounts.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 "Accounts.mak" CFG="Accounts - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Accounts - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "Accounts - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Accounts - 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 /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "ACCOUNTS_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "ACCOUNTS_EXPORTS" /YX /FD /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# 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 /nologo /dll /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 /nologo /dll /machine:I386
-
-!ELSEIF "$(CFG)" == "Accounts - 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 /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "ACCOUNTS_EXPORTS" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "$(TUSCANY_SCACPP)\include" /I "$(TUSCANY_SDOCPP)\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "ACCOUNTS_EXPORTS" /YX /FD /GZ /c
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# 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 /nologo /dll /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 tuscany_sca.lib tuscany_sdo.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /libpath:"$(TUSCANY_SCACPP)/lib" /libpath:"$(TUSCANY_SDOCPP)/lib"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Accounts - Win32 Release"
-# Name "Accounts - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\AccountDataServiceImpl.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountDataServiceImpl_AccountDataService_Proxy.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountDataServiceImpl_AccountDataService_Wrapper.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountServiceImpl.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountServiceImpl_AccountDataService_Proxy.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountServiceImpl_AccountDataService_Proxy.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountServiceImpl_AccountService_Proxy.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountServiceImpl_AccountService_Wrapper.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountServiceImpl_stockQuote_Proxy.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteServiceImpl.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteServiceImpl_StockQuoteExternal_Proxy.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteServiceImpl_StockQuoteService_Proxy.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\AccountDataService.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountDataServiceImpl.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountDataServiceImpl_AccountDataService_Proxy.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountDataServiceImpl_AccountDataService_Wrapper.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountService.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountServiceImpl.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountServiceImpl_AccountService_Proxy.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountServiceImpl_AccountService_Wrapper.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountServiceImpl_stockQuote_Proxy.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteExternalService.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteService.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteServiceImpl.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteServiceImpl_StockQuoteExternal_Proxy.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteServiceImpl_StockQuoteService_Proxy.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteServiceImpl_StockQuoteService_Wrapper.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# Begin Source File
-
-SOURCE=..\WSAccountClient\services.xml
-# End Source File
-# Begin Source File
-
-SOURCE="..\WSAccountClient\Tuscany-model.config"
-# End Source File
-# End Group
-# Begin Source File
-
-SOURCE=.\AccountDataServiceImpl.componentType
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountService.wsdl
-# End Source File
-# Begin Source File
-
-SOURCE=.\AccountServiceImpl.componenttype
-# End Source File
-# Begin Source File
-
-SOURCE=.\sca.module
-# End Source File
-# Begin Source File
-
-SOURCE=.\sca.subsystem
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteService.wsdl
-# End Source File
-# Begin Source File
-
-SOURCE=.\StockQuoteServiceImpl.componentType
-# End Source File
-# End Target
-# End Project
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteExternalService.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteExternalService.h deleted file mode 100644 index d8df90651d..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteExternalService.h +++ /dev/null @@ -1,24 +0,0 @@ -#include "commonj/sdo/SDO.h" -using namespace commonj::sdo; - - -namespace com -{ - namespace bigbank - { - namespace stockquote - { - - /* - * AccountsService C interface - */ - - class StockQuoteExternalService { - public: - virtual const char* GetQuote(const char* symbol) = 0; - - }; - - } - } -} // namespace; diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteService.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteService.h deleted file mode 100644 index cd61d4c4d2..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteService.h +++ /dev/null @@ -1,24 +0,0 @@ - - -namespace com -{ - namespace bigbank - { - namespace stockquote - { - - /* - * AccountsService C interface - */ - - class StockQuoteService { - public: - virtual float getQuote(const char* symbol) = 0; - - }; - - } - } -} // namespace; - -using namespace com::bigbank::stockquote; diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteService.wsdl b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteService.wsdl deleted file mode 100644 index ba6caff22c..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteService.wsdl +++ /dev/null @@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-
-<wsdl:definitions
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:tns="http://www.quickstockquote.com/StockQuoteService/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- targetNamespace="http://www.quickstockquote.com/StockQuoteService/"
- name="StockQuoteService">
-
- <wsdl:types>
- <xsd:schema
- targetNamespace="http://www.quickstockquote.com/StockQuoteService/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
- <xsd:element name="getQuote">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="symbol" type="xsd:string"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
-
- <xsd:element name="getQuoteResponse">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="quote" type="xsd:float"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
-
- </xsd:schema>
- </wsdl:types>
- <wsdl:message name="getQuote">
- <wsdl:part element="tns:getQuote" name="getQuote" />
- </wsdl:message>
- <wsdl:message name="getQuoteResponse">
- <wsdl:part element="tns:getQuoteResponse" name="getQuoteResponse" />
- </wsdl:message>
-
- <wsdl:portType name="StockQuoteService">
- <wsdl:operation name="getQuote">
- <wsdl:input message="tns:getQuote" />
- <wsdl:output message="tns:getQuoteResponse" />
- </wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="StockQuoteServiceSOAP"
- type="tns:StockQuoteService">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="getQuote">
- <soap:operation
- soapAction="http://www.quickstockquote.com/StockQuoteService/getQuote" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="StockQuoteService">
- <wsdl:port binding="tns:StockQuoteServiceSOAP"
- name="StockQuoteServiceSOAP">
- <soap:address location="http://www.quickstockquote.com/services/StockQuoteService"/>
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.componentType b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.componentType deleted file mode 100644 index 92e46f2638..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.componentType +++ /dev/null @@ -1,32 +0,0 @@ -<?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="StockQuoteService">
- <interface.cpp header="StockQuoteService.h">
- </interface.cpp>
- </service>
-
- <reference name="StockQuoteExternal">
- <interface.cpp header="StockQuoteExternalService.h">
- </interface.cpp>
- </reference>
-
-
-</componentType>
-
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.cpp deleted file mode 100644 index 8ce6d410c2..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.cpp +++ /dev/null @@ -1,63 +0,0 @@ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "StockQuoteServiceImpl.h" -#include "StockQuoteExternalService.h" - -#include "osoa/sca/sca.h" -#include "commonj/sdo/SDO.h" - -using namespace osoa::sca; -using namespace commonj::sdo; - -namespace com{ - namespace bigbank{ - namespace stockquote { - - - float StockQuoteServiceImpl::getQuote(const char *symbol) - { - ComponentContext myContext = ComponentContext::getCurrent(); - - // Use an SCA reference to get the stock price - StockQuoteExternalService* stockQuoteExternalService = - (StockQuoteExternalService*)myContext. - getService("StockQuoteExternal"); - - if (stockQuoteExternalService == 0) - { - std::cout << "unable to find external stock quote service" << std::endl; - return 0.1f; - } - - // Create a data object representing the requests (use dynamic API until static is available) - DataObjectPtr requestDO; - - // Invoke the service - const char* result = stockQuoteExternalService->GetQuote(symbol); - - //std::cout << result<< std::endl; - - float stockPrice = 0.0f; - - try - { - XMLHelperPtr xmlHelper = HelperProvider::getXMLHelper(myContext.getDataFactory()); - XMLDocumentPtr stockDoc = xmlHelper->load(result); - if (stockDoc->getRootDataObject()) - { - stockPrice=stockDoc->getRootDataObject()->getFloat("Stock.0/Last"); - } - } - catch (SDORuntimeException e) - { - std::cout << e << std::endl; - return 0.0f; - } - return stockPrice; - } - } - } -}
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.h deleted file mode 100644 index 7611984e4e..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl.h +++ /dev/null @@ -1,25 +0,0 @@ - -#include "StockQuoteService.h" - - -namespace com -{ - namespace bigbank - { - namespace stockquote - { - - /* - * AccountsService C interface - */ - - class StockQuoteServiceImpl : public StockQuoteService { - public: - virtual float getQuote(const char* symbol); - - }; - - -} -} -} // namespace; diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteExternal_Proxy.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteExternal_Proxy.cpp deleted file mode 100644 index b618dd4a33..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteExternal_Proxy.cpp +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "StockQuoteServiceImpl_StockQuoteExternal_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 - StockQuoteServiceImpl_StockQuoteExternal_Proxy* StockQuoteServiceImpl_StockQuoteExternal_Proxy_Factory(ServiceWrapper* target) - { - return new StockQuoteServiceImpl_StockQuoteExternal_Proxy(target); - } - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - void StockQuoteServiceImpl_StockQuoteExternal_Proxy_Destructor(void* proxy) - { - delete (StockQuoteServiceImpl_StockQuoteExternal_Proxy*)proxy; - } -} - -StockQuoteServiceImpl_StockQuoteExternal_Proxy::StockQuoteServiceImpl_StockQuoteExternal_Proxy(ServiceWrapper* targ) : target(targ) -{ -} - -StockQuoteServiceImpl_StockQuoteExternal_Proxy::~StockQuoteServiceImpl_StockQuoteExternal_Proxy() -{ - if (target) - delete target; -} - -const char* StockQuoteServiceImpl_StockQuoteExternal_Proxy::GetQuote(const char* arg0) -{ - Operation operation("GetQuote"); - operation.addParameter(&arg0); - const char* ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return ret; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteExternal_Proxy.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteExternal_Proxy.h deleted file mode 100644 index 45469174ce..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteExternal_Proxy.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef StockQuoteServiceImpl_StockQuoteExternal_Proxy_h -#define StockQuoteServiceImpl_StockQuoteExternal_Proxy_h - -#include "StockQuoteExternalService.h" -#include "tuscany/sca/core/ServiceWrapper.h" - -class StockQuoteServiceImpl_StockQuoteExternal_Proxy : public com::bigbank::stockquote::StockQuoteExternalService -{ -public: - StockQuoteServiceImpl_StockQuoteExternal_Proxy(tuscany::sca::ServiceWrapper*); - virtual ~StockQuoteServiceImpl_StockQuoteExternal_Proxy(); - virtual const char* GetQuote(const char* symbol); -private: - tuscany::sca::ServiceWrapper* target; -}; - -#endif // StockQuoteServiceImpl_StockQuoteExternal_Proxy_h - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Proxy.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Proxy.cpp deleted file mode 100644 index 43dabb5307..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Proxy.cpp +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "StockQuoteServiceImpl_StockQuoteService_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 - StockQuoteServiceImpl_StockQuoteService_Proxy* StockQuoteServiceImpl_StockQuoteService_Proxy_Factory(ServiceWrapper* target) - { - return new StockQuoteServiceImpl_StockQuoteService_Proxy(target); - } - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - void StockQuoteServiceImpl_StockQuoteService_Proxy_Destructor(void* proxy) - { - delete (StockQuoteServiceImpl_StockQuoteService_Proxy*)proxy; - } -} - -StockQuoteServiceImpl_StockQuoteService_Proxy::StockQuoteServiceImpl_StockQuoteService_Proxy(ServiceWrapper* targ) : target(targ) -{ -} - -StockQuoteServiceImpl_StockQuoteService_Proxy::~StockQuoteServiceImpl_StockQuoteService_Proxy() -{ - if (target) - delete target; -} - -float StockQuoteServiceImpl_StockQuoteService_Proxy::getQuote(const char* arg0) -{ - Operation operation("getQuote"); - operation.addParameter(&arg0); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return ret; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Proxy.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Proxy.h deleted file mode 100644 index e1b0ad1807..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Proxy.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef StockQuoteServiceImpl_StockQuoteService_Proxy_h -#define StockQuoteServiceImpl_StockQuoteService_Proxy_h - -#include "StockQuoteService.h" -#include "tuscany/sca/core/ServiceWrapper.h" - -class StockQuoteServiceImpl_StockQuoteService_Proxy : public com::bigbank::stockquote::StockQuoteService -{ -public: - StockQuoteServiceImpl_StockQuoteService_Proxy(tuscany::sca::ServiceWrapper*); - virtual ~StockQuoteServiceImpl_StockQuoteService_Proxy(); - virtual float getQuote(const char* symbol); -private: - tuscany::sca::ServiceWrapper* target; -}; - -#endif // StockQuoteServiceImpl_StockQuoteService_Proxy_h - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp deleted file mode 100644 index 00ac26c784..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "StockQuoteServiceImpl_StockQuoteService_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 - StockQuoteServiceImpl_StockQuoteService_Wrapper* StockQuoteServiceImpl_StockQuoteService_Wrapper_Factory(tuscany::sca::model::Service* target) - { - return new StockQuoteServiceImpl_StockQuoteService_Wrapper(target); - } -} - -StockQuoteServiceImpl_StockQuoteService_Wrapper::StockQuoteServiceImpl_StockQuoteService_Wrapper(Service* target) : ComponentServiceWrapper(target) -{ - impl = (StockQuoteServiceImpl*)getImplementation(); -} - -StockQuoteServiceImpl_StockQuoteService_Wrapper::~StockQuoteServiceImpl_StockQuoteService_Wrapper() -{ - releaseImplementation(); -} - -void* StockQuoteServiceImpl_StockQuoteService_Wrapper::newImplementation() -{ - return new StockQuoteServiceImpl; -} - -void StockQuoteServiceImpl_StockQuoteService_Wrapper::deleteImplementation() -{ - delete impl; -} - -void StockQuoteServiceImpl_StockQuoteService_Wrapper::invokeService(Operation& operation) -{ - const string& operationName = operation.getName(); - - if (operationName == "getQuote") - { - const char* p0 = *(const char**)operation.getParameterValue(0); - *(float*)operation.getReturnValue() = impl->getQuote(p0); - return; - } - - - throw ServiceRuntimeException("Invalid operation"); - -} - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Wrapper.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Wrapper.h deleted file mode 100644 index a6d8580e5e..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/StockQuoteServiceImpl_StockQuoteService_Wrapper.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef StockQuoteServiceImpl_StockQuoteService_Wrapper_h -#define StockQuoteServiceImpl_StockQuoteService_Wrapper_h - -#include "StockQuoteServiceImpl.h" -#include "tuscany/sca/core/ComponentServiceWrapper.h" - -class StockQuoteServiceImpl_StockQuoteService_Wrapper : public tuscany::sca::ComponentServiceWrapper -{ -public: - StockQuoteServiceImpl_StockQuoteService_Wrapper(tuscany::sca::model::Service* target); - virtual ~StockQuoteServiceImpl_StockQuoteService_Wrapper(); - virtual void invokeService(tuscany::sca::Operation& operation); - virtual void* newImplementation(); - virtual void deleteImplementation(); -private: - StockQuoteServiceImpl* impl; -}; - -#endif // StockQuoteServiceImpl_StockQuoteService_Wrapper_h - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/sca.module b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/sca.module deleted file mode 100644 index 8560a3cb72..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/sca.module +++ /dev/null @@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="AccountModule">
-
- <component name="AccountServiceComponent">
- <implementation.cpp dll="Accounts.dll" header="AccountServiceImpl.h"/>
- <references>
- <AccountDataService>AccountDataServiceComponent</AccountDataService>
- <stockQuote>StockQuoteServiceComponent</stockQuote>
- </references>
- <properties>
- <v:currency>EURO</v:currency>
- </properties>
- </component>
-
- <component name="AccountDataServiceComponent">
- <implementation.cpp dll="Accounts.dll" header="AccountDataServiceImpl.h"/>
- </component>
-
- <component name="StockQuoteServiceComponent">
- <implementation.cpp dll="Accounts.dll" header="StockQuoteServiceImpl.h"/>
- <references>
- <StockQuoteExternal>StockQuoteExternalService</StockQuoteExternal>
- </references>
- </component>
-
- <externalService name="StockQuoteExternalService">
- <interface.cpp header="StockQuoteExternalService.h"/>
- <binding.ws port="http://www.webserviceX.NET/#wsdl.endpoint(StockQuote/StockQuoteSoap)"/>
- </externalService>
-
- <entryPoint name="WSAccountEntrypoint" multiplicity="1..1">
- <interface.wsdl interface="AccountService.wsdl" callbackInterface=""></interface.wsdl>
- <binding.ws port="http://www.bigbank.com/AccountService#wsdl.endpoint(AccountService/AccountServiceSOAP)"></binding.ws>
- <reference>AccountServiceComponent</reference>
- </entryPoint>
-
-</module>
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/sca.subsystem b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/sca.subsystem deleted file mode 100644 index faaa828bf9..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/Accounts/sca.subsystem +++ /dev/null @@ -1,27 +0,0 @@ -<?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.
- -->
-
-<subsystem xmlns="http://www.osoa.org/xmlns/sca/0.9"
-
- name="AccountSubsystem">
-
- <moduleComponent name="Account" module="AccountModule">
-
- </moduleComponent>
-
-</subsystem>
-
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/BigBank.dsw b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/BigBank.dsw deleted file mode 100644 index 42d7f5a82e..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/BigBank.dsw +++ /dev/null @@ -1,53 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "AccountClient"=.\AccountClient\AccountClient.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "Accounts"=.\Accounts\Accounts.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "WSAccountClient"=.\WSAccountClient\WSAccountClient.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/BigBank.ncb b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/BigBank.ncb Binary files differdeleted file mode 100644 index 8b4beb8420..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/BigBank.ncb +++ /dev/null diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/Tuscany-model.config b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/Tuscany-model.config deleted file mode 100644 index 41a4ec3ebb..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/Tuscany-model.config +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?>
-<!--
- Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<tuscany-model xmlns="http://org.apache.tuscany/xmlns/cpp/1.0">
- <wsdl>
- <file name="AccountService.wsdl"/>
- </wsdl>
- <xsd>
- </xsd>
-</tuscany-model>
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/WSAccountClient.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/WSAccountClient.cpp deleted file mode 100644 index f794dc6112..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/WSAccountClient.cpp +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright 2004,2005 The Apache Software Foundation. - * - * 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 "axis2_Account_stub.h" -#include <stdio.h> -#include <axiom.h> -#include <axis2_util.h> -#include <axiom_soap.h> -#include <axis2_client.h> - -axiom_node_t * -build_om_programatically(const axis2_env_t *env, - const axis2_char_t *operation, - const axis2_char_t *param1 - ); - -int main(int argc, char** argv) -{ - axis2_stub_t *stub = NULL; - axiom_node_t *node = NULL; - axis2_status_t status = AXIS2_FAILURE; - const axis2_env_t *env = NULL; - const axis2_char_t *address = NULL; - const axis2_char_t *client_home = NULL; - axiom_node_t *ret_node = NULL; - - const axis2_char_t *operation = "getAccountReport"; - const axis2_char_t *param1 = "ED"; - - env = axis2_env_create_all( "Account_blocking.log", AXIS2_LOG_LEVEL_TRACE); - - client_home = AXIS2_GETENV("AXIS2C_HOME"); - if (!client_home) - client_home = "../../deploy"; - - address = "http://localhost:9090/axis2/services/Account"; - if (argc > 1 ) - operation = argv[1]; - if (AXIS2_STRCMP(operation, "-h") == 0) - { - printf("Usage : %s [operation] [param1] [endpoint_url]\n", argv[0]); - printf("use -h for help\n"); - printf("default operation add\n"); - printf("default param1 %s\n", param1); - printf("default endpoint_url %s\n", address); - printf("NOTE: command line arguments must appear in given order, with trailing ones being optional\n"); - return 0; - } - if (argc > 2 ) - param1 = argv[2]; - if (argc > 3 ) - address = argv[3]; - - printf ("Using endpoint : %s\n", address); - printf ("\nInvoking operation %s with param %s \n", operation, param1); - - node = build_om_programatically(env, operation, param1); - stub = - axis2_Account_stub_create_with_endpoint_uri_and_client_home(env, address, client_home); - /* create node and invoke Calculator */ - ret_node = axis2_Account_stub_getAccountReport(stub, env, node); - if(ret_node) - { - axis2_char_t *om_str = NULL; - om_str = AXIOM_NODE_TO_STRING(ret_node, env); - if(om_str) - { - printf("\nOM returned = %s\n", om_str); - } - - //if (AXIOM_NODE_GET_NODE_TYPE(ret_node, env) == AXIOM_ELEMENT) - //{ - // axis2_char_t *result = NULL; - // axiom_node_t *result_node = (axiom_node_t*)AXIOM_NODE_GET_FIRST_CHILD(ret_node, env); - // axiom_element_t *data_ele = (axiom_element_t*)AXIOM_NODE_GET_DATA_ELEMENT(result_node, env); - - // result = AXIOM_ELEMENT_GET_TEXT(data_ele, env, result_node); - // printf( "\nResult = %s\n", result); - //} - //else - //{ - // axiom_xml_writer_t *writer = NULL; - // axiom_output_t *om_output = NULL; - // axis2_char_t *buffer = NULL; - // writer = axiom_xml_writer_create_for_memory(env, NULL, AXIS2_TRUE, 0, - // AXIS2_XML_PARSER_TYPE_BUFFER); - // om_output = axiom_output_create (env, writer); - - // AXIOM_NODE_SERIALIZE (ret_node, env, om_output); - // buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(writer, env); - // printf ("\nReceived invalid OM as result : %s\n", buffer); - // if(NULL != buffer) - // { - // AXIS2_FREE(env->allocator, buffer); - // buffer = NULL; - // } - // if(NULL != om_output) - // { - // AXIOM_OUTPUT_FREE(om_output, env); - // om_output = NULL; - // } - //} - } - else - { - AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:" - " %d :: %s", env->error->error_number, - AXIS2_ERROR_GET_MESSAGE(env->error)); - printf("Account stub invoke FAILED!\n"); - } - if (stub) - { - AXIS2_STUB_FREE(stub, env); - } - return status; -} - -axiom_node_t * -build_om_programatically(const axis2_env_t *env, - const axis2_char_t *operation, - const axis2_char_t *param1 - ) -{ - axiom_node_t *Account_om_node = NULL; - axiom_element_t* Account_om_ele = NULL; - axiom_node_t* text_om_node = NULL; - axiom_element_t * text_om_ele = NULL; - axiom_node_t* first_om_node = NULL; - axiom_element_t * first_om_ele = NULL; - axiom_namespace_t *ns1 = NULL; - - - axiom_xml_writer_t *xml_writer = NULL; - axiom_output_t *om_output = NULL; - axis2_char_t *buffer = NULL; - - ns1 = axiom_namespace_create (env, "http://www.bigbank.com/AccountService", "ns1"); - - Account_om_ele = axiom_element_create(env, NULL, operation, ns1, &Account_om_node); - - first_om_ele = axiom_element_create(env, Account_om_node, "customerID", NULL, &first_om_node); - - text_om_ele = axiom_element_create(env, first_om_node, "customerID", NULL, &text_om_node); - - AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, param1, text_om_node); - - xml_writer = axiom_xml_writer_create_for_memory(env, NULL, AXIS2_FALSE, AXIS2_FALSE, - AXIS2_XML_PARSER_TYPE_BUFFER); - om_output = axiom_output_create( env, xml_writer); - - AXIOM_NODE_SERIALIZE(Account_om_node, env, om_output); - buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(xml_writer, env); - AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "\nSending OM node in XML : %s \n", buffer); - if(NULL != buffer) - { - AXIS2_FREE(env->allocator, buffer); - buffer = NULL; - } - if(NULL != om_output) - { - AXIOM_OUTPUT_FREE(om_output, env); - om_output = NULL; - } - - return Account_om_node; -} diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/WSAccountClient.dsp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/WSAccountClient.dsp deleted file mode 100644 index db382db6ff..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/WSAccountClient.dsp +++ /dev/null @@ -1,109 +0,0 @@ -# Microsoft Developer Studio Project File - Name="WSAccountClient" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=WSAccountClient - 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 "WSAccountClient.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 "WSAccountClient.mak" CFG="WSAccountClient - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "WSAccountClient - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "WSAccountClient - 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)" == "WSAccountClient - 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)" == "WSAccountClient - 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 "$(AXIS2C_HOME)/include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# 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_sca.lib tuscany_sdo.lib axis2_engine.lib axis2_parser.lib axis2_util.lib axiom.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"$(TUSCANY_SCACPP)\lib" /libpath:"$(TUSCANY_SDOCPP)\lib" /libpath:"$(AXIS2C_HOME)\lib"
-
-!ENDIF
-
-# Begin Target
-
-# Name "WSAccountClient - Win32 Release"
-# Name "WSAccountClient - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\axis2_Account_stub.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\WSAccountClient.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\axis2_Account_stub.h
-# End Source File
-# 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
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/axis2_Account_stub.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/axis2_Account_stub.cpp deleted file mode 100644 index d9198b29ec..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/axis2_Account_stub.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2004,2005 The Apache Software Foundation. - * - * 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 "axis2_Account_stub.h" - - -axis2_stub_t * -axis2_Account_stub_create_with_endpoint_ref_and_client_home(const axis2_env_t *env, - axis2_endpoint_ref_t *endpoint_ref, - axis2_char_t *client_home) -{ - axis2_stub_t *stub = NULL; - - AXIS2_ENV_CHECK(env, NULL); - - stub = (axis2_stub_t *) - axis2_stub_create_with_endpoint_ref_and_client_home(env, endpoint_ref, - client_home); - if(NULL == stub) - { - AXIS2_ERROR_SET(env->error, - AXIS2_ERROR_NO_MEMORY, (axis2_status_codes)AXIS2_FAILURE); - return NULL; - } - axis2_populate_axis_service( stub, env); - return stub; -} - -void axis2_populate_axis_service( axis2_stub_t* stub, const axis2_env_t *env) -{ - axis2_svc_client_t* svc_client = NULL; - axis2_qname_t *op_qname = NULL; - axis2_svc_t* svc = NULL; - axis2_op_t* op = NULL; - - /*Modifying the Service*/ - svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env ); - svc = (axis2_svc_t*)AXIS2_SVC_CLIENT_GET_AXIS_SERVICE ( svc_client, env ); - - /*creating the operations*/ - - op_qname = axis2_qname_create(env,"getAccountReport" , "", NULL); - op = axis2_op_create_with_qname(env, op_qname); - AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN); - AXIS2_SVC_ADD_OP(svc, env, op); - - } - -axis2_stub_t * -axis2_Account_stub_create_with_endpoint_uri_and_client_home(const axis2_env_t *env, - const axis2_char_t *endpoint_uri, - const axis2_char_t *client_home) -{ - axis2_stub_t *stub = NULL; - - AXIS2_ENV_CHECK(env, NULL); - - stub = (axis2_stub_t *) - axis2_stub_create_with_endpoint_uri_and_client_home(env, endpoint_uri, - client_home); - if(NULL == stub) - { - AXIS2_ERROR_SET(env->error, - AXIS2_ERROR_NO_MEMORY, (axis2_status_codes)AXIS2_FAILURE); - return NULL; - } - - axis2_populate_axis_service( stub, env); - - return stub; -} - -/***************************Function implementation****************************/ - -axiom_node_t * -axis2_Account_stub_getAccountReport(axis2_stub_t *stub, - const axis2_env_t *env, - axiom_node_t *node) -{ - axis2_svc_client_t *svc_client = NULL; - axiom_node_t *ret_node = NULL; - axis2_qname_t *op_qname = NULL; - - AXIS2_ENV_CHECK(env, AXIS2_FAILURE); - - svc_client = AXIS2_STUB_GET_SVC_CLIENT(stub, env); - op_qname = axis2_qname_create(env, "getAccountReport" , "", NULL); - ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, node); - - return ret_node; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/axis2_Account_stub.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/axis2_Account_stub.h deleted file mode 100644 index 53f07263b8..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/axis2_Account_stub.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2004,2005 The Apache Software Foundation. - * - * 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 AXIS2_ECHO_STUB_H -#define AXIS2_ECHO_STUB_H - -/** - * @file axis2_Calculator_stub.h - * @brief axis2 Calculator stub interface - */ - -#include <axis2_stub.h> - -#ifdef __cplusplus -extern "C" -{ -#endif - -axiom_node_t * -axis2_Account_stub_getAccountReport(axis2_stub_t *stub, - const axis2_env_t *env, - axiom_node_t *node); - -/** - * populate services - */ -void axis2_populate_axis_service( axis2_stub_t* stub, const axis2_env_t *env); - -/** - * Creates axis2_stub struct - * @param endpoint reference - * @return pointer to newly created axis2_stub struct - */ -axis2_stub_t * -axis2_Account_stub_create_with_endpoint_ref_and_client_home(const axis2_env_t *env, - axis2_endpoint_ref_t *endpoint_ref, - axis2_char_t *client_home); - -/** - * Creates axis2_stub struct - * @param endpoint uri - * @return pointer to newly created axis2_stub struct - */ -axis2_stub_t * -axis2_Account_stub_create_with_endpoint_uri_and_client_home(const axis2_env_t *env, - const axis2_char_t *endpoint_uri, - const axis2_char_t *client_home); -/** @} */ - -#ifdef __cplusplus -} -#endif -#endif /* AXIS2_ECHO_STUB_H */ diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/services.xml b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/services.xml deleted file mode 100644 index bb57c6edb6..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/WSAccountClient/services.xml +++ /dev/null @@ -1,30 +0,0 @@ - -<!-- - Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> -<service name="BigBank"> - <parameter name="ServiceClass" locked="xsd:false">tuscany_sca_ws_service</parameter> - <parameter name="TuscanySystemRoot" locked="xsd:false">c:/apache/apache_checkout/cpp/sca/samples/BigBank/deploy</parameter> - <parameter name="TuscanyEntryPoint" locked="xsd:false">AccountSubsystem/Account/WSAccountEntrypoint</parameter> - - <description> - This is a testing service, named 'BigBank' to test multiple operations in the same service - </description> - - <operation name="getAccountReport"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - -</service> diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/deploy.bat b/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/deploy.bat deleted file mode 100644 index d88112556b..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/BigBank/deploy.bat +++ /dev/null @@ -1,16 +0,0 @@ -copy Accounts\Debug\Accounts.dll Deploy\modules\Accounts -copy Accounts\Debug\Accounts.pdb Deploy\modules\Accounts -copy Accounts\AccountServiceImpl.h Deploy\modules\Accounts -copy Accounts\AccountService.h Deploy\modules\Accounts -copy Accounts\AccountDataServiceImpl.h Deploy\modules\Accounts -copy Accounts\AccountDataService.h Deploy\modules\Accounts -copy Accounts\StockQuoteService.h Deploy\modules\Accounts -copy Accounts\StockQuoteServiceImpl.h Deploy\modules\Accounts -copy Accounts\StockQuoteExternalService.h Deploy\modules\Accounts -copy AccountClient\Debug\AccountClient.exe Deploy\modules\Accounts -copy AccountClient\Debug\AccountClient.pdb Deploy\modules\Accounts -copy Accounts\sca.module Deploy\modules\Accounts -copy Accounts\sca.subsystem Deploy\subsystems\Accounts -copy Accounts\AccountServiceImpl.componentType Deploy\modules\Accounts -copy Accounts\AccountDataServiceImpl.componentType Deploy\modules\Accounts -copy Accounts\StockQuoteServiceImpl.componentType Deploy\modules\Accounts diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/COPYING b/tags/cpp-0.1.incubating-M1-final/sca/samples/COPYING deleted file mode 100755 index 6b0b1270ff..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/COPYING +++ /dev/null @@ -1,203 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Calculator.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Calculator.h deleted file mode 100644 index 6f30e31550..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Calculator.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef CALCULATOR_H -#define 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 - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Calculator.wsdl b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Calculator.wsdl deleted file mode 100644 index 6ec2df52bd..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Calculator.wsdl +++ /dev/null @@ -1,161 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<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="tuscany/c/Calculator"
- targetNamespace="tuscany/c/Calculator">
- <types>
- <xs:schema targetNamespace="tuscany/c/Calculator"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:tns="tuscany/c/Calculator"
- elementFormDefault="qualified">
-
- <xs:element name="add">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="param1" type="xs:float" minOccurs="1"/>
- <xs:element name="param2" type="xs:float" minOccurs="1"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="sub">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="param1" type="xs:float" minOccurs="1"/>
- <xs:element name="param2" type="xs:float" minOccurs="1"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="mul">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="param1" type="xs:float" minOccurs="1"/>
- <xs:element name="param2" type="xs:float" minOccurs="1"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="div">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="param1" type="xs:float" minOccurs="1"/>
- <xs:element name="param2" type="xs:float" minOccurs="1"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
-<!-- The data that axis2c math client expects to be returned. -->
-<!-- SDOCPP currently doesn't support this XML. Jira TUSCANY-xxx -->
-<!-- <xs:element name="result"> -->
-<!-- <xs:simpleType> -->
-<!-- <xs:restriction base="xs:float"/> -->
-<!-- </xs:simpleType> -->
-<!-- </xs:element> -->
- <xs:element name="result">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="data" type="xs:float" minOccurs="1"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- </xs:schema>
- </types>
-
- <message name="addRequestMsg">
- <part name="body" element="tns:add"/>
- </message>
- <message name="subRequestMsg">
- <part name="body" element="tns:sub"/>
- </message>
- <message name="mulRequestMsg">
- <part name="body" element="tns:mul"/>
- </message>
- <message name="divRequestMsg">
- <part name="body" element="tns:div"/>
- </message>
-
- <message name="calculatorResponseMsg">
- <part name="body" element="tns:result"/>
- </message>
-
- <portType name="CalculatorServicePortType">
- <operation name="add">
- <input message="tns:addRequestMsg"/>
- <output message="tns:calculatorResponseMsg"/>
- </operation>
- <operation name="sub">
- <input message="tns:subRequestMsg"/>
- <output message="tns:calculatorResponseMsg"/>
- </operation>
- <operation name="mul">
- <input message="tns:mulRequestMsg"/>
- <output message="tns:calculatorResponseMsg"/>
- </operation>
- <operation name="div">
- <input message="tns:divRequestMsg"/>
- <output message="tns:calculatorResponseMsg"/>
- </operation>
- </portType>
-
- <binding name="CalculatorServiceBinding" type="tns:CalculatorServicePortType">
- <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#nul"/>
- <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="CalculatorServicePort" binding="tns:CalculatorServiceBinding">
- <soap:address location="http://localhost:9090/axis2/services/Calculator"/>
- </port>
- </service>
-</definitions>
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl.componentType b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl.componentType deleted file mode 100644 index 39d6698e02..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl.componentType +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?> -<!-- - Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <service name="CalculatorService"> - <interface.cpp header="Calculator.h"/> - </service> - - <reference name="CalculatorDivideService"> - <interface.cpp header="DivideService.h"/> - </reference> - - -</componentType>
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl.cpp deleted file mode 100644 index 746a1db689..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl.cpp +++ /dev/null @@ -1,85 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "CalculatorImpl.h" -#include <stdio.h> - -#include "DivideService.h" -#include "osoa/sca/ComponentContext.h" -#include "osoa/sca/ServiceRuntimeException.h" - -CalculatorImpl::CalculatorImpl() -{ -} - -CalculatorImpl::~CalculatorImpl() -{ -} - -// Calculator interface -float CalculatorImpl::add(float arg1, float arg2) -{ - float result = arg1 + arg2; - - printf("CalculatorImpl::add %f + %f = %f\n", arg1, arg2, result); - return result; -} - -float CalculatorImpl::sub(float arg1, float arg2) -{ - float result = arg1 - arg2; - printf("CalculatorImpl::sub %f - %f = %f\n", arg1, arg2, result); - return result; -} - -float CalculatorImpl::mul(float arg1, float arg2) -{ - float result = arg1 * arg2; - printf("CalculatorImpl::mul %f * %f = %f\n", arg1, arg2, result); - return result; -} - -float CalculatorImpl::div(float arg1, float arg2) -{ - float result = 0; - - // This method shows how to invoke a service on a different component from within a component - - // First, get the current ComponentContext - osoa::sca::ComponentContext myContext = osoa::sca::ComponentContext::getCurrent(); - - try - { - // Find the required service, as referenced in CalculatorImpl.componentType - DivideService* divideService = (DivideService*)myContext.getService("CalculatorDivideService"); - - // Finally, invoke the service - result = divideService->divide(arg1, arg2); - - printf("CalculatorImpl::div DivideService returned result: %f\n", result); - - } - catch (osoa::sca::ServiceRuntimeException& e) - { - // Print out error message and carry on - printf("CalculatorImpl::div Error whilst invoking DivideService: %s", e.getMessageText()); - } - - return result; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl.h deleted file mode 100644 index 2e4b6aa4dc..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef CALCULATORIMPL_H -#define CALCULATORIMPL_H - -#include "Calculator.h" - -class CalculatorImpl : public Calculator -{ -public: - CalculatorImpl(); - virtual ~CalculatorImpl(); - - // Calculator interface - virtual float add(float arg1, float arg2); - virtual float sub(float arg1, float arg2); - virtual float mul(float arg1, float arg2); - virtual float div(float arg1, float arg2); -}; - -#endif - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorDivideService_Proxy.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorDivideService_Proxy.cpp deleted file mode 100644 index 0ff0891406..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorDivideService_Proxy.cpp +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "CalculatorImpl_CalculatorDivideService_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 - CalculatorImpl_CalculatorDivideService_Proxy* CalculatorImpl_CalculatorDivideService_Proxy_Factory(ServiceWrapper* target) - { - return new CalculatorImpl_CalculatorDivideService_Proxy(target); - } - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - void CalculatorImpl_CalculatorDivideService_Proxy_Destructor(void* proxy) - { - delete (CalculatorImpl_CalculatorDivideService_Proxy*)proxy; - } -} - -CalculatorImpl_CalculatorDivideService_Proxy::CalculatorImpl_CalculatorDivideService_Proxy(ServiceWrapper* targ) : target(targ) -{ -} - -CalculatorImpl_CalculatorDivideService_Proxy::~CalculatorImpl_CalculatorDivideService_Proxy() -{ - if (target) - delete target; -} - -float CalculatorImpl_CalculatorDivideService_Proxy::divide( float arg0, float arg1) -{ - Operation operation("divide"); - operation.addParameter(&arg0); - operation.addParameter(&arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return ret; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorDivideService_Proxy.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorDivideService_Proxy.h deleted file mode 100644 index 3312005d32..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorDivideService_Proxy.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef CalculatorImpl_CalculatorDivideService_Proxy_h -#define CalculatorImpl_CalculatorDivideService_Proxy_h - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "DivideService.h" -#include "tuscany/sca/core/ServiceWrapper.h" - -class CalculatorImpl_CalculatorDivideService_Proxy : public DivideService -{ -public: - CalculatorImpl_CalculatorDivideService_Proxy(tuscany::sca::ServiceWrapper*); - virtual ~CalculatorImpl_CalculatorDivideService_Proxy(); - virtual float divide( float arg1, float arg2); -private: - tuscany::sca::ServiceWrapper* target; -}; - -#endif // CalculatorImpl_CalculatorDivideService_Proxy_h - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Proxy.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Proxy.cpp deleted file mode 100644 index c601ebcdc2..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Proxy.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "CalculatorImpl_CalculatorService_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 - CalculatorImpl_CalculatorService_Proxy* CalculatorImpl_CalculatorService_Proxy_Factory(ServiceWrapper* target) - { - return new CalculatorImpl_CalculatorService_Proxy(target); - } - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - void CalculatorImpl_CalculatorService_Proxy_Destructor(void* proxy) - { - delete (CalculatorImpl_CalculatorService_Proxy*)proxy; - } -} - -CalculatorImpl_CalculatorService_Proxy::CalculatorImpl_CalculatorService_Proxy(ServiceWrapper* targ) : target(targ) -{ -} - -CalculatorImpl_CalculatorService_Proxy::~CalculatorImpl_CalculatorService_Proxy() -{ - if (target) - delete target; -} - -float CalculatorImpl_CalculatorService_Proxy::add( float arg0, float arg1) -{ - Operation operation("add"); - operation.addParameter(&arg0); - operation.addParameter(&arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return ret; -} - -float CalculatorImpl_CalculatorService_Proxy::sub( float arg0, float arg1) -{ - Operation operation("sub"); - operation.addParameter(&arg0); - operation.addParameter(&arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return ret; -} - -float CalculatorImpl_CalculatorService_Proxy::mul( float arg0, float arg1) -{ - Operation operation("mul"); - operation.addParameter(&arg0); - operation.addParameter(&arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return ret; -} - -float CalculatorImpl_CalculatorService_Proxy::div( float arg0, float arg1) -{ - Operation operation("div"); - operation.addParameter(&arg0); - operation.addParameter(&arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return ret; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Proxy.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Proxy.h deleted file mode 100644 index d3de5a79c6..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Proxy.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef CalculatorImpl_CalculatorService_Proxy_h -#define CalculatorImpl_CalculatorService_Proxy_h - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "Calculator.h" -#include "tuscany/sca/core/ServiceWrapper.h" - -class CalculatorImpl_CalculatorService_Proxy : public Calculator -{ -public: - CalculatorImpl_CalculatorService_Proxy(tuscany::sca::ServiceWrapper*); - virtual ~CalculatorImpl_CalculatorService_Proxy(); - virtual float add( float arg1, float arg2); - virtual float sub( float arg1, float arg2); - virtual float mul( float arg1, float arg2); - virtual float div( float arg1, float arg2); -private: - tuscany::sca::ServiceWrapper* target; -}; - -#endif // CalculatorImpl_CalculatorService_Proxy_h - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Wrapper.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Wrapper.cpp deleted file mode 100644 index 97805d0e4b..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Wrapper.cpp +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "CalculatorImpl_CalculatorService_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 - CalculatorImpl_CalculatorService_Wrapper* CalculatorImpl_CalculatorService_Wrapper_Factory(tuscany::sca::model::Service* target) - { - return new CalculatorImpl_CalculatorService_Wrapper(target); - } -} - -CalculatorImpl_CalculatorService_Wrapper::CalculatorImpl_CalculatorService_Wrapper(Service* target) : ComponentServiceWrapper(target) -{ - impl = (CalculatorImpl*)getImplementation(); -} - -CalculatorImpl_CalculatorService_Wrapper::~CalculatorImpl_CalculatorService_Wrapper() -{ - releaseImplementation(); -} - -void* CalculatorImpl_CalculatorService_Wrapper::newImplementation() -{ - return new CalculatorImpl; -} - -void CalculatorImpl_CalculatorService_Wrapper::deleteImplementation() -{ - delete impl; -} - -void CalculatorImpl_CalculatorService_Wrapper::invokeService(Operation& operation) -{ - const string& operationName = operation.getName(); - - if (operationName == "add") - { - float& p0 = *( float*)operation.getParameterValue(0); - float& p1 = *( float*)operation.getParameterValue(1); - *(float*)operation.getReturnValue() = impl->add(p0, p1); - return; - } - if (operationName == "sub") - { - float& p0 = *( float*)operation.getParameterValue(0); - float& p1 = *( float*)operation.getParameterValue(1); - *(float*)operation.getReturnValue() = impl->sub(p0, p1); - return; - } - if (operationName == "mul") - { - float& p0 = *( float*)operation.getParameterValue(0); - float& p1 = *( float*)operation.getParameterValue(1); - *(float*)operation.getReturnValue() = impl->mul(p0, p1); - return; - } - if (operationName == "div") - { - float& p0 = *( float*)operation.getParameterValue(0); - float& p1 = *( float*)operation.getParameterValue(1); - *(float*)operation.getReturnValue() = impl->div(p0, p1); - return; - } - - - throw ServiceRuntimeException("Invalid operation"); - -} - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Wrapper.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Wrapper.h deleted file mode 100644 index c881576ca2..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/CalculatorImpl_CalculatorService_Wrapper.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef CalculatorImpl_CalculatorService_Wrapper_h -#define CalculatorImpl_CalculatorService_Wrapper_h - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "CalculatorImpl.h" -#include "tuscany/sca/core/ComponentServiceWrapper.h" - -class CalculatorImpl_CalculatorService_Wrapper : public tuscany::sca::ComponentServiceWrapper -{ -public: - CalculatorImpl_CalculatorService_Wrapper(tuscany::sca::model::Service* target); - virtual ~CalculatorImpl_CalculatorService_Wrapper(); - virtual void invokeService(tuscany::sca::Operation& operation); - virtual void* newImplementation(); - virtual void deleteImplementation(); -private: - CalculatorImpl* impl; -}; - -#endif // CalculatorImpl_CalculatorService_Wrapper_h - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideService.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideService.h deleted file mode 100644 index f6033c9020..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideService.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -#ifndef DIVIDESERVICE_H -#define DIVIDESERVICE_H -class DivideService -{ -public: - virtual float divide(float arg1, float arg2) = 0; -}; - -#endif - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl.componentType b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl.componentType deleted file mode 100644 index bda8aed044..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl.componentType +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?> -<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <service name="DivideService"> - <interface.cpp header="DivideService.h"> - </interface.cpp> - </service> - -</componentType> diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl.cpp deleted file mode 100644 index 4797498103..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl.cpp +++ /dev/null @@ -1,44 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -#include "DivideServiceImpl.h" -#include <stdio.h> - -DivideServiceImpl::DivideServiceImpl() -{ -} - -DivideServiceImpl::~DivideServiceImpl() -{ -} - -// DivideService interface -float DivideServiceImpl::divide(float arg1, float arg2) -{ - if(arg2 == 0.0) - { - printf("DivideServiceImpl::div %f / %f !! Cannot divide by zero, so returning 0\n", arg1, arg2); - return 0; - } - - float result = arg1 / arg2; - printf("DivideServiceImpl::div %f / %f = %f\n", arg1, arg2, result); - return result; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl.h deleted file mode 100644 index 00216b53b3..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef DIVIDESERVICEIMPL_H -#define DIVIDESERVICEIMPL_H - -#include "DivideService.h" - -class DivideServiceImpl : public DivideService -{ -public: - DivideServiceImpl(); - virtual ~DivideServiceImpl(); - - // DivideService interface - virtual float divide(float arg1, float arg2); -}; - -#endif - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Proxy.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Proxy.cpp deleted file mode 100644 index 945f407327..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Proxy.cpp +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "DivideServiceImpl_DivideService_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 - DivideServiceImpl_DivideService_Proxy* DivideServiceImpl_DivideService_Proxy_Factory(ServiceWrapper* target) - { - return new DivideServiceImpl_DivideService_Proxy(target); - } - - #if defined(WIN32) || defined(_WINDOWS) - __declspec(dllexport) - #endif - void DivideServiceImpl_DivideService_Proxy_Destructor(void* proxy) - { - delete (DivideServiceImpl_DivideService_Proxy*)proxy; - } -} - -DivideServiceImpl_DivideService_Proxy::DivideServiceImpl_DivideService_Proxy(ServiceWrapper* targ) : target(targ) -{ -} - -DivideServiceImpl_DivideService_Proxy::~DivideServiceImpl_DivideService_Proxy() -{ - if (target) - delete target; -} - -float DivideServiceImpl_DivideService_Proxy::divide( float arg0, float arg1) -{ - Operation operation("divide"); - operation.addParameter(&arg0); - operation.addParameter(&arg1); - float ret; - operation.setReturnValue(&ret); - target->invoke(operation); - return ret; -} - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Proxy.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Proxy.h deleted file mode 100644 index 957ad43168..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Proxy.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef DivideServiceImpl_DivideService_Proxy_h -#define DivideServiceImpl_DivideService_Proxy_h - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "DivideService.h" -#include "tuscany/sca/core/ServiceWrapper.h" - -class DivideServiceImpl_DivideService_Proxy : public DivideService -{ -public: - DivideServiceImpl_DivideService_Proxy(tuscany::sca::ServiceWrapper*); - virtual ~DivideServiceImpl_DivideService_Proxy(); - virtual float divide( float arg1, float arg2); -private: - tuscany::sca::ServiceWrapper* target; -}; - -#endif // DivideServiceImpl_DivideService_Proxy_h - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Wrapper.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Wrapper.cpp deleted file mode 100644 index 4257caa46c..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Wrapper.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "DivideServiceImpl_DivideService_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 - DivideServiceImpl_DivideService_Wrapper* DivideServiceImpl_DivideService_Wrapper_Factory(tuscany::sca::model::Service* target) - { - return new DivideServiceImpl_DivideService_Wrapper(target); - } -} - -DivideServiceImpl_DivideService_Wrapper::DivideServiceImpl_DivideService_Wrapper(Service* target) : ComponentServiceWrapper(target) -{ - impl = (DivideServiceImpl*)getImplementation(); -} - -DivideServiceImpl_DivideService_Wrapper::~DivideServiceImpl_DivideService_Wrapper() -{ - releaseImplementation(); -} - -void* DivideServiceImpl_DivideService_Wrapper::newImplementation() -{ - return new DivideServiceImpl; -} - -void DivideServiceImpl_DivideService_Wrapper::deleteImplementation() -{ - delete impl; -} - -void DivideServiceImpl_DivideService_Wrapper::invokeService(Operation& operation) -{ - const string& operationName = operation.getName(); - - if (operationName == "divide") - { - float& p0 = *( float*)operation.getParameterValue(0); - float& p1 = *( float*)operation.getParameterValue(1); - *(float*)operation.getReturnValue() = impl->divide(p0, p1); - return; - } - - - throw ServiceRuntimeException("Invalid operation"); - -} - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Wrapper.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Wrapper.h deleted file mode 100644 index 9be9796ee2..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/DivideServiceImpl_DivideService_Wrapper.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef DivideServiceImpl_DivideService_Wrapper_h -#define DivideServiceImpl_DivideService_Wrapper_h - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "DivideServiceImpl.h" -#include "tuscany/sca/core/ComponentServiceWrapper.h" - -class DivideServiceImpl_DivideService_Wrapper : public tuscany::sca::ComponentServiceWrapper -{ -public: - DivideServiceImpl_DivideService_Wrapper(tuscany::sca::model::Service* target); - virtual ~DivideServiceImpl_DivideService_Wrapper(); - virtual void invokeService(tuscany::sca::Operation& operation); - virtual void* newImplementation(); - virtual void deleteImplementation(); -private: - DivideServiceImpl* impl; -}; - -#endif // DivideServiceImpl_DivideService_Wrapper_h - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Makefile.am b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Makefile.am deleted file mode 100644 index aff769b36a..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Makefile.am +++ /dev/null @@ -1,35 +0,0 @@ -deploydir=$(prefix)/samples/Calculator/deploy -moduledir=$(deploydir)/modules/CalculatorModule - -BUILT_SOURCES = CalculatorImpl_CalculatorService_Proxy.cpp \ -CalculatorImpl_CalculatorService_Wrapper.cpp \ -CalculatorImpl_CalculatorDivideService_Proxy.cpp \ -DivideServiceImpl_DivideService_Proxy.cpp \ -DivideServiceImpl_DivideService_Wrapper.cpp - -noinst_HEADERS = *.h - -CalculatorImpl_CalculatorService_Proxy.cpp: - java -jar $(TUSCANY_SCACPP)/bin/scagen.jar -dir . -output . - -module_LTLIBRARIES = libCalculatorModule.la -module_DATA = sca.module.lin Tuscany-model.config *.componentType *.wsdl services.xml -EXTRA_DIST = sca.module.lin Tuscany-model.config *.componentType *.wsdl services.xml - -libCalculatorModule_la_SOURCES = \ -CalculatorImpl.cpp \ -CalculatorImpl_CalculatorService_Proxy.cpp \ -CalculatorImpl_CalculatorService_Wrapper.cpp \ -CalculatorImpl_CalculatorDivideService_Proxy.cpp \ -DivideServiceImpl.cpp \ -DivideServiceImpl_DivideService_Proxy.cpp \ -DivideServiceImpl_DivideService_Wrapper.cpp - -libCalculatorModule_la_LIBADD = -L${TUSCANY_SCACPP}/lib -ltuscany_sca - -INCLUDES = \ - -I$(TUSCANY_SCACPP)/include \ - -I${TUSCANY_SDOCPP}/include - -install-data-hook: - mv $(moduledir)/sca.module.lin $(moduledir)/sca.module
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Tuscany-model.config b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Tuscany-model.config deleted file mode 100644 index b8f96a01a1..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/Tuscany-model.config +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!-- - Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<tuscany-model xmlns="http://org.apache.tuscany/xmlns/cpp/1.0"> - <wsdl> - <file name="Calculator.wsdl"/> - </wsdl> - <xsd/> -</tuscany-model> diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/sca.module b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/sca.module deleted file mode 100644 index e07fbeb9e2..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/sca.module +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?> -<!-- - Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<module xmlns="http://www.osoa.org/xmlns/sca/0.9" - xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9" - xmlns:cs="tuscany/c/Calculator/" - name="CalculatorModule"> - - <!-- Expose as a web service --> - <entryPoint name="WSCalculatorEntrypoint" multiplicity="1..1"> - <interface.wsdl interface="Calculator.wsdl" callbackInterface=""></interface.wsdl> - <binding.ws port="tuscany/c/Calculator#wsdl.endpoint(CalculatorService/CalculatorServicePort)"></binding.ws> - <reference>CalculatorServiceComponent</reference> - </entryPoint> - - - <component name="CalculatorServiceComponent"> - <implementation.cpp dll="Calculator.dll" header="CalculatorImpl.h"></implementation.cpp> - <properties> </properties> - <references> - <v:CalculatorDivideService>DivideServiceComponent/DivideService</v:CalculatorDivideService> - </references> - </component> - - <component name="DivideServiceComponent"> - <implementation.cpp dll="Calculator.dll" header="DivideServiceImpl.h"></implementation.cpp> - <properties> </properties> - <references> </references> - </component> - - - -</module>
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/sca.module.lin b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/sca.module.lin deleted file mode 100644 index 4bd96ac774..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/sca.module.lin +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?> -<!-- - Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<module xmlns="http://www.osoa.org/xmlns/sca/0.9" - xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9" - name="CalculatorModule"> - - <!-- Expose as a web service --> - <entryPoint name="WSCalculatorEntrypoint" multiplicity="1..1"> - <interface.wsdl interface="Calculator.wsdl" callbackInterface=""></interface.wsdl> - <binding.ws port="tuscany/c/Calculator#wsdl.endpoint(CalculatorService/CalculatorServicePort)"></binding.ws> - <reference>CalculatorServiceComponent</reference> - </entryPoint> - - <component name="CalculatorServiceComponent"> - <implementation.cpp dll="libCalculatorModule.so" header="CalculatorImpl.h"></implementation.cpp> - <properties> </properties> - <references> - <v:CalculatorDivideService>DivideServiceComponent/DivideService</v:CalculatorDivideService> - </references> - </component> - - <component name="DivideServiceComponent"> - <implementation.cpp dll="libCalculatorModule.so" header="DivideServiceImpl.h"></implementation.cpp> - <properties> </properties> - <references> </references> - </component> -</module>
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/services.xml b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/services.xml deleted file mode 100644 index b5f234e988..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorModule/services.xml +++ /dev/null @@ -1,42 +0,0 @@ - -<!-- - Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> -<service name="Calculator"> - <parameter name="ServiceClass" locked="xsd:false">tuscany_sca_ws_service</parameter> - <parameter name="TuscanySystemRoot" locked="xsd:false">PATH-TO-THE-SYSTEM-ROOT</parameter> - <parameter name="TuscanyEntryPoint" locked="xsd:false">CalculatorSubsystem/CalculatorService/WSCalculatorEntrypoint</parameter> - - <description> - This is a testing service, named 'Calculator' to test multiple operations in the same service - </description> - - <operation name="add"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - - <operation name="sub"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - - <operation name="mul"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - - <operation name="div"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - -</service> diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorSubsystem/sca.subsystem b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorSubsystem/sca.subsystem deleted file mode 100644 index 4b9fdd1511..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/CalculatorSubsystem/sca.subsystem +++ /dev/null @@ -1,23 +0,0 @@ -<?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.
- -->
-
-<subsystem xmlns="http://www.osoa.org/xmlns/sca/0.9" name="CalculatorSubsystem">
-
- <moduleComponent name="CalculatorService" module="CalculatorModule" />
-
-</subsystem>
-
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/Calc.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/Calc.cpp deleted file mode 100644 index 124cf96c63..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/Calc.cpp +++ /dev/null @@ -1,172 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -#include "Calculator.h" -#include "osoa/sca/sca.h" -using namespace osoa::sca; -using namespace std; -#include "tuscany/sca/core/TuscanyRuntime.h" -using namespace tuscany::sca; - -#include <iostream> -#include <stdlib.h> -using namespace std; - - -void usage(); -bool IsNumber(const char *p); - -int main(int argc, char* argv[]) -{ - const char *operation; - float arg1 = 0; - float arg2 = 0; - - if (argc == 4) - { - operation = argv[1]; - - if (!IsNumber(argv[2])) - { - cout << "Calc.exe: Argument 1 is not a number" << endl; - usage(); - } - else - { - arg1 = atof(argv[2]); - } - - if (!IsNumber(argv[3])) - { - cout << "Calc.exe: Argument 2 is not a number" << endl; - usage(); - } - else - { - arg2 = atof(argv[3]); - } - } - else - { - usage(); - } - - try - { - // Set the default module environment variable: <subsystem>/<moduleName> - string systemRoot = getenv("TUSCANY_SCACPP"); - if (systemRoot == "") - { - cout << "TUSCANY_SCACPP environment variable not set" <<endl; - return -1; - } - systemRoot += "/../samples/Calculator/deploy"; - - char *defaultModule = "CalculatorSubsystem/CalculatorService"; - -// TuscanyRuntime rt; -// rt.setSystemRoot(systemRoot); -// rt.setDefaultModuleComponent(defaultModule); -// rt.start(); - - // Locate a service - ModuleContext myContext = ModuleContext::getCurrent(); - Calculator *calcService = (Calculator*) myContext.locateService("CalculatorServiceComponent"); - if (calcService == 0) - { - cout << "Calc.exe: Unable to find Calculator service" << endl; - } - else - { - try - { - float result = 0; - if (strcmp(operation, "add") == 0) - { - result = calcService->add(arg1, arg2); - cout << "Calculator: add(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - if (strcmp(operation, "sub") == 0) - { - result = calcService->sub(arg1, arg2); - cout << "Calculator: sub(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - if (strcmp(operation, "mul") == 0) - { - result = calcService->mul(arg1, arg2); - cout << "Calculator: mul(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - if (strcmp(operation, "div") == 0) - { - result = calcService->div(arg1, arg2); - cout << "Calculator: div(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - { - cout << "Calculator: Unrecognized operation: " << operation << endl; - } - } - catch (char* x) - { - cout << "Calc.exe: exception caught: " << x << endl; - } - } - - } - catch (ServiceRuntimeException& ex) - { - cout << ex << endl; - } - return 0; -} - -void usage() -{ - cout << "Usage: calc add|sub|mul|div arg1 arg2" << endl; - exit(1); -} - -bool IsNumber (const char *p) -{ - int len = strlen(p); - int pointcount = 0; - - if (!isdigit (p[0]) && p[0] != '-' && p[0] != '+') - { - return false; - } - for (int i = 1; i < len; i++) - { - if (!isdigit (p[i])) - { - if (p[i] == '.') - { - if (pointcount > 0) return false; - pointcount++; - } - else - { - return false; - } - } - } - return true; -} diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/Calculator.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/Calculator.h deleted file mode 100644 index 57975548c1..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/Calculator.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * - * Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -#ifndef CALCULATOR_H -#define 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 - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/Makefile.am b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/Makefile.am deleted file mode 100644 index 75052b5bc0..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ -deploydir=$(prefix)/samples/Calculator/deploy -prgbindir=$(deploydir)/bin - -prgbin_PROGRAMS = calculator_client -prgbin_SCRIPTS = runclient.sh -EXTRA_DIST = runclient.sh - -AM_CPPFLAGS = $(CPPFLAGS) -calculator_client_SOURCES = Calc.cpp - -calculator_client_LDADD = -L${TUSCANY_SCACPP}/lib -ltuscany_sca -ltuscany_sca_ws_reference \ - -L${TUSCANY_SDOCPP}/lib -ltuscany_sdo -ltuscany_sdo_axiom \ - -L$(AXIS2C_HOME)/lib \ - -laxis2_util \ - -laxis2_axiom \ - -laxis2_wsdl \ - -laxis2_engine \ - -laxis2_parser \ - -laxis2_minizip \ - -lpthread \ - -laxis2_http_sender \ - -laxis2_http_receiver - - -INCLUDES = -I$(top_builddir)/Calculator/CalculatorModule \ - -I${TUSCANY_SCACPP}/include \ - -I${TUSCANY_SDOCPP}/include diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/readme.txt b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/readme.txt deleted file mode 100644 index 62672483af..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/readme.txt +++ /dev/null @@ -1,64 +0,0 @@ -Tuscany SCA for C++ Samples - Calculator Sample -=============================================== - -This is a very simple sample to show how an SCA module with a single component -can be built and called from an executable. - -There are three sub projects in this workspace: - - CalculatorModule - This contains the source code and SCA artifacts for the SCA module. This - is the module that will be deployed into the SCA runtime. - - CalculatorSubsystem - This contains the sca.subsystem file which describes a subsystem to the - SCA runtime. - - Client - An example client which will call the service exposed by the single component - in the CalculatorModule. - - -Build instructions ------------------- - -Notes: - -The projects are set up to locate SCA and SDO libraries using the environment variables -TUSCANY_SCACPP and TUSCANY_SDOCPP. These must be set before building. - -scagan is a code generation tool written in java. This will need to be built before you -can run it. To build scagen, you must go to the tools/scagen directory, and type "ant". -(You must have apache ant installed, and have a valid java virtual machine installed - -upwards of version 1.4.2). Once scagen has successfully built, it can be run from the -sca/bin directory. - -1) Build the SCA module. - - Set CalculatorModule project as the active project. - Right click->Set as active project - - - Run the SCA generation tool to create the proxy and wrapper classes. - Either Tools->SCA Gen if you have added SCA Gen as an external tool - Or run from the command line: - scagen -dir <projectDirectory> -output <projectDirectory> - where the projectDirectory is the directory with the sca.module file. - - - Rebuild All - Build->Rebuild All - -2) Package and deploy the SCA module - - There is a script file in the sca/samples/Calculator directory which will - copy across all the files needed for deployment to the Tuscany runtime. - On a command line run pack_deploy.cmd - As a default, the sample will be copied to sca/samples/runtime directory - Both the SCA module and the subsystem will be copied. - -3) Build the client - - Set the Client project as the active project. - Right click->Set as active project - - - Rebuild All - Build->Rebuild All - -4) Run the client - - Use the command file in the sca/samples/Calculator/Client directory to run the - client. This command file will set the SCA environment variables before running - the client. For example, - runclient add 4 9 diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/runclient.cmd b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/runclient.cmd deleted file mode 100644 index 1758d12ef5..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/runclient.cmd +++ /dev/null @@ -1,51 +0,0 @@ -@echo off - - -@REM Copyright 2006 The Apache Software Foundation or its licensors, as applicable. -@REM -@REM Licensed under the Apache License, Version 2.0 (the "License"); -@REM you may not use this file except in compliance with the License. -@REM 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, software -@REM distributed under the License is distributed on an "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@REM See the License for the specific language governing permissions and -@REM limitations under the License. - -rem Runs the client after setting the SCA environment variables to use the -rem CalculatorSubsystem -setlocal - -if "%AXIS2C_HOME%" == "" ( -echo "AXIS2C_HOME not set" -goto end -) -echo using Axis2C: %AXIS2C_HOME% - -if "%TUSCANY_SDOCPP%" == "" ( -echo "TUSCANY_SDOCPP not set" -goto end -) -echo using TUSCANY_SDOCPP: %TUSCANY_SDOCPP% - -if "%TUSCANY_SCACPP%" == "" ( -echo "TUSCANY_SCACPP not set" -goto end -) -echo using TUSCANY_SCACPP: %TUSCANY_SCACPP% - -set TUSCANY_SCACPP_SYSTEM_ROOT=%~d0%~p0\..\ - -rem Only need to specify the subsystem (and not the moduleComponent as well) because -rem there is only one moduleComponent in the subsystem - it is a very simple sample. -set TUSCANY_SCACPP_DEFAULT_MODULE=CalculatorSubsystem - -rem Run the client - -set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH% -Client.exe %* -:end -endlocal diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/runclient.sh b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/runclient.sh deleted file mode 100755 index 4dfea2f4a8..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Client/runclient.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh - -# 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. - -APFULLDIR=`pwd` - -if [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -TEST_SYSTEM=$APFULLDIR/../ - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH - -export TUSCANY_SCACPP_SYSTEM_ROOT=$TEST_SYSTEM -export TUSCANY_SCACPP_DEFAULT_MODULE=CalculatorSubsystem - -./calculator_client add 4.7 9 -./calculator_client div 7.2 3.6 -./calculator_client mul 7 6 - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Makefile.am b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Makefile.am deleted file mode 100644 index cbeaeb0f96..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -deploydir=$(prefix)/samples/Calculator/deploy/subsystems/CalculatorSubsystem -SUBDIRS = CalculatorModule Client WSClient -EXTRA_DIST = CalculatorSubsystem -deploy_DATA = CalculatorSubsystem/sca.subsystem
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/Calculator_Client.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/Calculator_Client.cpp deleted file mode 100644 index 5d6cd9e1bb..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/Calculator_Client.cpp +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright 2006 The Apache Software Foundation. - * - * 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 "axis2_Calculator_stub.h" -#include <stdio.h> -#include <axiom.h> -#include <axis2_util.h> -#include <axiom_soap.h> -#include <axis2_client.h> - -axiom_node_t * -build_om_programatically(const axis2_env_t *env, - const axis2_char_t *operation, - const axis2_char_t *param1, - const axis2_char_t *param2); - -int main(int argc, char** argv) -{ - axis2_stub_t *stub = NULL; - axiom_node_t *node = NULL; - axis2_status_t status = AXIS2_FAILURE; - const axis2_env_t *env = NULL; - const axis2_char_t *address = NULL; - const axis2_char_t *client_home = NULL; - axiom_node_t *ret_node = NULL; - - const axis2_char_t *operation = "add"; - const axis2_char_t *param1 = "40"; - const axis2_char_t *param2 = "8"; - - env = axis2_env_create_all( "Calculator_blocking.log", AXIS2_LOG_LEVEL_TRACE); - - client_home = AXIS2_GETENV("AXIS2C_HOME"); - if (!client_home) - client_home = "../../deploy"; - - address = "http://localhost:9090/axis2/services/Calculator"; - if (argc > 1 ) - operation = argv[1]; - if (AXIS2_STRCMP(operation, "-h") == 0) - { - printf("Usage : %s [operation] [param1] [param2] [endpoint_url]\n", argv[0]); - printf("use -h for help\n"); - printf("default operation add\n"); - printf("default param1 %s\n", param1); - printf("default param2 %s\n", param2); - printf("default endpoint_url %s\n", address); - printf("NOTE: command line arguments must appear in given order, with trailing ones being optional\n"); - return 0; - } - if (argc > 2 ) - param1 = argv[2]; - if (argc > 3 ) - param2 = argv[3]; - if (argc > 4 ) - address = argv[4]; - - printf ("Using endpoint : %s\n", address); - printf ("\nInvoking operation %s with params %s and %s\n", operation, param1, param2); - - node = build_om_programatically(env, operation, param1, param2); - stub = - axis2_Calculator_stub_create_with_endpoint_uri_and_client_home(env, address, client_home); - /* create node and invoke Calculator */ - ret_node = axis2_Calculator_stub_add(stub, env, node); - if(ret_node) - { - axis2_char_t *om_str = NULL; - om_str = AXIOM_NODE_TO_STRING(ret_node, env); - if(om_str) - { - printf("\nOM returned = %s\n", om_str); - } - - if (AXIOM_NODE_GET_NODE_TYPE(ret_node, env) == AXIOM_ELEMENT) - { - axis2_char_t *result = NULL; - axiom_node_t *result_node = (axiom_node_t*)AXIOM_NODE_GET_FIRST_CHILD(ret_node, env); - axiom_element_t *data_ele = (axiom_element_t*)AXIOM_NODE_GET_DATA_ELEMENT(result_node, env); - - result = AXIOM_ELEMENT_GET_TEXT(data_ele, env, result_node); - printf( "\nResult = %s\n", result); - } - else - { - axiom_xml_writer_t *writer = NULL; - axiom_output_t *om_output = NULL; - axis2_char_t *buffer = NULL; - writer = axiom_xml_writer_create_for_memory(env, NULL, AXIS2_TRUE, 0, - AXIS2_XML_PARSER_TYPE_BUFFER); - om_output = axiom_output_create (env, writer); - - AXIOM_NODE_SERIALIZE (ret_node, env, om_output); - buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(writer, env); - printf ("\nReceived invalid OM as result : %s\n", buffer); - if(NULL != buffer) - { - AXIS2_FREE(env->allocator, buffer); - buffer = NULL; - } - if(NULL != om_output) - { - AXIOM_OUTPUT_FREE(om_output, env); - om_output = NULL; - } - } - } - else - { - AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:" - " %d :: %s", env->error->error_number, - AXIS2_ERROR_GET_MESSAGE(env->error)); - printf("Calculator stub invoke FAILED!\n"); - } - if (stub) - { - AXIS2_STUB_FREE(stub, env); - } - return status; -} - -axiom_node_t * -build_om_programatically(const axis2_env_t *env, - const axis2_char_t *operation, - const axis2_char_t *param1, - const axis2_char_t *param2) -{ - axiom_node_t *Calculator_om_node = NULL; - axiom_element_t* Calculator_om_ele = NULL; - axiom_node_t* text_om_node = NULL; - axiom_element_t * text_om_ele = NULL; - axiom_namespace_t *ns1 = NULL; - - - axiom_xml_writer_t *xml_writer = NULL; - axiom_output_t *om_output = NULL; - axis2_char_t *buffer = NULL; - - ns1 = axiom_namespace_create (env, "tuscany/c/Calculator", "ns1"); - - Calculator_om_ele = axiom_element_create(env, NULL, operation, ns1, &Calculator_om_node); - - text_om_ele = axiom_element_create(env, Calculator_om_node, "param1", NULL, &text_om_node); - AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, param1, text_om_node); - - text_om_ele = axiom_element_create(env, Calculator_om_node, "param2", NULL, &text_om_node); - AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, param2, text_om_node); - - xml_writer = axiom_xml_writer_create_for_memory(env, NULL, AXIS2_FALSE, AXIS2_FALSE, - AXIS2_XML_PARSER_TYPE_BUFFER); - om_output = axiom_output_create( env, xml_writer); - - AXIOM_NODE_SERIALIZE(Calculator_om_node, env, om_output); - buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(xml_writer, env); - AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "\nSending OM node in XML : %s \n", buffer); - if(NULL != buffer) - { - AXIS2_FREE(env->allocator, buffer); - buffer = NULL; - } - if(NULL != om_output) - { - AXIOM_OUTPUT_FREE(om_output, env); - om_output = NULL; - } - - return Calculator_om_node; -} diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/Makefile.am b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/Makefile.am deleted file mode 100644 index 706c0927b5..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/Makefile.am +++ /dev/null @@ -1,24 +0,0 @@ -deploydir=$(prefix)/samples/Calculator/deploy -prgbindir=$(deploydir)/bin - -prgbin_PROGRAMS = calculator_wsclient -prgbin_SCRIPTS = runwsclient.sh -EXTRA_DIST = runwsclient.sh - -AM_CPPFLAGS = $(CPPFLAGS) -calculator_wsclient_SOURCES = axis2_Calculator_stub.cpp Calculator_Client.cpp -noinst_HEADERS = *.h - -calculator_wsclient_LDADD = -L$(AXIS2C_HOME)/lib \ - -laxis2_util \ - -laxis2_axiom \ - -laxis2_wsdl \ - -laxis2_engine \ - -laxis2_parser \ - -laxis2_minizip \ - -lpthread \ - -laxis2_http_sender \ - -laxis2_http_receiver - - -INCLUDES = -I${AXIS2C_HOME}/include diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/axis2_Calculator_stub.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/axis2_Calculator_stub.cpp deleted file mode 100644 index 8455c0d209..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/axis2_Calculator_stub.cpp +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright 2004,2005 The Apache Software Foundation. - * - * 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 "axis2_Calculator_stub.h" - - -axis2_stub_t * -axis2_Calculator_stub_create_with_endpoint_ref_and_client_home(const axis2_env_t *env, - axis2_endpoint_ref_t *endpoint_ref, - axis2_char_t *client_home) -{ - axis2_stub_t *stub = NULL; - - AXIS2_ENV_CHECK(env, NULL); - - stub = (axis2_stub_t *) - axis2_stub_create_with_endpoint_ref_and_client_home(env, endpoint_ref, - client_home); - if(NULL == stub) - { - AXIS2_ERROR_SET(env->error, - AXIS2_ERROR_NO_MEMORY, (axis2_status_codes)AXIS2_FAILURE); - return NULL; - } - axis2_populate_axis_service( stub, env); - return stub; -} - -void axis2_populate_axis_service( axis2_stub_t* stub, const axis2_env_t *env) -{ - axis2_svc_client_t* svc_client = NULL; - axis2_qname_t *op_qname = NULL; - axis2_svc_t* svc = NULL; - axis2_op_t* op = NULL; - - /*Modifying the Service*/ - svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env ); - svc = (axis2_svc_t*)AXIS2_SVC_CLIENT_GET_AXIS_SERVICE ( svc_client, env ); - - /*creating the operations*/ - - op_qname = axis2_qname_create(env,"add" , "", NULL); - op = axis2_op_create_with_qname(env, op_qname); - AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN); - AXIS2_SVC_ADD_OP(svc, env, op); - - op_qname = axis2_qname_create(env,"sub" , "", NULL); - op = axis2_op_create_with_qname(env, op_qname); - AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN); - AXIS2_SVC_ADD_OP(svc, env, op); - - op_qname = axis2_qname_create(env,"mul" , "", NULL); - op = axis2_op_create_with_qname(env, op_qname); - AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN); - AXIS2_SVC_ADD_OP(svc, env, op); - - op_qname = axis2_qname_create(env,"div" , "", NULL); - op = axis2_op_create_with_qname(env, op_qname); - AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN); - AXIS2_SVC_ADD_OP(svc, env, op); -} - -axis2_stub_t * -axis2_Calculator_stub_create_with_endpoint_uri_and_client_home(const axis2_env_t *env, - const axis2_char_t *endpoint_uri, - const axis2_char_t *client_home) -{ - axis2_stub_t *stub = NULL; - - AXIS2_ENV_CHECK(env, NULL); - - stub = (axis2_stub_t *) - axis2_stub_create_with_endpoint_uri_and_client_home(env, endpoint_uri, - client_home); - if(NULL == stub) - { - AXIS2_ERROR_SET(env->error, - AXIS2_ERROR_NO_MEMORY, (axis2_status_codes)AXIS2_FAILURE); - return NULL; - } - - axis2_populate_axis_service( stub, env); - - return stub; -} - -/***************************Function implementation****************************/ - -axiom_node_t * -axis2_Calculator_stub_add(axis2_stub_t *stub, - const axis2_env_t *env, - axiom_node_t *node) -{ - axis2_svc_client_t *svc_client = NULL; - axiom_node_t *ret_node = NULL; - axis2_qname_t *op_qname = NULL; - - AXIS2_ENV_CHECK(env, AXIS2_FAILURE); - - svc_client = AXIS2_STUB_GET_SVC_CLIENT(stub, env); - op_qname = axis2_qname_create(env, "add" , "", NULL); - ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, node); - - return ret_node; -} - -axiom_node_t * -axis2_Calculator_stub_sub(axis2_stub_t *stub, - const axis2_env_t *env, - axiom_node_t *node) -{ - axis2_svc_client_t *svc_client = NULL; - axiom_node_t *ret_node = NULL; - axis2_qname_t *op_qname = NULL; - - AXIS2_ENV_CHECK(env, AXIS2_FAILURE); - - svc_client = AXIS2_STUB_GET_SVC_CLIENT(stub, env); - op_qname = axis2_qname_create(env, "sub" , "", NULL); - ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, node); - - return ret_node; -} - -axiom_node_t * -axis2_Calculator_stub_mul(axis2_stub_t *stub, - const axis2_env_t *env, - axiom_node_t *node) -{ - axis2_svc_client_t *svc_client = NULL; - axiom_node_t *ret_node = NULL; - axis2_qname_t *op_qname = NULL; - - AXIS2_ENV_CHECK(env, AXIS2_FAILURE); - - svc_client = AXIS2_STUB_GET_SVC_CLIENT(stub, env); - op_qname = axis2_qname_create(env, "mul" , "", NULL); - ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, node); - - return ret_node; -} - -axiom_node_t * -axis2_Calculator_stub_div(axis2_stub_t *stub, - const axis2_env_t *env, - axiom_node_t *node) -{ - axis2_svc_client_t *svc_client = NULL; - axiom_node_t *ret_node = NULL; - axis2_qname_t *op_qname = NULL; - - AXIS2_ENV_CHECK(env, AXIS2_FAILURE); - - svc_client = AXIS2_STUB_GET_SVC_CLIENT(stub, env); - op_qname = axis2_qname_create(env, "div" , "", NULL); - ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, node); - - return ret_node; -} - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/axis2_Calculator_stub.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/axis2_Calculator_stub.h deleted file mode 100644 index 54cce17562..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/axis2_Calculator_stub.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2004,2005 The Apache Software Foundation. - * - * 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 AXIS2_ECHO_STUB_H -#define AXIS2_ECHO_STUB_H - -/** - * @file axis2_Calculator_stub.h - * @brief axis2 Calculator stub interface - */ - -#include <axis2_stub.h> - -#ifdef __cplusplus -extern "C" -{ -#endif - -axiom_node_t * -axis2_Calculator_stub_add(axis2_stub_t *stub, - const axis2_env_t *env, - axiom_node_t *node); - -axiom_node_t * -axis2_Calculator_stub_sub(axis2_stub_t *stub, - const axis2_env_t *env, - axiom_node_t *node); - -axiom_node_t * -axis2_Calculator_stub_mul(axis2_stub_t *stub, - const axis2_env_t *env, - axiom_node_t *node); - -axiom_node_t * -axis2_Calculator_stub_div(axis2_stub_t *stub, - const axis2_env_t *env, - axiom_node_t *node); -/** - * populate services - */ -void axis2_populate_axis_service( axis2_stub_t* stub, const axis2_env_t *env); - -/** - * Creates axis2_stub struct - * @param endpoint reference - * @return pointer to newly created axis2_stub struct - */ -axis2_stub_t * -axis2_Calculator_stub_create_with_endpoint_ref_and_client_home(const axis2_env_t *env, - axis2_endpoint_ref_t *endpoint_ref, - axis2_char_t *client_home); - -/** - * Creates axis2_stub struct - * @param endpoint uri - * @return pointer to newly created axis2_stub struct - */ -axis2_stub_t * -axis2_Calculator_stub_create_with_endpoint_uri_and_client_home(const axis2_env_t *env, - const axis2_char_t *endpoint_uri, - const axis2_char_t *client_home); -/** @} */ - -#ifdef __cplusplus -} -#endif -#endif /* AXIS2_ECHO_STUB_H */ diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/runwsclient.cmd b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/runwsclient.cmd deleted file mode 100644 index ba387a4bab..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/runwsclient.cmd +++ /dev/null @@ -1,28 +0,0 @@ -@echo off - -@REM Copyright 2006 The Apache Software Foundation or its licensors, as applicable. -@REM -@REM Licensed under the Apache License, Version 2.0 (the "License"); -@REM you may not use this file except in compliance with the License. -@REM 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, software -@REM distributed under the License is distributed on an "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@REM See the License for the specific language governing permissions and -@REM limitations under the License. - -setlocal - -if "%AXIS2C_HOME%" == "" ( -echo "AXIS2C_HOME not set" -goto end -) -echo using Axis2C: %AXIS2C_HOME%" - -rem Run the client -WSClient.exe %* -:end -endlocal diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/runwsclient.sh b/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/runwsclient.sh deleted file mode 100755 index 2e8e79fc9c..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Calculator/WSClient/runwsclient.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -# 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. - -APFULLDIR=`pwd` - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -export LD_LIBRARY_PATH=$AXIS2C_HOME/lib:$LD_LIBRARY_PATH - -./calculator_wsclient add 4.7 9 -./calculator_wsclient div 7.2 3.6 -./calculator_wsclient mul 7 6 - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ChangeLog b/tags/cpp-0.1.incubating-M1-final/sca/samples/ChangeLog deleted file mode 100644 index e69de29bb2..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ChangeLog +++ /dev/null diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/GettingStarted.html b/tags/cpp-0.1.incubating-M1-final/sca/samples/GettingStarted.html deleted file mode 100644 index 604de50ff9..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/GettingStarted.html +++ /dev/null @@ -1,261 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<HTML> -<HEAD> - <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"> - <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type"> - <STYLE MEDIA="all" TYPE="text/css"> -@import url("../doc/css/maven-base.css"); -@import url("../doc/css/maven-theme.css"); - </STYLE> - - <LINK HREF="../doc/css/maven-theme.css" MEDIA="print" REL="stylesheet" - TYPE="text/css"> - <TITLE>Tuscany SCA C++ Samples - Getting Started</TITLE> -</HEAD> - -<BODY> -<DIV ID="bodyColumn"> - <DIV ID="contentBox"> - <DIV CLASS="section"> - <H2>Tuscany Samples - Getting Started - SCA C++ Milestone release 1</H2> - - <P>Tuscany SCA C++ includes a simple technology sample that demonstrates some of the functionality of - the Tuscany SCA C++ runtime. This page describes what is needed to install and run the sample. - </P> - </DIV> - - <DIV CLASS="section"> - <H2>Contents</H2> - <OL> - <LI><A HREF="#linuxbld">Building the samples on Linux</A></LI> - <LI><A HREF="#linuxrun">Running the samples on Linux:</A></LI> - <UL> - <LI><A HREF="#linuxcalcbasic">Calculator with basic client</A></LI> - <LI><A HREF="#linuxcalcws">Calculator with Web Service client</A></LI> - </UL> - <LI><A HREF="#winbld">Building the samples on Windows</A></LI> - <LI><A HREF="#winrun">Running the samples on Windows:</A></LI> - <UL> - <LI><A HREF="#wincalcbasic">Calculator with basic client</A></LI> - <LI><A HREF="#wincalcws">Calculator with Web Service client</A></LI> - </UL> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="linuxbld"><H2>Building the samples on Linux</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#linuxrun">Running the samples on Linux</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI> - </UL></LI> - </LI> - <LI>Build the source with the following command sequence: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples</LI> - <LI>./configure</LI> - <LI>make</LI> - <LI>make install</LI> - </UL> - NOTE: If you don't provide a --prefix configure option, it will by default install into - /usr/local/tuscany/sca/samples/Calculator</LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="linuxrun"><H2>Running the samples on Linux</H2></A> - <A NAME="linuxcalcbasic"><H3>Calculator with basic client</H3></A> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI> - <LI>./runclient.sh</LI> - </UL> - </LI> - </OL> - <A NAME="linuxcalcws"><H3>Calculator with Web Service client</H3></A> - <OL> - <LI>Deploy the Calculator as an Axis2C service: - <OL> - <LI>Create a new service folder in axis2:<BR/> - <AXIS2C_HOME>/services/Calculator</LI> - <LI>Copy the <TUSCANY_SCACPP>/samples/Calculator/CalculatorModule/services.xml - to <AXIS2C_HOME>/services/Calculator/services.xml</LI> - <LI>Edit the <AXIS2C_HOME>/services/Calculator/services.xml file to set the TuscanySystemRoot parameter to<BR/> - <parameter name="TuscanySystemRoot" locked="xsd:false"><tuscany_sca_install_dir>/samples/Calculator/deploy</parameter><BR/> - replacing <tuscany_sca_install_dir> with the install path of Tuscany SCA</LI> - <LI>Copy the <TUSCANY_SCACPP>/lib/libtuscany_sca_ws_service.so library into <AXIS2C_HOME>/services/Calculator</LI> - </OL> - </LI> - <LI>Start the Axis2C simple http server: - <OL> - <LI>cd <AXIS2C_HOME>/bin</LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI> - </UL> - </LI> - <LI>Add <TUSCANY_SCACPP>/lib, <TUSCANY_SDOCPP>/lib and <AXIS2C_HOME>/lib - to the LD_LIBRARY_PATH environment variable - </LI> - <LI>./axis2_http_server</LI> - </OL> - </LI> - <LI>Run the client: - <OL> - <LI>The following environment variable is required: - <UL> - <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI> - <LI>./runwsclient.sh</LI> - </OL> - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winbld"><H2>Building the samples on Windows</H2></A> - <P>If using the binary distribution the samples are built and installed in - <tuscany_sca_install_dir>/samples - go directly to <A HREF="#winrun">Running the samples on Windows</A>.</P> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO> - <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI> - </UL></LI> - </LI> - <LI>You must have set up the environment for Microsoft Visual C++ tools. - The build command will call vcvars32 to set the environment. Ensure the - directory containing this is on your path. This will be where you - installed the compiler. - </LI> - <LI>Build the source, either via the Visual Studio 6 or 7 projects under - <tuscany_sca_install_dir>\samples\ides or via the command-line build file - found at <tuscany_sca_install_dir>\samples\ides\devstudio6\projects\Calculator\build.cmd - which will build and deploy the samples. - </LI> - </OL> - </DIV> - - <DIV CLASS="section"> - <A NAME="winrun"><H2>Running the samples on Windows</H2></A> - <A NAME="wincalcbasic"><H3>Calculator with basic client</H3></A> - <OL> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI> - </UL> - </LI> - <LI>Run the sample with the following commands: - <UL> - <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI> - <LI>runclient add 5 6<BR/> - (can also use sub, div, mul).</LI> - </UL> - </LI> - </OL> - <A NAME="wincalcws"><H3>Calculator with Web Service client</H3></A> - <OL> - <LI>Deploy the Calculator as an Axis2C service: - <OL> - <LI>Create a new service folder in axis2:<BR/> - <AXIS2C_HOME>/services/Calculator</LI> - <LI>Copy the <TUSCANY_SCACPP>/samples/Calculator/CalculatorModule/services.xml - to <AXIS2C_HOME>/services/Calculator/services.xml</LI> - <LI>Edit the <AXIS2C_HOME>/services/Calculator/services.xml file to set the TuscanySystemRoot parameter to<BR/> - <parameter name="TuscanySystemRoot" locked="xsd:false"><TUSCANY_SCACPP>/samples/Calculator/deploy</parameter><BR/> - replacing <TUSCANY_SCACPP> with the install path of Tuscany SCA</LI> - <LI>Copy the <TUSCANY_SCACPP>/lib/tuscany_sca_ws_service.dll (and .pdb if debugging) file(s) - into <AXIS2C_HOME>/services/Calculator</LI> - </OL> - </LI> - <LI>Start the Axis2C simple http server: - <OL> - <LI>cd <AXIS2C_HOME>/bin</LI> - <LI>The following environment variables are required: - <UL> - <LI>TUSCANY_SCACPP=<path to installed Tuscany SCA></LI> - <LI>TUSCANY_SDOCPP=<path to installed Tuscany SDO></LI> - <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI> - </UL> - </LI> - <LI>Add <TUSCANY_SCACPP>\bin, <TUSCANY_SDOCPP>\bin and <AXIS2C_HOME>/lib - to the PATH environment variable - </LI> - <LI>axis2_http_server</LI> - </OL> - </LI> - <LI>Run the client: - <OL> - <LI>The following environment variable is required: - <UL> - <LI>AXIS2C_HOME=<path to axis2c version 0.92></LI> - </UL> - </LI> - <LI>cd <tuscany_sca_install_dir>/samples/Calculator/deploy/bin</LI> - <LI>runwsclient</LI> - </OL> - </LI> - </OL> - </DIV> - - - <DIV CLASS="section"> - <A NAME="help"><H2>Getting Help</H2></A> - - <P>First place to look is at the Tuscany FAQ at - <A HREF="http://incubator.apache.org/tuscany/faq.html" - TARGET="_blank">http://incubator.apache.org/tuscany/faq.html</A> </P> - - <P>Any problem with this release can be reported to the Tuscany - <A HREF="http://incubator.apache.org/tuscany/mail-lists.html" - TARGET="_blank">mailing lists</A> or create a JIRA issue at <A HREF="http://issues.apache.org/jira/browse/Tuscany" - TARGET="_blank">http://issues.apache.org/jira/browse/Tuscany</A>.</P> - - - <P> </P> - - <P> </P> - - <P> </P> - <TABLE CLASS="bodyTable"> - <TBODY> - <TR CLASS="a"> - <TD> - - <P>Thank you for your interest in Tuscany.</P> <STRONG><EM>-The - Tuscany Development Team</EM></STRONG> - - <P></P> - - </TD> - </TR> - </TBODY> - </TABLE> - - <P></P> - </DIV> - </DIV> -</DIV> -</BODY> - -</HTML> diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/INSTALL b/tags/cpp-0.1.incubating-M1-final/sca/samples/INSTALL deleted file mode 100644 index 2a6a072bf5..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/INSTALL +++ /dev/null @@ -1,2 +0,0 @@ -Please read the GettingStarted.html document for information on -building and installing the Tuscany SCA for C++ samples diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/LICENSE b/tags/cpp-0.1.incubating-M1-final/sca/samples/LICENSE deleted file mode 100755 index f433b1a53f..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/LICENSE +++ /dev/null @@ -1,177 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/Makefile.am b/tags/cpp-0.1.incubating-M1-final/sca/samples/Makefile.am deleted file mode 100644 index 2531254930..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -SUBDIRS = Calculator - -EXTRA_DIST = GettingStarted.html diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/Client/Makefile.am b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/Client/Makefile.am deleted file mode 100644 index b1586cc752..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/Client/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -prgbindir=$(prefix)/samples/bin -prgbin_PROGRAMS = MyValueClient - -MyValueClient_SOURCES = MyValueClient.cpp - -MyValueClient_LDADD = -L$(top_builddir)/runtime/core/src -ltuscany_sca \ - -L${TUSCANY_SDOCPP}/lib -ltuscany_sdo -lxml2 - -INCLUDES = -I.. \ - -I$(top_builddir)/runtime/core/src \ - -I${TUSCANY_SDOCPP}/include diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/Client/MyValueClient.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/Client/MyValueClient.cpp deleted file mode 100755 index 1e5c038e2e..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/Client/MyValueClient.cpp +++ /dev/null @@ -1,179 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#pragma warning(disable: 4786) - -#include "commonj/sdo/Logger.h" -#include "commonj/sdo/SDO.h" -#include "commonj/sdo/HelperProvider.h" -#include "osoa/sca/sca.h" -#include "tuscany/sca/util/Logger.h" -#include "tuscany/sca/util/Utils.h" -#include <iostream> - -using namespace std; -using namespace osoa::sca; -using namespace tuscany::sca; -using namespace commonj::sdo; -using namespace tuscany::sca::ws; - -void usage(); - -// -// MyValueClient is a sample application that invokes operations on the -// MyValueService Web Service. -// -int main(int argc, char* argv[]) -{ - - // - // Schema file for the types used by MyValueService - // - char *pszXSD; - - // - // The WebService endpoint uri. - // - char *pszEndpoint; - - // - // TargetNamespace - // - const char *pszTargetNamespace; - - // - // SOAPAction - // - // Axis 1.5: SoapAction must be <serviceName>#<operationName>. - const char *pcszSoapAction = "MyValueService#getMyValue"; - - // - // Operation Name - // - const char *pcszOperationName = "getMyValue"; - - // - // Operation Response Name - // - const char *pcszOperationResponseName = "getMyValueResponse"; - - - // Get the input parameters. - if (argc == 3) - { - // Schema file. - pszXSD = argv[1]; - // Web Service endpoint. - pszEndpoint = argv[2]; - } - else - { - usage(); - } - - // The current version of SDO does not support the embedded schema in the wsdl file, - // so we have to load an external schema. - XSDHelperPtr xsdHelper = HelperProvider::getXSDHelper(); - - try - { - cout << "define file: " << pszXSD <<endl; - pszTargetNamespace = xsdHelper->defineFile(pszXSD); - } - catch (SDORuntimeException ex) - { - cout << ex << endl; - exit(1); - } - cout << "define file done: " << pszTargetNamespace <<endl; - - - // Create an SDO for the request - DataFactoryPtr factory = xsdHelper->getDataFactory(); - DataObjectPtr requestDO = 0; - - try - { - // Create the root element for the operation and then add the parameters - // we need to invoke the operation. - requestDO = factory->create(pszTargetNamespace, pcszOperationName); - requestDO->setCString("customerID", "12345"); - } - catch (SDORuntimeException e) - { - cout << "SDORuntimeException: " << e << endl; - exit(1); - } - - // - // Create an SDOStub that will use the request SDO to invoke the operation. - // - SDOStub *stub = new SDOStub(); - stub->setEndpoint(pszEndpoint); - stub->setOperationName(pcszOperationName); - stub->setTargetNamespace(pszTargetNamespace); - stub->setOperationResponseName(pcszOperationResponseName); - stub->setSoapAction(pcszSoapAction); - // DEBUG - Don't let the soap transport timeout while debugging. - stub->setTransportTimeout(0); - // DEBUG - - try - { - // Invoke the operation. - DataObjectPtr responseDO = stub->invoke(requestDO, factory); - // Print the response. - if (responseDO != 0) - { - cout << "MyValueClient: response DataObject = " << endl; - Utils::printDO(responseDO); - cout << endl; - float fValue = responseDO->getFloat("myValue"); - cout << "MyValueClient: myValue = " << fValue; - } - else - { - cout << "MyValueClient: MyValueService did not return a result" << endl; - } - } - catch (SDORuntimeException& e) - { - cout << "SDORuntimeException: " << e << endl; - } - catch (ServiceRuntimeException& e) - { - cout << "ServiceRuntimeException: " << e << endl; - } - catch(exception& e) - { - cout << "Exception: " << e.what() << endl; - } - - - return 0; -} - -// -// Print usage message. -// -void usage() -{ - cout << "MyValueClient.exe: Invoke operations on MyValueService Web Service" << endl; - cout << "Usage: MyValueClient XSD endpoint" << endl; - cout << "where XSD = path and name of XSD file that defines the MyValue types" << endl; - cout << " endpoint = web service endpoint" << endl; - exit(1); -} diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/Makefile.am b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/Makefile.am deleted file mode 100644 index 7541093280..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -SUBDIRS = MyValueModule Client - -deploy_dir = $(top_builddir)/samples/runtime -deploy_module = $(deploy_dir)/modules/MyValueModule - -install-exec-local: - cp MyValueSubsystem/sca.subsystem $(deploy_dir)/subsystems/MyValueSubsystem - cp MyValueModule/sca.module $(deploy_module) - cp MyValueModule/CustomerInfo.fragment $(deploy_module) - cp MyValueModule/Tuscany-model.config $(deploy_module) - cp MyValueModule/CustomerInfo/CustomerInfoImpl.componentType $(deploy_module)/CustomerInfo - cp MyValueModule/CustomerInfo/.libs/libCustomerInfo.so $(deploy_module)/CustomerInfo - cp MyValueModule/CustomerInfo/CustomerInfo.h $(deploy_module)/CustomerInfo - cp MyValueModule/CustomerInfo/CustomerInfoImpl.h $(deploy_module)/CustomerInfo - cp MyValueModule/MyValue/MyValueImpl.componentType $(deploy_module)/MyValue - cp MyValueModule/MyValue/MyValue.h $(deploy_module)/MyValue - cp MyValueModule/MyValue/MyValueImpl.h $(deploy_module)/MyValue - cp MyValueModule/MyValue/MyValueService.wsdl $(deploy_module)/MyValue - cp MyValueModule/MyValue/.libs/libMyValue.so $(deploy_module)/MyValue - cp MyValueModule/StockQuoteService/StockQuoteService.h $(deploy_module)/StockQuoteService - cp MyValueModule/StockQuoteService/StockQuoteService.wsdl $(deploy_module)/StockQuoteService - - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo.fragment b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo.fragment deleted file mode 100755 index b7f79799b5..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo.fragment +++ /dev/null @@ -1,36 +0,0 @@ -<?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.
- -->
-
-<moduleFragment xmlns="http://www.osoa.org/xmlns/sca/0.9"
- xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- xmlns:mvs="http://www.myvalue.org/MyValueService/"
- name="CustomerInfoComponent">
-
-
- <component name="CustomerInfoComponent">
- <implementation.cpp dll="CustomerInfo/libCustomerInfo.so" header="CustomerInfo/CustomerInfoImpl.h"></implementation.cpp>
- <properties>
- <v:Fred>x</v:Fred>
- <v:Joe>23</v:Joe>
- <Joe>42</Joe>
- </properties>
- <references>
- </references>
- </component>
-
-</moduleFragment>
-
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfo.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfo.h deleted file mode 100755 index 766fc55fe6..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfo.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* $Rev$ $Date$ */ - -#ifndef CustomerInfo_h -#define CustomerInfo_h - -class CustomerInfo -{ -public: - virtual const char* getCustomerInformation(const char* customerID) = 0; - -}; - -#endif diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.componentType b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.componentType deleted file mode 100755 index 52988cb90a..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.componentType +++ /dev/null @@ -1,30 +0,0 @@ -<?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="CustomerInfoService">
- <interface.cpp header="CustomerInfo/CustomerInfo.h">
- </interface.cpp>
- </service>
-
- <property name="Fred" type="xs:string"/>
- <property name="Joe" type="xs:integer" many="true"/>
-
-</componentType>
-
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.cpp deleted file mode 100755 index ed3ff5e2ff..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.cpp +++ /dev/null @@ -1,79 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* $Rev$ $Date$ */ - -#include "CustomerInfoImpl.h" -#include <ostream> -#include <string.h> -#include "osoa/sca/sca.h" -#include "commonj/sdo/DataObjectInstance.h" -using namespace osoa::sca; -using namespace commonj::sdo; - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CustomerInfoImpl::CustomerInfoImpl() -{ - cout << "Construct CustomerInfoImpl" << endl; - -} - -CustomerInfoImpl::~CustomerInfoImpl() -{ - cout << "Destroy CustomerInfoImpl" << endl; -} - -////////////////////////////////////////////////////////////////////// -// Other methods -////////////////////////////////////////////////////////////////////// -const char* CustomerInfoImpl::getCustomerInformation(const char* customerID) -{ - cout << "In getCustomerInformation with customerid: " << customerID << endl; - - - - ComponentContext myContext = ComponentContext::getCurrent(); - - DataObjectInstance properties = myContext.getProperties(); - DataObjectInstance props2 = properties; - if (properties) - { - const char* fredVal = properties->getCString("Fred"); - cout << "Property Fred value: " << fredVal <<endl; - - - DataObjectList& joeList = properties->getList("Joe"); - for (int i=0; i<joeList.size();i++) - { - cout << "Property Joe value " << i << ": " << joeList.getInteger(i) <<endl; - } - } - - if (!strcmp("12345", customerID)) - { - return "IBM"; - } - else - { - throw "Wobbler"; - } - - -} diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.h deleted file mode 100755 index c943b1d666..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* $Rev$ $Date$ */ - -#ifndef CustomerInfoImpl_h -#define CustomerInfoImpl_h - -#include "CustomerInfo.h" - - - -class CustomerInfoImpl : public CustomerInfo -{ -public: - CustomerInfoImpl(); - virtual ~CustomerInfoImpl(); - virtual const char* getCustomerInformation(const char* customerID); - -}; - -#endif diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/Makefile.am b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/Makefile.am deleted file mode 100644 index 78161c429c..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/CustomerInfo/Makefile.am +++ /dev/null @@ -1,15 +0,0 @@ -lib_LTLIBRARIES = libCustomerInfo.la - -libCustomerInfo_la_SOURCES = \ -CustomerInfoImpl.cpp \ -CustomerInfoImpl_CustomerInfoService_Proxy.cpp \ -CustomerInfoImpl_CustomerInfoService_Wrapper.cpp - -libCustomerInfo_la_LIBADD = -L$(top_builddir)/runtime/core/src -ltuscany_sca \ - -L${TUSCANY_SDOCPP}/lib -ltuscany_sdo - -INCLUDES = -I.. \ - -I$(top_builddir)/runtime/core/src \ - -I${TUSCANY_SDOCPP}/include - -install:
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/Makefile.am b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/Makefile.am deleted file mode 100644 index 7d57c06f3d..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -SUBDIRS = CustomerInfo MyValue - -BUILT_SOURCES = scagen - -scagen: - cd $(top_builddir)/bin && \ - ./scagen.sh -dir $(prefix)/samples/MyValue/MyValueModule -output $(prefix)/samples/MyValue/MyValueModule - mv CustomerInfoImpl_* CustomerInfo - mv MyValueImpl_* MyValue - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/Makefile.am b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/Makefile.am deleted file mode 100644 index 85e1077998..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -lib_LTLIBRARIES = libMyValue.la - -libMyValue_la_SOURCES = \ -MyValueImpl.cpp \ -MyValueImpl_customerInfo_Proxy.cpp \ -MyValueImpl_MyValueService_Proxy.cpp \ -MyValueImpl_MyValueService_Wrapper.cpp \ -MyValueImpl_stockQuote_Proxy.cpp - -libMyValue_la_LIBADD = -L$(top_builddir)/runtime/core/src -ltuscany_sca \ - -L${TUSCANY_SDOCPP}/lib -ltuscany_sdo - -INCLUDES = -I.. \ - -I$(top_builddir)/runtime/core/src \ - -I${TUSCANY_SDOCPP}/include - -install:
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValue.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValue.h deleted file mode 100755 index 3efa7ecc61..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValue.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef MyValue_h -#define MyValue_h - -#include "commonj/sdo/SDO.h" -using commonj::sdo::DataObjectPtr; - -class MyValue -{ -public: - virtual DataObjectPtr getMyValue(DataObjectPtr inDataObject) = 0; -}; - -#endif diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.componentType b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.componentType deleted file mode 100755 index 16530400b5..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.componentType +++ /dev/null @@ -1,36 +0,0 @@ -<?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="MyValueService">
- <interface.cpp header="MyValue/MyValue.h">
- </interface.cpp>
- </service>
-
- <reference name="customerInfo">
- <interface.cpp header="CustomerInfo/CustomerInfo.h">
- </interface.cpp>
- </reference>
-
- <reference name="stockQuote">
- <interface.cpp header="StockQuoteService/StockQuoteService.h">
- </interface.cpp>
- </reference>
-
-</componentType>
-
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.cpp b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.cpp deleted file mode 100755 index 4a2d64ea6d..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.cpp +++ /dev/null @@ -1,143 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// -// MyValueImpl.cpp: implementation of the MyValueImpl class. -// - -#include "commonj/sdo/HelperProvider.h" -#include "commonj/sdo/SDO.h" -#include "osoa/sca/sca.h" -#include "MyValueImpl.h" -#include "CustomerInfo/CustomerInfo.h" -#include "StockQuoteService/StockQuoteService.h" -#include <iostream> - -using namespace std; -using namespace osoa::sca; -using namespace commonj::sdo; - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -MyValueImpl::MyValueImpl() -{ - cout << "Construct MyValueImpl" << endl; - -} - -MyValueImpl::~MyValueImpl() -{ - cout << "Destroy MyValueImpl" << endl; -} - -////////////////////////////////////////////////////////////////////// -// Other methods -////////////////////////////////////////////////////////////////////// -DataObjectPtr MyValueImpl::getMyValue(DataObjectPtr inDataObject) -{ - DataObjectPtr responseDO = 0; - - string customerID = inDataObject->getCString("customerID"); - cout << "In getMyValue with customerid: " << customerID << endl; - - // Get the CustomerInfo service. - ComponentContext myContext = ComponentContext::getCurrent(); - CustomerInfo* customerInfoService = (CustomerInfo*)myContext.getService("customerInfo"); - - if (customerInfoService == 0) - { - cout << "Unable to find customer info service" << endl; - - return responseDO; - } - - // Get the name of the stock for customer 'customerID' from the customerInfoService. - const char * stock; - try - { - stock = customerInfoService->getCustomerInformation(customerID.c_str()); - } - catch(const char* x) - { - cout << "Exception caught: " << x <<endl; - throw; - } - - - // Check that we get the same stock back when iterating over the customerInfo services. - ServiceList serviceList = myContext.getServices("customerInfo"); - for (int i=0; i<serviceList.size();i++) - { - CustomerInfo* service = (CustomerInfo*)(serviceList[i]); - stock = service->getCustomerInformation(customerID.c_str()); - cout << "Stock from getServices " << i << " : " << stock <<endl; - - } - - // Use a second SCA reference to get the stock price for the customer's stock. - StockQuoteService* stockQuoteService = (StockQuoteService*)myContext.getService("stockQuote"); - - if (stockQuoteService == 0) - { - cout << "Unable to find stock quote service" << endl; - - return responseDO; - } - - // Create a data object representing the requests (use dynamic API until static is available) - DataObjectPtr stockQuoteRequestDO; - DataFactoryPtr factory; - try - { - // Create the request DO for the StockQuoteService. - factory = myContext.getDataFactory(); - stockQuoteRequestDO = factory->create("http://swanandmokashi.com", "GetQuotes"); - stockQuoteRequestDO->setCString("QuoteTicker", stock); - - // Invoke the StockQuoteService - DataObjectPtr stockQuoteResponseDO = stockQuoteService->GetStockQuotes(stockQuoteRequestDO); - - // DEBUG (Print the response from the StockQuoteService) - XMLHelperPtr xmlHelper = HelperProvider::getXMLHelper(factory);; - XMLDocumentPtr responseDoc = - xmlHelper->createDocument(stockQuoteResponseDO, "http://swanandmokashi.com", "GetQuotesResponse"); - responseDoc->setXMLDeclaration(false); - char *responseXML = xmlHelper->save(responseDoc); - cout << "Response XML from StockQuoteService = " << endl; - cout << responseXML << endl; - cout << endl; - // DEBUG - - // Create the MyValueService response DataObject using the results of the StockQuoteService. - responseDO = factory->create("http://www.myvalue.org/MyValueService/", "getMyValueResponse"); - DataObjectPtr getQuotesResultDO = stockQuoteResponseDO->getDataObject("GetQuotesResult"); - DataObjectList& quoteList = getQuotesResultDO->getList("Quote"); - float fQuote = quoteList[0]->getFloat("StockQuote"); - - responseDO->setFloat("myValue", fQuote); - } - catch (SDORuntimeException sdoE) - { - cout << sdoE; - } - - return responseDO; - -} - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.h deleted file mode 100755 index 05aa7066c1..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef MyValueImpl_h -#define MyValueImpl_h - -#include "MyValue.h" - - -class MyValueImpl : public MyValue -{ -public: - MyValueImpl(); - virtual ~MyValueImpl(); - virtual DataObjectPtr getMyValue(DataObjectPtr inDataObject); -}; - -#endif diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.wsdl b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.wsdl deleted file mode 100755 index 3bc1a12d5c..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.wsdl +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<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://www.myvalue.org/MyValueService/"
- targetNamespace="http://www.myvalue.org/MyValueService/">
- <types>
- <xs:schema targetNamespace="http://www.myvalue.org/MyValueService/"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:tns="http://www.myvalue.org/MyValueService/"
- elementFormDefault="qualified">
-
- <xs:element name="getMyValue">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="customerID" type="xs:string" minOccurs="1"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="getMyValueResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="myValue" type="xs:float" minOccurs="1"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- </xs:schema>
- </types>
-
- <message name="getMyValueRequestMsg">
- <part name="body" element="tns:getMyValue"/>
- </message>
-
- <message name="getMyValueResponseMsg">
- <part name="body" element="tns:getMyValueResponse"/>
- </message>
-
- <portType name="MyValueServicePortType">
- <operation name="getMyValue">
- <input message="tns:getMyValueRequestMsg"/>
- <output message="tns:getMyValueResponseMsg"/>
- </operation>
- </portType>
-
- <binding name="MyValueServiceBinding" type="tns:MyValueServicePortType">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <operation name="getMyValue">
- <soap:operation soapAction="MyValueService#getMyValue"/>
- <input>
- <soap:body use="literal"/>
- </input>
- <output>
- <soap:body use="literal"/>
- </output>
- </operation>
- </binding>
-
- <service name="MyValueService">
- <port name="MyValueServicePort" binding="tns:MyValueServiceBinding">
- <soap:address location="http://localhost/axis/MyValueService"/>
- </port>
- </service>
-</definitions>
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.xsd b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.xsd deleted file mode 100755 index bf41ea511a..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.xsd +++ /dev/null @@ -1,39 +0,0 @@ - -<!-- - Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<xs:schema targetNamespace="http://www.myvalue.org/MyValueService/" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://www.myvalue.org/MyValueService/" - elementFormDefault="qualified"> - - <xs:element name="getMyValue"> - <xs:complexType> - <xs:sequence> - <xs:element name="customerID" type="xs:string" minOccurs="1"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="getMyValueResponse"> - <xs:complexType> - <xs:sequence> - <xs:element name="myValue" type="xs:float" minOccurs="1"/> - </xs:sequence> - </xs:complexType> - </xs:element> - -</xs:schema> diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.h b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.h deleted file mode 100755 index 7da4069bd1..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* $Rev$ $Date$ */ - -#ifndef StockQuoteService_h -#define StockQuoteService_h -#include <string> -#include "commonj/sdo/SDO.h" -using std::string; -class StockQuoteService -{ -public: - virtual commonj::sdo::DataObjectPtr GetStockQuotes(commonj::sdo::DataObjectPtr request) = 0; - -}; - -#endif // StockQuoteService_h diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.wsdl b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.wsdl deleted file mode 100755 index 4917cde583..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.wsdl +++ /dev/null @@ -1,157 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?>
-<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:s="http://www.w3.org/2001/XMLSchema"
- xmlns:s0="http://swanandmokashi.com"
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
- xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
- targetNamespace="http://swanandmokashi.com"
- xmlns="http://schemas.xmlsoap.org/wsdl/">
- <types>
- <s:schema elementFormDefault="qualified"
- targetNamespace="http://swanandmokashi.com"
- xmlns:s="http://www.w3.org/2001/XMLSchema">
- <s:element name="GetQuotes">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1"
- name="QuoteTicker" type="s:string" />
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:element name="GetQuotesResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1"
- name="GetQuotesResult" type="s0:ArrayOfQuote" />
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:complexType name="ArrayOfQuote">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="unbounded"
- name="Quote" type="s0:Quote" />
- </s:sequence>
- </s:complexType>
- <s:complexType name="Quote">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1"
- name="CompanyName" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="StockTicker" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="StockQuote" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="LastUpdated" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1" name="Change"
- type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="OpenPrice" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="DayHighPrice" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="DayLowPrice" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1" name="Volume"
- type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="MarketCap" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="YearRange" type="s:string" />
- </s:sequence>
- </s:complexType>
- <s:element name="ArrayOfQuote" nillable="true"
- type="s0:ArrayOfQuote" />
- </s:schema>
- </types>
- <message name="GetQuotesSoapIn">
- <part name="parameters" element="s0:GetQuotes" />
- </message>
- <message name="GetQuotesSoapOut">
- <part name="parameters" element="s0:GetQuotesResponse" />
- </message>
- <message name="GetQuotesHttpGetIn">
- <part name="QuoteTicker" type="s:string" />
- </message>
- <message name="GetQuotesHttpGetOut">
- <part name="Body" element="s0:ArrayOfQuote" />
- </message>
- <message name="GetQuotesHttpPostIn">
- <part name="QuoteTicker" type="s:string" />
- </message>
- <message name="GetQuotesHttpPostOut">
- <part name="Body" element="s0:ArrayOfQuote" />
- </message>
- <portType name="StockQuotesSoap">
- <operation name="GetStockQuotes">
- <input name="GetQuotes" message="s0:GetQuotesSoapIn" />
- <output name="GetQuotes" message="s0:GetQuotesSoapOut" />
- </operation>
- </portType>
- <portType name="StockQuotesHttpGet">
- <operation name="GetStockQuotes">
- <input name="GetQuotes" message="s0:GetQuotesHttpGetIn" />
- <output name="GetQuotes" message="s0:GetQuotesHttpGetOut" />
- </operation>
- </portType>
- <portType name="StockQuotesHttpPost">
- <operation name="GetStockQuotes">
- <input name="GetQuotes" message="s0:GetQuotesHttpPostIn" />
- <output name="GetQuotes" message="s0:GetQuotesHttpPostOut" />
- </operation>
- </portType>
- <binding name="StockQuotesSoap" type="s0:StockQuotesSoap">
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
- style="document" />
- <operation name="GetStockQuotes">
- <soap:operation
- soapAction="http://swanandmokashi.com/GetQuotes" style="document" />
- <input name="GetQuotes">
- <soap:body use="literal" />
- </input>
- <output name="GetQuotes">
- <soap:body use="literal" />
- </output>
- </operation>
- </binding>
- <binding name="StockQuotesHttpGet" type="s0:StockQuotesHttpGet">
- <http:binding verb="GET" />
- <operation name="GetStockQuotes">
- <http:operation location="/GetQuotes" />
- <input name="GetQuotes">
- <http:urlEncoded />
- </input>
- <output name="GetQuotes">
- <mime:mimeXml part="Body" />
- </output>
- </operation>
- </binding>
- <binding name="StockQuotesHttpPost" type="s0:StockQuotesHttpPost">
- <http:binding verb="POST" />
- <operation name="GetStockQuotes">
- <http:operation location="/GetQuotes" />
- <input name="GetQuotes">
- <mime:content type="application/x-www-form-urlencoded" />
- </input>
- <output name="GetQuotes">
- <mime:mimeXml part="Body" />
- </output>
- </operation>
- </binding>
- <service name="StockQuotes">
- <port name="StockQuotesSoap" binding="s0:StockQuotesSoap">
- <soap:address
- location="http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx" />
- </port>
- <port name="StockQuotesHttpGet"
- binding="s0:StockQuotesHttpGet">
- <http:address
- location="http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx" />
- </port>
- <port name="StockQuotesHttpPost"
- binding="s0:StockQuotesHttpPost">
- <http:address
- location="http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx" />
- </port>
- </service>
-</definitions>
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/Tuscany-model.config b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/Tuscany-model.config deleted file mode 100755 index 2667f62990..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/Tuscany-model.config +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?>
-<!--
- Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<tuscany-model xmlns="http://org.apache.tuscany/xmlns/cpp/1.0">
- <wsdl>
- <file name="StockQuoteService/StockQuoteService.wsdl"/>
- <file name="MyValue/MyValueService.wsdl"/>
- </wsdl>
- <xsd>
- </xsd>
-</tuscany-model>
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/sca.module b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/sca.module deleted file mode 100755 index bda42e04bc..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueModule/sca.module +++ /dev/null @@ -1,51 +0,0 @@ -<?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.
- -->
-
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9"
- xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- xmlns:mvs="http://www.myvalue.org/MyValueService/"
- name="MyValueModule">
-
- <!-- Expose as a web service -->
- <entryPoint name="MyValueService" multiplicity="1..1">
- <interface.wsdl interface="MyValue/MyValueService.wsdl" callbackInterface=""></interface.wsdl>
- <binding.ws port="mvs:MyValueServiceBinding"></binding.ws>
- <reference>MyValueServiceComponent</reference>
- </entryPoint>
-
- <component name="MyValueServiceComponent">
- <implementation.cpp dll="MyValue/libMyValue.so" header="MyValue/MyValueImpl.h"></implementation.cpp>
- <properties>
- </properties>
- <references>
- <customerInfo>CustomerInfoComponent</customerInfo>
- <stockQuote>StockQuoteService</stockQuote>
- </references>
- </component>
-
- <externalService name="StockQuoteService">
- <interface.cpp header="StockQuoteService/StockQuoteService.h"/>
- <binding.ws port="http://swanandmokashi.com#wsdl.endpoint(StockQuotes/StockQuotesSoap)"/>
- </externalService>
-
- <!--wire>
- <source.uri>MyValueServiceComponent/customerInfo</source.uri>
- <target.uri>CustomerInfoComponent</target.uri>
- </wire-->
-
-</module>
-
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueSubsystem/sca.subsystem b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueSubsystem/sca.subsystem deleted file mode 100755 index ae858ea331..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/MyValueSubsystem/sca.subsystem +++ /dev/null @@ -1,27 +0,0 @@ -<?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.
- -->
-
-<subsystem xmlns="http://www.osoa.org/xmlns/sca/0.9"
-
- name="MyValueSubsystem">
-
- <moduleComponent name="MyValue" module="MyValueModule">
-
- </moduleComponent>
-
-</subsystem>
-
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/runMyValueClient.sh b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/runMyValueClient.sh deleted file mode 100755 index e5feeda1f0..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/runMyValueClient.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -# 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. - - -APFULLDIR=`pwd` - -export SCA4CPP_HOME="$APFULLDIR" -if [ x$SCA4CPP = x ]; then -export TUSCANY_SCACPP="$SCA4CPP_HOME" -fi -echo "Using SCA installed at $SCA4CPP_HOME" - -if [ x$AXISCPP_DEPLOY = x ]; then -echo "AXISCPP_DEPLOY not set" -exit; -fi -echo "Using Axis C++ installed at $AXISCPP_DEPLOY" - -if [ x$XERCES_DEPLOY = x ]; then -echo "XERCES_DEPLOY not set" -exit; -fi -echo "Using Xerces C++ installed at $XERCES_DEPLOY" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set"exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -TEST_ROOT=$SCA4CPP_HOME/runtime/core/test - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$LD_LIBRARY_PATH:$AXISCPP_DEPLOY/lib:$XERCES_DEPLOY/lib - -export TUSCANY_SCACPP_SYSTEM_ROOT=$TEST_ROOT/testSCASystem -export TUSCANY_SCACPP_DEFAULT_MODULE=SubSystem1 - -cd $TUSCANY_SCACPP/bin/test -./tuscany_sca_test diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/server.wsdd b/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/server.wsdd deleted file mode 100755 index 8b80b4b6ec..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/MyValue/server.wsdd +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- The Entity, wspath in the following internal subset allows setting a path for the webservices location -->
-<!--<!DOCTYPE vars [ <!ENTITY wspath "/Apache2.0.54/Apache2/Axis/webservices/"> ]>-->
-
-<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:C="http://xml.apache.org/axis/wsdd/providers/C" xmlns:CPP="http://xml.apache.org/axis/wsdd/providers/CPP">
- <globalConfiguration>
- </globalConfiguration>
-
- <service name="MyValueService" provider="CPP:DOCUMENT" description="MyValueService">
- <requestFlow>
- <handler name="SCAWSHandler" type="C:\Apache2.0.54\Apache2\Axis\handlers\tuscany_sca_axis_handler.dll">
- <parameter name="targetNamespace" value="http://www.myvalue.org/MyValueService/"/>
- <parameter name="scaEntryPoint" value="MyValueSubsystem/MyValue/MyValueService"/>
- </handler>
- </requestFlow>
-
- <parameter name="className" value="C:\Apache2.0.54\Apache2\Axis\webservices\tuscany_sca_axis_wrapper.dll"/>
- <parameter name="allowedMethods" value="getMyValue "/>
- </service>
-
-</deployment>
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/NEWS b/tags/cpp-0.1.incubating-M1-final/sca/samples/NEWS deleted file mode 100644 index e69de29bb2..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/NEWS +++ /dev/null diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/NOTICE b/tags/cpp-0.1.incubating-M1-final/sca/samples/NOTICE deleted file mode 100644 index bfb81409ad..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/NOTICE +++ /dev/null @@ -1,2 +0,0 @@ -This product includes software developed by -The Apache Software Foundation (http://www.apache.org/)
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/README b/tags/cpp-0.1.incubating-M1-final/sca/samples/README deleted file mode 100644 index e69de29bb2..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/README +++ /dev/null diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/autogen.sh b/tags/cpp-0.1.incubating-M1-final/sca/samples/autogen.sh deleted file mode 100755 index 3cebb0a380..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/autogen.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -for i in "libtoolize --force" aclocal autoconf autoheader -do - echo -n "Running $i..." - $i || exit 1 - echo 'done.' -done - -echo -n 'Running automake...' -automake --add-missing -echo 'done.' -exit 0 - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/build.sh b/tags/cpp-0.1.incubating-M1-final/sca/samples/build.sh deleted file mode 100755 index 72e1466c1f..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/build.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -# 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 [ x$TUSCANY_SCACPP = x ]; then -echo "TUSCANY_SCACPP not set" -exit; -fi -echo "Using SCA installed at $TUSCANY_SCACPP" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set" -exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -if [ x$AXIS2C_HOME = x ]; then -echo "AXIS2C_HOME not set" -exit; -fi -echo "Using Axis2C installed at $AXIS2C_HOME" - -./configure --prefix=${TUSCANY_SCACPP} --enable-static=no -make -make install - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/configure.ac b/tags/cpp-0.1.incubating-M1-final/sca/samples/configure.ac deleted file mode 100644 index e4c9932dbb..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/configure.ac +++ /dev/null @@ -1,26 +0,0 @@ -dnl run autogen.sh to generate the configure script. - -AC_PREREQ(2.59) -AC_INIT(tuscany_sca_samples, 0.1.incubating-M1) -AC_CANONICAL_SYSTEM -AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) -AC_PREFIX_DEFAULT(/usr/local/tuscany/sca/samples) - -# Checks for programs. -AC_PROG_CXX -AC_PROG_CC -AC_PROG_CPP -AC_PROG_INSTALL -AC_PROG_LN_S -AC_PROG_MAKE_SET -AC_PROG_LIBTOOL - -AC_CONFIG_FILES([Makefile - Calculator/Makefile - Calculator/CalculatorModule/Makefile - Calculator/Client/Makefile - Calculator/WSClient/Makefile - ]) -AC_OUTPUT - diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator.dsw b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator.dsw deleted file mode 100644 index 5dbc8fdd57..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator.dsw +++ /dev/null @@ -1,62 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "Calculator"=.\Calculator\Calculator.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "Client"=.\Client\Client.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
- Begin Project Dependency
- Project_Dep_Name Calculator
- End Project Dependency
-}}}
-
-###############################################################################
-
-Project: "WSClient"=.\WSClient\WSClient.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
- Begin Project Dependency
- Project_Dep_Name Calculator
- End Project Dependency
- Begin Project Dependency
- Project_Dep_Name Client
- End Project Dependency
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator.ncb b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator.ncb Binary files differdeleted file mode 100644 index 3a80eb1456..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator.ncb +++ /dev/null diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator.opt b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator.opt Binary files differdeleted file mode 100644 index 79b2ac8cec..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator.opt +++ /dev/null diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator/Calculator.dsp b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator/Calculator.dsp deleted file mode 100644 index 19c7866d5f..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator/Calculator.dsp +++ /dev/null @@ -1,189 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Calculator" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=Calculator - 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 "Calculator.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 "Calculator.mak" CFG="Calculator - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Calculator - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "Calculator - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Calculator - 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 Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CALCULATOR_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "$(TUSCANY_SDOCPP)/include" /I "$(TUSCANY_SCACPP)/include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CALCULATOR_EXPORTS" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# 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 /nologo /dll /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 tuscany_sca.lib tuscany_sdo.lib /nologo /dll /machine:I386 /libpath:"$(TUSCANY_SDOCPP)/lib" /libpath:"$(TUSCANY_SCACPP)/lib"
-
-!ELSEIF "$(CFG)" == "Calculator - 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 /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CALCULATOR_EXPORTS" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "$(TUSCANY_SDOCPP)/include" /I "$(TUSCANY_SCACPP)/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CALCULATOR_EXPORTS" /FD /GZ /c
-# SUBTRACT CPP /YX
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# 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 /nologo /dll /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 tuscany_sca.lib tuscany_sdo.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /libpath:"$(TUSCANY_SDOCPP)/lib" /libpath:"$(TUSCANY_SCACPP)/lib"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Calculator - Win32 Release"
-# Name "Calculator - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\Calculator.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorDivideService_Proxy.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Proxy.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Proxy.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Wrapper.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Wrapper.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\DivideService.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl_DivideService_Proxy.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl_DivideService_Proxy.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl_DivideService_Wrapper.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl_DivideService_Wrapper.h
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorDivideService_Proxy.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\Calculator.wsdl
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\sca.module
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorSubsystem\sca.subsystem
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\services.xml
-# End Source File
-# Begin Source File
-
-SOURCE="..\..\..\..\..\Calculator\CalculatorModule\Tuscany-model.config"
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator/Calculator.mak b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator/Calculator.mak deleted file mode 100644 index 17fdd321de..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Calculator/Calculator.mak +++ /dev/null @@ -1,254 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Based on Calculator.dsp
-!IF "$(CFG)" == ""
-CFG=Calculator - Win32 Debug
-!MESSAGE No configuration specified. Defaulting to Calculator - Win32 Debug.
-!ENDIF
-
-!IF "$(CFG)" != "Calculator - Win32 Release" && "$(CFG)" != "Calculator - Win32 Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!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 "Calculator.mak" CFG="Calculator - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Calculator - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "Calculator - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-!IF "$(CFG)" == "Calculator - Win32 Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-# Begin Custom Macros
-OutDir=.\Release
-# End Custom Macros
-
-ALL : "$(OUTDIR)\Calculator.dll"
-
-
-CLEAN :
- -@erase "$(INTDIR)\CalculatorImpl.obj"
- -@erase "$(INTDIR)\CalculatorImpl_CalculatorDivideService_Proxy.obj"
- -@erase "$(INTDIR)\CalculatorImpl_CalculatorService_Proxy.obj"
- -@erase "$(INTDIR)\CalculatorImpl_CalculatorService_Wrapper.obj"
- -@erase "$(INTDIR)\DivideServiceImpl.obj"
- -@erase "$(INTDIR)\DivideServiceImpl_DivideService_Proxy.obj"
- -@erase "$(INTDIR)\DivideServiceImpl_DivideService_Wrapper.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(OUTDIR)\Calculator.dll"
- -@erase "$(OUTDIR)\Calculator.exp"
- -@erase "$(OUTDIR)\Calculator.lib"
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "$(TUSCANY_SDOCPP)/include" /I "$(TUSCANY_SCACPP)/include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CALCULATOR_EXPORTS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-MTL=midl.exe
-MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\Calculator.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=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_sca.lib tuscany_sdo.lib /nologo /dll /incremental:no /pdb:"$(OUTDIR)\Calculator.pdb" /machine:I386 /out:"$(OUTDIR)\Calculator.dll" /implib:"$(OUTDIR)\Calculator.lib" /libpath:"$(TUSCANY_SDOCPP)/lib" /libpath:"$(TUSCANY_SCACPP)/lib"
-LINK32_OBJS= \
- "$(INTDIR)\CalculatorImpl.obj" \
- "$(INTDIR)\CalculatorImpl_CalculatorDivideService_Proxy.obj" \
- "$(INTDIR)\CalculatorImpl_CalculatorService_Proxy.obj" \
- "$(INTDIR)\CalculatorImpl_CalculatorService_Wrapper.obj" \
- "$(INTDIR)\DivideServiceImpl.obj" \
- "$(INTDIR)\DivideServiceImpl_DivideService_Proxy.obj" \
- "$(INTDIR)\DivideServiceImpl_DivideService_Wrapper.obj"
-
-"$(OUTDIR)\Calculator.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
-
-!ELSEIF "$(CFG)" == "Calculator - Win32 Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-ALL : "$(OUTDIR)\Calculator.dll"
-
-
-CLEAN :
- -@erase "$(INTDIR)\CalculatorImpl.obj"
- -@erase "$(INTDIR)\CalculatorImpl_CalculatorDivideService_Proxy.obj"
- -@erase "$(INTDIR)\CalculatorImpl_CalculatorService_Proxy.obj"
- -@erase "$(INTDIR)\CalculatorImpl_CalculatorService_Wrapper.obj"
- -@erase "$(INTDIR)\DivideServiceImpl.obj"
- -@erase "$(INTDIR)\DivideServiceImpl_DivideService_Proxy.obj"
- -@erase "$(INTDIR)\DivideServiceImpl_DivideService_Wrapper.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(OUTDIR)\Calculator.dll"
- -@erase "$(OUTDIR)\Calculator.exp"
- -@erase "$(OUTDIR)\Calculator.ilk"
- -@erase "$(OUTDIR)\Calculator.lib"
- -@erase "$(OUTDIR)\Calculator.pdb"
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MDd /W3 /Gm /GX /ZI /Od /I "$(TUSCANY_SDOCPP)/include" /I "$(TUSCANY_SCACPP)/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CALCULATOR_EXPORTS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-MTL=midl.exe
-MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\Calculator.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=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_sca.lib tuscany_sdo.lib /nologo /dll /incremental:yes /pdb:"$(OUTDIR)\Calculator.pdb" /debug /machine:I386 /out:"$(OUTDIR)\Calculator.dll" /implib:"$(OUTDIR)\Calculator.lib" /pdbtype:sept /libpath:"$(TUSCANY_SDOCPP)/lib" /libpath:"$(TUSCANY_SCACPP)/lib"
-LINK32_OBJS= \
- "$(INTDIR)\CalculatorImpl.obj" \
- "$(INTDIR)\CalculatorImpl_CalculatorDivideService_Proxy.obj" \
- "$(INTDIR)\CalculatorImpl_CalculatorService_Proxy.obj" \
- "$(INTDIR)\CalculatorImpl_CalculatorService_Wrapper.obj" \
- "$(INTDIR)\DivideServiceImpl.obj" \
- "$(INTDIR)\DivideServiceImpl_DivideService_Proxy.obj" \
- "$(INTDIR)\DivideServiceImpl_DivideService_Wrapper.obj"
-
-"$(OUTDIR)\Calculator.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
-
-!ENDIF
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("Calculator.dep")
-!INCLUDE "Calculator.dep"
-!ELSE
-!MESSAGE Warning: cannot find "Calculator.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "Calculator - Win32 Release" || "$(CFG)" == "Calculator - Win32 Debug"
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl.cpp
-
-"$(INTDIR)\CalculatorImpl.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorDivideService_Proxy.cpp
-
-"$(INTDIR)\CalculatorImpl_CalculatorDivideService_Proxy.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Proxy.cpp
-
-"$(INTDIR)\CalculatorImpl_CalculatorService_Proxy.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Wrapper.cpp
-
-"$(INTDIR)\CalculatorImpl_CalculatorService_Wrapper.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl.cpp
-
-"$(INTDIR)\DivideServiceImpl.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl_DivideService_Proxy.cpp
-
-"$(INTDIR)\DivideServiceImpl_DivideService_Proxy.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-SOURCE=..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl_DivideService_Wrapper.cpp
-
-"$(INTDIR)\DivideServiceImpl_DivideService_Wrapper.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-
-!ENDIF
-
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Client/Client.dsp b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Client/Client.dsp deleted file mode 100644 index bd5eefe68d..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Client/Client.dsp +++ /dev/null @@ -1,115 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Client" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Client - 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 "Client.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 "Client.mak" CFG="Client - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Client - 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)" == "Client - 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 /MD /W3 /GX /O2 /I "$(TUSCANY_SDOCPP)/include" /I "$(TUSCANY_SCACPP)/include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
-# SUBTRACT CPP /YX
-# 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 tuscany_sdo.lib tuscany_sca.lib /nologo /subsystem:console /machine:I386 /libpath:"$(TUSCANY_SDOCPP)/lib" /libpath:"$(TUSCANY_SCACPP)/lib"
-# Begin Special Build Tool
-SOURCE="$(InputPath)"
-PostBuild_Cmds=..\deploy.cmd Release
-# End Special Build Tool
-
-!ELSEIF "$(CFG)" == "Client - 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 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 /MDd /W3 /Gm /GX /ZI /Od /I "$(TUSCANY_SDOCPP)/include" /I "$(TUSCANY_SCACPP)/include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ /c
-# SUBTRACT CPP /YX
-# 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 /out:"Debug/Calc.exe" /pdbtype:sept /libpath:"$(TUSCANY_SDOCPP)/lib" /libpath:"$(TUSCANY_SCACPP)/lib"
-# SUBTRACT LINK32 /pdb:none
-# Begin Special Build Tool
-SOURCE="$(InputPath)"
-PostBuild_Cmds=..\deploy.cmd Debug
-# End Special Build Tool
-
-!ENDIF
-
-# Begin Target
-
-# Name "Client - Win32 Release"
-# Name "Client - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\Client\Calc.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\Client\Calculator.h
-# 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
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Client/Client.mak b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Client/Client.mak deleted file mode 100644 index 785677547d..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/Client/Client.mak +++ /dev/null @@ -1,262 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Based on Client.dsp
-!IF "$(CFG)" == ""
-CFG=Client - Win32 Debug
-!MESSAGE No configuration specified. Defaulting to Client - Win32 Debug.
-!ENDIF
-
-!IF "$(CFG)" != "Client - Win32 Release" && "$(CFG)" != "Client - Win32 Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!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 "Client.mak" CFG="Client - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Client - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-!IF "$(CFG)" == "Client - Win32 Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-# Begin Custom Macros
-OutDir=.\Release
-# End Custom Macros
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "$(OUTDIR)\Client.exe"
-
-!ELSE
-
-ALL : "Calculator - Win32 Release" "$(OUTDIR)\Client.exe"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"Calculator - Win32 ReleaseCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\Calc.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(OUTDIR)\Client.exe"
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "$(TUSCANY_SDOCPP)/include" /I "$(TUSCANY_SCACPP)/include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\Client.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=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:no /pdb:"$(OUTDIR)\Client.pdb" /machine:I386 /out:"$(OUTDIR)\Client.exe" /libpath:"$(TUSCANY_SDOCPP)/lib" /libpath:"$(TUSCANY_SCACPP)/lib"
-LINK32_OBJS= \
- "$(INTDIR)\Calc.obj" \
- "..\Calculator\Release\Calculator.lib"
-
-"$(OUTDIR)\Client.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
-
-SOURCE="$(InputPath)"
-DS_POSTBUILD_DEP=$(INTDIR)\postbld.dep
-
-ALL : $(DS_POSTBUILD_DEP)
-
-# Begin Custom Macros
-OutDir=.\Release
-# End Custom Macros
-
-$(DS_POSTBUILD_DEP) : "Calculator - Win32 Release" "$(OUTDIR)\Client.exe"
- ..\deploy.cmd Release
- echo Helper for Post-build step > "$(DS_POSTBUILD_DEP)"
-
-!ELSEIF "$(CFG)" == "Client - Win32 Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "$(OUTDIR)\Calc.exe"
-
-!ELSE
-
-ALL : "Calculator - Win32 Debug" "$(OUTDIR)\Calc.exe"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"Calculator - Win32 DebugCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\Calc.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(OUTDIR)\Calc.exe"
- -@erase "$(OUTDIR)\Calc.ilk"
- -@erase "$(OUTDIR)\Calc.pdb"
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MDd /W3 /Gm /GX /ZI /Od /I "$(TUSCANY_SDOCPP)/include" /I "$(TUSCANY_SCACPP)/include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\Client.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=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:"$(OUTDIR)\Calc.pdb" /debug /machine:I386 /out:"$(OUTDIR)\Calc.exe" /pdbtype:sept /libpath:"$(TUSCANY_SDOCPP)/lib" /libpath:"$(TUSCANY_SCACPP)/lib"
-LINK32_OBJS= \
- "$(INTDIR)\Calc.obj" \
- "..\Calculator\Debug\Calculator.lib"
-
-"$(OUTDIR)\Calc.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
-
-SOURCE="$(InputPath)"
-DS_POSTBUILD_DEP=$(INTDIR)\postbld.dep
-
-ALL : $(DS_POSTBUILD_DEP)
-
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-$(DS_POSTBUILD_DEP) : "Calculator - Win32 Debug" "$(OUTDIR)\Calc.exe"
- ..\deploy.cmd Debug
- echo Helper for Post-build step > "$(DS_POSTBUILD_DEP)"
-
-!ENDIF
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("Client.dep")
-!INCLUDE "Client.dep"
-!ELSE
-!MESSAGE Warning: cannot find "Client.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "Client - Win32 Release" || "$(CFG)" == "Client - Win32 Debug"
-SOURCE=..\..\..\..\..\Calculator\Client\Calc.cpp
-
-"$(INTDIR)\Calc.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!IF "$(CFG)" == "Client - Win32 Release"
-
-"Calculator - Win32 Release" :
- cd "..\Calculator"
- $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Release"
- cd "..\Client"
-
-"Calculator - Win32 ReleaseCLEAN" :
- cd "..\Calculator"
- $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Release" RECURSE=1 CLEAN
- cd "..\Client"
-
-!ELSEIF "$(CFG)" == "Client - Win32 Debug"
-
-"Calculator - Win32 Debug" :
- cd "..\Calculator"
- $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Debug"
- cd "..\Client"
-
-"Calculator - Win32 DebugCLEAN" :
- cd "..\Calculator"
- $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Debug" RECURSE=1 CLEAN
- cd "..\Client"
-
-!ENDIF
-
-
-!ENDIF
-
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/WSClient/BuildInstructions.txt b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/WSClient/BuildInstructions.txt deleted file mode 100644 index 3716551f14..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/WSClient/BuildInstructions.txt +++ /dev/null @@ -1,95 +0,0 @@ - -These sample projects will build: - -A basic calculator SCA service. -A client to test that service. -A WSClient to test the service as exposed by AXIS2C as a web service. - -The sample depdends on the current versions of Tuscany SDO and Tuscany SCA, which in turn -depend on axis2c version 0.92, and libxml2. See the SCA and SDO project installation -details. - -The sample already has the pre-generated proxy and wrapper code in it, but should -you need to regenerate these, you will need the command line tool "scagen" which is -part of the Tuscany SCA project. - -The projects expect to following environment variables to be set: -TUSCANY_SCACPP: -The directory in which the sca runtime is deployed - probably something ending in sca/deploy. - -TUSCANY_SDOCPP: -The directory where the sdo runtime is deployed - probably something ending in sdo/deploy. - -TUSCANY_SCACPP_DEFAULT_MODULE: -This is the default module to be loaded by SCA. It consists of <subsystem>/<component>. -In the case of this sample - its set programatically by the client - thats easier when -using visual studio. - -TUSCANY_SCACPP_SYSTEM_ROOT -This is the point from which SCA will start looking for modules to load. Again this is -set programmatically by the sample. - -AXIS2C_HOME: -This is where axis2c is deployed- this is only required by the WSClient project. - -The Calculator project contains a simple calculator service, and the descriptive files -which help the runtime to find the service. - - -Rebuilding the proxy and wrapper classes -======================================== - -If required, go to the Calculator sample main directory, and -type: -"scagen -dir CalculatorModule -output CalculatorModule" - -The generated code is put into the CalculatorModule subdirectory. - -Building the Client project -=========================== - -Set the active project to be "Client", and then build all. -This will re-build Calculator, then rebuild the Client, -The final step of the build will call a batch file "deploy.cmd", -which copies all the required files to the directory samples/Calculator/deploy - -Use Project..Settings..Debug and check the path to the executable, check also the -path to the working directory. Alter these to match your configuration. - -Run the project, and your SCA service should be called. - -Building the WSClient project -============================= - -Modify the services.xml file, and make the SCA system root defined -within it comply with your SCA system root. - -Set the active project to WSClient and build all. - -The last step of the build will run a wsdeploy script, which -tries to use the environment variable AXIS2C_HOME, to create -a services/Calculator directory, and deploy the services.xml file. -The dll which resolves SCA services is called -tuscany_sca_ws_service.dll - this will be copied to the axis -tree by the same script file. - -To run the axis2 http server, go to the %AXIS2C_HOME%/bin -directory, and launch the executable. - -Now verify that the path to the WSClient executable makes sense -in your project settings, and run the project. - - -Note -==== - -It can be quite hard to debug services which are invoked through axis, as the -dll including the service is loaded on call. One useful technique is to -load the axis http server in visual studio (create an empty project and make -the executable path point to axis2_http_server.exe). -Now use the Project..Settings..Debug..Addition DLLs option and add -services/Calculator/tuscany_sca_ws_service.dll. -You will now be able to set breakpoints in the dll (Axis2EntryPointService_invoke -is a good place - in Axis2EntryPointService_skeleton.cpp). -Run your WSclient from another debugger, and the server debugger will break -on the service code. diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/WSClient/WSClient.dsp b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/WSClient/WSClient.dsp deleted file mode 100644 index 5b3739598a..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/WSClient/WSClient.dsp +++ /dev/null @@ -1,122 +0,0 @@ -# Microsoft Developer Studio Project File - Name="WSClient" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=WSClient - 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 "WSClient.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 "WSClient.mak" CFG="WSClient - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "WSClient - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "WSClient - 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)" == "WSClient - 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 /I "$(TUSCANY_SDOCPP)/include" /I "$(AXIS2C_HOME)/include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
-# SUBTRACT CPP /YX
-# 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 tuscany_sca.lib tuscany_sdo.lib axis2_engine.lib axis2_parser.lib axis2_util.lib axiom.lib /nologo /subsystem:console /machine:I386 /libpath:"$(TUSCANY_SCACPP)\lib" /libpath:"$(TUSCANY_SDOCPP)\lib" /libpath:"$(AXIS2C_HOME)\lib"
-# Begin Special Build Tool
-SOURCE="$(InputPath)"
-PostBuild_Cmds=..\wsdeploy.cmd Release
-# End Special Build Tool
-
-!ELSEIF "$(CFG)" == "WSClient - 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 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 "$(AXIS2C_HOME)/include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ /c
-# SUBTRACT CPP /YX
-# 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_sca.lib tuscany_sdo.lib axis2_engine.lib axis2_parser.lib axis2_util.lib axiom.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"$(TUSCANY_SCACPP)\lib" /libpath:"$(TUSCANY_SDOCPP)\lib" /libpath:"$(AXIS2C_HOME)\lib"
-# Begin Special Build Tool
-SOURCE="$(InputPath)"
-PostBuild_Cmds=..\wsdeploy.cmd Debug
-# End Special Build Tool
-
-!ENDIF
-
-# Begin Target
-
-# Name "WSClient - Win32 Release"
-# Name "WSClient - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\WSClient\axis2_Calculator_stub.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\WSClient\axis2_Calculator_stub.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\..\..\..\..\Calculator\WSClient\Calculator_Client.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
-# Begin Source File
-
-SOURCE=.\BuildInstructions.txt
-# End Source File
-# End Target
-# End Project
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/WSClient/WSClient.mak b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/WSClient/WSClient.mak deleted file mode 100644 index 4ce51c68bb..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/WSClient/WSClient.mak +++ /dev/null @@ -1,298 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Based on WSClient.dsp
-!IF "$(CFG)" == ""
-CFG=WSClient - Win32 Debug
-!MESSAGE No configuration specified. Defaulting to WSClient - Win32 Debug.
-!ENDIF
-
-!IF "$(CFG)" != "WSClient - Win32 Release" && "$(CFG)" != "WSClient - Win32 Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!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 "WSClient.mak" CFG="WSClient - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "WSClient - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "WSClient - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-!IF "$(CFG)" == "WSClient - Win32 Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-# Begin Custom Macros
-OutDir=.\Release
-# End Custom Macros
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "$(OUTDIR)\WSClient.exe"
-
-!ELSE
-
-ALL : "Client - Win32 Release" "Calculator - Win32 Release" "$(OUTDIR)\WSClient.exe"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"Calculator - Win32 ReleaseCLEAN" "Client - Win32 ReleaseCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\axis2_Calculator_stub.obj"
- -@erase "$(INTDIR)\Calculator_Client.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(OUTDIR)\WSClient.exe"
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /ML /W3 /GX /O2 /I "$(TUSCANY_SDOCPP)/include" /I "$(AXIS2C_HOME)/include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\WSClient.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=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_sca.lib tuscany_sdo.lib axis2_engine.lib axis2_parser.lib axis2_util.lib axiom.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\WSClient.pdb" /machine:I386 /out:"$(OUTDIR)\WSClient.exe" /libpath:"$(TUSCANY_SCACPP)\lib" /libpath:"$(TUSCANY_SDOCPP)\lib" /libpath:"$(AXIS2C_HOME)\lib"
-LINK32_OBJS= \
- "$(INTDIR)\axis2_Calculator_stub.obj" \
- "$(INTDIR)\Calculator_Client.obj" \
- "..\Calculator\Release\Calculator.lib"
-
-"$(OUTDIR)\WSClient.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
-
-SOURCE="$(InputPath)"
-DS_POSTBUILD_DEP=$(INTDIR)\postbld.dep
-
-ALL : $(DS_POSTBUILD_DEP)
-
-# Begin Custom Macros
-OutDir=.\Release
-# End Custom Macros
-
-$(DS_POSTBUILD_DEP) : "Client - Win32 Release" "Calculator - Win32 Release" "$(OUTDIR)\WSClient.exe"
- ..\wsdeploy.cmd Release
- echo Helper for Post-build step > "$(DS_POSTBUILD_DEP)"
-
-!ELSEIF "$(CFG)" == "WSClient - Win32 Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "$(OUTDIR)\WSClient.exe"
-
-!ELSE
-
-ALL : "Client - Win32 Debug" "Calculator - Win32 Debug" "$(OUTDIR)\WSClient.exe"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"Calculator - Win32 DebugCLEAN" "Client - Win32 DebugCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\axis2_Calculator_stub.obj"
- -@erase "$(INTDIR)\Calculator_Client.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(OUTDIR)\WSClient.exe"
- -@erase "$(OUTDIR)\WSClient.ilk"
- -@erase "$(OUTDIR)\WSClient.pdb"
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MLd /W3 /Gm /GX /ZI /Od /I "$(TUSCANY_SDOCPP)/include" /I "$(AXIS2C_HOME)/include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\WSClient.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=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_sca.lib tuscany_sdo.lib axis2_engine.lib axis2_parser.lib axis2_util.lib axiom.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\WSClient.pdb" /debug /machine:I386 /out:"$(OUTDIR)\WSClient.exe" /pdbtype:sept /libpath:"$(TUSCANY_SCACPP)\lib" /libpath:"$(TUSCANY_SDOCPP)\lib" /libpath:"$(AXIS2C_HOME)\lib"
-LINK32_OBJS= \
- "$(INTDIR)\axis2_Calculator_stub.obj" \
- "$(INTDIR)\Calculator_Client.obj" \
- "..\Calculator\Debug\Calculator.lib"
-
-"$(OUTDIR)\WSClient.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
-
-SOURCE="$(InputPath)"
-DS_POSTBUILD_DEP=$(INTDIR)\postbld.dep
-
-ALL : $(DS_POSTBUILD_DEP)
-
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-$(DS_POSTBUILD_DEP) : "Client - Win32 Debug" "Calculator - Win32 Debug" "$(OUTDIR)\WSClient.exe"
- ..\wsdeploy.cmd Debug
- echo Helper for Post-build step > "$(DS_POSTBUILD_DEP)"
-
-!ENDIF
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("WSClient.dep")
-!INCLUDE "WSClient.dep"
-!ELSE
-!MESSAGE Warning: cannot find "WSClient.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "WSClient - Win32 Release" || "$(CFG)" == "WSClient - Win32 Debug"
-SOURCE=..\..\..\..\..\Calculator\WSClient\axis2_Calculator_stub.cpp
-
-"$(INTDIR)\axis2_Calculator_stub.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-SOURCE=..\..\..\..\..\Calculator\WSClient\Calculator_Client.cpp
-
-"$(INTDIR)\Calculator_Client.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!IF "$(CFG)" == "WSClient - Win32 Release"
-
-"Calculator - Win32 Release" :
- cd "..\Calculator"
- $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Release"
- cd "..\WSClient"
-
-"Calculator - Win32 ReleaseCLEAN" :
- cd "..\Calculator"
- $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Release" RECURSE=1 CLEAN
- cd "..\WSClient"
-
-!ELSEIF "$(CFG)" == "WSClient - Win32 Debug"
-
-"Calculator - Win32 Debug" :
- cd "..\Calculator"
- $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Debug"
- cd "..\WSClient"
-
-"Calculator - Win32 DebugCLEAN" :
- cd "..\Calculator"
- $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Debug" RECURSE=1 CLEAN
- cd "..\WSClient"
-
-!ENDIF
-
-!IF "$(CFG)" == "WSClient - Win32 Release"
-
-"Client - Win32 Release" :
- cd "..\Client"
- $(MAKE) /$(MAKEFLAGS) /F .\Client.mak CFG="Client - Win32 Release"
- cd "..\WSClient"
-
-"Client - Win32 ReleaseCLEAN" :
- cd "..\Client"
- $(MAKE) /$(MAKEFLAGS) /F .\Client.mak CFG="Client - Win32 Release" RECURSE=1 CLEAN
- cd "..\WSClient"
-
-!ELSEIF "$(CFG)" == "WSClient - Win32 Debug"
-
-"Client - Win32 Debug" :
- cd "..\Client"
- $(MAKE) /$(MAKEFLAGS) /F .\Client.mak CFG="Client - Win32 Debug"
- cd "..\WSClient"
-
-"Client - Win32 DebugCLEAN" :
- cd "..\Client"
- $(MAKE) /$(MAKEFLAGS) /F .\Client.mak CFG="Client - Win32 Debug" RECURSE=1 CLEAN
- cd "..\WSClient"
-
-!ENDIF
-
-
-!ENDIF
-
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/build.cmd b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/build.cmd deleted file mode 100644 index 4e7f487a14..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/build.cmd +++ /dev/null @@ -1,20 +0,0 @@ -@echo off - -@REM Copyright 2006 The Apache Software Foundation or its licensors, as applicable. -@REM -@REM Licensed under the Apache License, Version 2.0 (the "License"); -@REM you may not use this file except in compliance with the License. -@REM 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, software -@REM distributed under the License is distributed on an "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@REM See the License for the specific language governing permissions and -@REM limitations under the License. -setlocal -cd WSClient -nmake -f WSClient.mak CFG="WSClient - Win32 Release" -cd .. -endlocal
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/deploy.cmd b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/deploy.cmd deleted file mode 100644 index b7b7ba1c05..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/deploy.cmd +++ /dev/null @@ -1,61 +0,0 @@ -@echo off - -@REM Copyright 2006 The Apache Software Foundation or its licensors, as applicable. -@REM -@REM Licensed under the Apache License, Version 2.0 (the "License"); -@REM you may not use this file except in compliance with the License. -@REM 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, software -@REM distributed under the License is distributed on an "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@REM See the License for the specific language governing permissions and -@REM limitations 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%..\..\..\..\Calculator - -set buildMode=Release -if .Debug == %1. ( -set buildMode=Debug -) - - -if . == %2. ( -set destinationPath=%sourcePath%\deploy -) ELSE ( -set destinationPath=%2 -) - -if not exist %destinationPath%\modules mkdir %destinationPath%\modules -if not exist %destinationPath%\modules\CalculatorModule mkdir %destinationPath%\modules\CalculatorModule - -copy %sourcePath%\CalculatorModule\*.componentType %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\sca.module %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Calculator.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\CalculatorImpl.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\DivideService.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\DivideServiceImpl.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Tuscany-model.config %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Calculator.wsdl %destinationPath%\modules\CalculatorModule -copy %currentPath%\Calculator\%buildMode%\Calculator.dll %destinationPath%\modules\CalculatorModule - -if not exist %destinationPath%\bin mkdir %destinationPath%\bin -copy %currentPath%\Client\%buildMode%\Client.exe %destinationPath%\bin -if %buildMode% == Debug ( -copy %currentPath%\Client\%buildMode%\Client.pdb %destinationPath%\bin -) -copy %sourcePath%\Client\runclient.cmd %destinationPath%\bin - - -if not exist %destinationPath%\subsystems mkdir %destinationPath%\subsystems -if not exist %destinationPath%\subsystems\CalculatorSubsystem mkdir %destinationPath%\subsystems\CalculatorSubsystem - -copy %sourcePath%\CalculatorSubsystem\sca.subsystem %destinationPath%\subsystems\CalculatorSubsystem - -endlocal
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/wsdeploy.cmd b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/wsdeploy.cmd deleted file mode 100644 index 68a5090820..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio6/projects/Calculator/wsdeploy.cmd +++ /dev/null @@ -1,63 +0,0 @@ -@echo off - -@REM Copyright 2006 The Apache Software Foundation or its licensors, as applicable. -@REM -@REM Licensed under the Apache License, Version 2.0 (the "License"); -@REM you may not use this file except in compliance with the License. -@REM 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, software -@REM distributed under the License is distributed on an "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@REM See the License for the specific language governing permissions and -@REM limitations 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%..\..\..\..\Calculator - -set buildMode=Release -if .Debug == %1. ( -set buildMode=Debug -) - - -if . == %2. ( -set destinationPath=%sourcePath%\deploy -) ELSE ( -set destinationPath=%2 -) - - -if not exist %destinationPath%\modules mkdir %destinationPath%\modules -if not exist %destinationPath%\modules\CalculatorModule mkdir %destinationPath%\modules\CalculatorModule - -copy %sourcePath%\CalculatorModule\*.componentType %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\sca.module %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Calculator.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\CalculatorImpl.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\DivideService.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\DivideServiceImpl.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Tuscany-model.config %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Calculator.wsdl %destinationPath%\modules\CalculatorModule -copy %currentPath%\Calculator\%buildMode%\Calculator.dll %destinationPath%\modules\CalculatorModule - -if not exist %destinationPath%\bin mkdir %destinationPath%\bin -copy %currentPath%\WSClient\%buildMode%\WSClient.exe %destinationPath%\bin -if %buildMode% == Debug ( -copy %currentPath%\WSClient\%buildMode%\WSClient.pdb %destinationPath%\bin -) -copy %sourcePath%\WSClient\runwsclient.cmd %destinationPath%\bin - - -if not exist %destinationPath%\subsystems mkdir %destinationPath%\subsystems -if not exist %destinationPath%\subsystems\CalculatorSubsystem mkdir %destinationPath%\subsystems\CalculatorSubsystem - -copy %sourcePath%\CalculatorSubsystem\sca.subsystem %destinationPath%\subsystems\CalculatorSubsystem - - -endlocal
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Calculator.sln b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Calculator.sln deleted file mode 100644 index 07c78db063..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Calculator.sln +++ /dev/null @@ -1,35 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 7.00
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Calculator", "Calculator\Calculator.vcproj", "{B1C1917A-4423-456D-9F68-3C600C885A1F}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Client", "Client\Client.vcproj", "{CA2CB545-D0E2-416C-BE93-90BC4DD82B90}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WSClient", "WSClient\WSClient.vcproj", "{3CDD5BC2-9722-4F7D-8B0E-1A49D34E7A17}"
-EndProject
-Global
- GlobalSection(SolutionConfiguration) = preSolution
- ConfigName.0 = Debug
- ConfigName.1 = Release
- EndGlobalSection
- GlobalSection(ProjectDependencies) = postSolution
- {CA2CB545-D0E2-416C-BE93-90BC4DD82B90}.0 = {B1C1917A-4423-456D-9F68-3C600C885A1F}
- {3CDD5BC2-9722-4F7D-8B0E-1A49D34E7A17}.0 = {B1C1917A-4423-456D-9F68-3C600C885A1F}
- EndGlobalSection
- GlobalSection(ProjectConfiguration) = postSolution
- {B1C1917A-4423-456D-9F68-3C600C885A1F}.Debug.ActiveCfg = Debug|Win32
- {B1C1917A-4423-456D-9F68-3C600C885A1F}.Debug.Build.0 = Debug|Win32
- {B1C1917A-4423-456D-9F68-3C600C885A1F}.Release.ActiveCfg = Release|Win32
- {B1C1917A-4423-456D-9F68-3C600C885A1F}.Release.Build.0 = Release|Win32
- {CA2CB545-D0E2-416C-BE93-90BC4DD82B90}.Debug.ActiveCfg = Debug|Win32
- {CA2CB545-D0E2-416C-BE93-90BC4DD82B90}.Debug.Build.0 = Debug|Win32
- {CA2CB545-D0E2-416C-BE93-90BC4DD82B90}.Release.ActiveCfg = Release|Win32
- {CA2CB545-D0E2-416C-BE93-90BC4DD82B90}.Release.Build.0 = Release|Win32
- {3CDD5BC2-9722-4F7D-8B0E-1A49D34E7A17}.Debug.ActiveCfg = Debug|Win32
- {3CDD5BC2-9722-4F7D-8B0E-1A49D34E7A17}.Debug.Build.0 = Debug|Win32
- {3CDD5BC2-9722-4F7D-8B0E-1A49D34E7A17}.Release.ActiveCfg = Release|Win32
- {3CDD5BC2-9722-4F7D-8B0E-1A49D34E7A17}.Release.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- EndGlobalSection
- GlobalSection(ExtensibilityAddIns) = postSolution
- EndGlobalSection
-EndGlobal
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Calculator.suo b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Calculator.suo Binary files differdeleted file mode 100644 index cee3b2f73d..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Calculator.suo +++ /dev/null diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Calculator/Calculator.vcproj b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Calculator/Calculator.vcproj deleted file mode 100644 index 5a081e088b..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Calculator/Calculator.vcproj +++ /dev/null @@ -1,219 +0,0 @@ -<?xml version="1.0" encoding = "Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="7.00"
- Name="Calculator"
- SccProjectName=""
- SccLocalPath="">
- <Platforms>
- <Platform
- Name="Win32"/>
- </Platforms>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory=".\Debug"
- IntermediateDirectory=".\Debug"
- ConfigurationType="2"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="FALSE"
- CharacterSet="2">
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(TUSCANY_SDOCPP)/include,$(TUSCANY_SCACPP)/include"
- PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;CALCULATOR_EXPORTS"
- BasicRuntimeChecks="3"
- RuntimeLibrary="1"
- UsePrecompiledHeader="2"
- PrecompiledHeaderFile=".\Debug/Calculator.pch"
- AssemblerListingLocation=".\Debug/"
- ObjectFile=".\Debug/"
- ProgramDataBaseFileName=".\Debug/"
- WarningLevel="3"
- SuppressStartupBanner="TRUE"
- DebugInformationFormat="4"
- CompileAs="0"/>
- <Tool
- Name="VCCustomBuildTool"/>
- <Tool
- Name="VCLinkerTool"
- AdditionalOptions="/MACHINE:I386"
- AdditionalDependencies="odbc32.lib odbccp32.lib tuscany_sca.lib tuscany_sdo.lib"
- OutputFile=".\Debug/Calculator.dll"
- LinkIncremental="2"
- SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories="$(TUSCANY_SDOCPP)/lib,$(TUSCANY_SCACPP)/lib"
- GenerateDebugInformation="TRUE"
- ProgramDatabaseFile=".\Debug/Calculator.pdb"
- ImportLibrary=".\Debug/Calculator.lib"/>
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="TRUE"
- SuppressStartupBanner="TRUE"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/Calculator.tlb"/>
- <Tool
- Name="VCPostBuildEventTool"/>
- <Tool
- Name="VCPreBuildEventTool"/>
- <Tool
- Name="VCPreLinkEventTool"/>
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="2057"/>
- <Tool
- Name="VCWebServiceProxyGeneratorTool"/>
- <Tool
- Name="VCWebDeploymentTool"/>
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory=".\Release"
- IntermediateDirectory=".\Release"
- ConfigurationType="2"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="FALSE"
- CharacterSet="2">
- <Tool
- Name="VCCLCompilerTool"
- InlineFunctionExpansion="1"
- AdditionalIncludeDirectories="$(TUSCANY_SDOCPP)/include,$(TUSCANY_SCACPP)/include"
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;CALCULATOR_EXPORTS"
- StringPooling="TRUE"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="TRUE"
- UsePrecompiledHeader="2"
- PrecompiledHeaderFile=".\Release/Calculator.pch"
- AssemblerListingLocation=".\Release/"
- ObjectFile=".\Release/"
- ProgramDataBaseFileName=".\Release/"
- WarningLevel="3"
- SuppressStartupBanner="TRUE"/>
- <Tool
- Name="VCCustomBuildTool"/>
- <Tool
- Name="VCLinkerTool"
- AdditionalOptions="/MACHINE:I386"
- AdditionalDependencies="odbc32.lib odbccp32.lib tuscany_sca.lib tuscany_sdo.lib"
- OutputFile=".\Release/Calculator.dll"
- LinkIncremental="1"
- SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories="$(TUSCANY_SDOCPP)/lib,$(TUSCANY_SCACPP)/lib"
- ProgramDatabaseFile=".\Release/Calculator.pdb"
- ImportLibrary=".\Release/Calculator.lib"/>
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="TRUE"
- SuppressStartupBanner="TRUE"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/Calculator.tlb"/>
- <Tool
- Name="VCPostBuildEventTool"/>
- <Tool
- Name="VCPreBuildEventTool"/>
- <Tool
- Name="VCPreLinkEventTool"/>
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="2057"/>
- <Tool
- Name="VCWebServiceProxyGeneratorTool"/>
- <Tool
- Name="VCWebDeploymentTool"/>
- </Configuration>
- </Configurations>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\Calculator.h">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl.cpp">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl.h">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorDivideService_Proxy.cpp">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorDivideService_Proxy.h">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Proxy.cpp">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Proxy.h">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Wrapper.cpp">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Wrapper.h">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\DivideService.h">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl.cpp">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl.h">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl_DivideService_Proxy.cpp">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl_DivideService_Proxy.h">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl_DivideService_Wrapper.cpp">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\DivideServiceImpl_DivideService_Wrapper.h">
- </File>
- </Filter>
- <Filter
- Name="Resource Files"
- Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\Calculator.wsdl">
- <FileConfiguration
- Name="Debug|Win32">
- <Tool
- Name="VCCustomBuildTool"/>
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32">
- <Tool
- Name="VCCustomBuildTool"/>
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\Tuscany-model.config">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\sca.module">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorSubsystem\sca.subsystem">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\CalculatorModule\services.xml">
- </File>
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hpp;hxx;hm;inl">
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Client/Client.vcproj b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Client/Client.vcproj deleted file mode 100644 index 0988c9a18c..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/Client/Client.vcproj +++ /dev/null @@ -1,146 +0,0 @@ -<?xml version="1.0" encoding = "Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="7.00"
- Name="Client"
- SccProjectName=""
- SccLocalPath="">
- <Platforms>
- <Platform
- Name="Win32"/>
- </Platforms>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory=".\Debug"
- IntermediateDirectory=".\Debug"
- ConfigurationType="1"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="FALSE"
- CharacterSet="2">
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(TUSCANY_SDOCPP)/include,$(TUSCANY_SCACPP)/include"
- PreprocessorDefinitions="WIN32,_DEBUG,_CONSOLE"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- PrecompiledHeaderFile=".\Debug/Client.pch"
- AssemblerListingLocation=".\Debug/"
- ObjectFile=".\Debug/"
- ProgramDataBaseFileName=".\Debug/"
- WarningLevel="3"
- SuppressStartupBanner="TRUE"
- DebugInformationFormat="4"
- CompileAs="0"/>
- <Tool
- Name="VCCustomBuildTool"/>
- <Tool
- Name="VCLinkerTool"
- AdditionalOptions="/MACHINE:I386"
- AdditionalDependencies="odbc32.lib odbccp32.lib tuscany_sdo.lib tuscany_sca.lib"
- OutputFile="./Debug/Client.exe"
- LinkIncremental="2"
- SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories="$(TUSCANY_SDOCPP)/lib,$(TUSCANY_SCACPP)/lib"
- GenerateDebugInformation="TRUE"
- ProgramDatabaseFile=".\Debug/Calc.pdb"
- SubSystem="1"/>
- <Tool
- Name="VCMIDLTool"
- TypeLibraryName=".\Debug/Client.tlb"/>
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="..\deploy.cmd Debug"/>
- <Tool
- Name="VCPreBuildEventTool"/>
- <Tool
- Name="VCPreLinkEventTool"/>
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="2057"/>
- <Tool
- Name="VCWebServiceProxyGeneratorTool"/>
- <Tool
- Name="VCWebDeploymentTool"/>
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory=".\Release"
- IntermediateDirectory=".\Release"
- ConfigurationType="1"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="FALSE"
- CharacterSet="2">
- <Tool
- Name="VCCLCompilerTool"
- Optimization="1"
- InlineFunctionExpansion="1"
- AdditionalIncludeDirectories="$(TUSCANY_SDOCPP)/include,$(TUSCANY_SCACPP)/include"
- PreprocessorDefinitions="WIN32,NDEBUG,_CONSOLE"
- StringPooling="TRUE"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="TRUE"
- UsePrecompiledHeader="2"
- PrecompiledHeaderFile=".\Release/Client.pch"
- AssemblerListingLocation=".\Release/"
- ObjectFile=".\Release/"
- ProgramDataBaseFileName=".\Release/"
- WarningLevel="3"
- SuppressStartupBanner="TRUE"/>
- <Tool
- Name="VCCustomBuildTool"/>
- <Tool
- Name="VCLinkerTool"
- AdditionalOptions="/MACHINE:I386"
- AdditionalDependencies="odbc32.lib odbccp32.lib tuscany_sdo.lib tuscany_sca.lib"
- OutputFile=".\Release/Client.exe"
- LinkIncremental="1"
- SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories="$(TUSCANY_SDOCPP)/lib,$(TUSCANY_SCACPP)/lib"
- ProgramDatabaseFile=".\Release/Client.pdb"
- SubSystem="1"/>
- <Tool
- Name="VCMIDLTool"
- TypeLibraryName=".\Release/Client.tlb"/>
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="..\deploy.cmd Release"/>
- <Tool
- Name="VCPreBuildEventTool"/>
- <Tool
- Name="VCPreLinkEventTool"/>
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="2057"/>
- <Tool
- Name="VCWebServiceProxyGeneratorTool"/>
- <Tool
- Name="VCWebDeploymentTool"/>
- </Configuration>
- </Configurations>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
- <File
- RelativePath="..\..\..\..\..\Calculator\Client\Calc.cpp">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\Client\Calculator.h">
- </File>
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hpp;hxx;hm;inl">
- </Filter>
- <Filter
- Name="Resource Files"
- Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/WSClient/BuildInstructions.txt b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/WSClient/BuildInstructions.txt deleted file mode 100644 index 3716551f14..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/WSClient/BuildInstructions.txt +++ /dev/null @@ -1,95 +0,0 @@ - -These sample projects will build: - -A basic calculator SCA service. -A client to test that service. -A WSClient to test the service as exposed by AXIS2C as a web service. - -The sample depdends on the current versions of Tuscany SDO and Tuscany SCA, which in turn -depend on axis2c version 0.92, and libxml2. See the SCA and SDO project installation -details. - -The sample already has the pre-generated proxy and wrapper code in it, but should -you need to regenerate these, you will need the command line tool "scagen" which is -part of the Tuscany SCA project. - -The projects expect to following environment variables to be set: -TUSCANY_SCACPP: -The directory in which the sca runtime is deployed - probably something ending in sca/deploy. - -TUSCANY_SDOCPP: -The directory where the sdo runtime is deployed - probably something ending in sdo/deploy. - -TUSCANY_SCACPP_DEFAULT_MODULE: -This is the default module to be loaded by SCA. It consists of <subsystem>/<component>. -In the case of this sample - its set programatically by the client - thats easier when -using visual studio. - -TUSCANY_SCACPP_SYSTEM_ROOT -This is the point from which SCA will start looking for modules to load. Again this is -set programmatically by the sample. - -AXIS2C_HOME: -This is where axis2c is deployed- this is only required by the WSClient project. - -The Calculator project contains a simple calculator service, and the descriptive files -which help the runtime to find the service. - - -Rebuilding the proxy and wrapper classes -======================================== - -If required, go to the Calculator sample main directory, and -type: -"scagen -dir CalculatorModule -output CalculatorModule" - -The generated code is put into the CalculatorModule subdirectory. - -Building the Client project -=========================== - -Set the active project to be "Client", and then build all. -This will re-build Calculator, then rebuild the Client, -The final step of the build will call a batch file "deploy.cmd", -which copies all the required files to the directory samples/Calculator/deploy - -Use Project..Settings..Debug and check the path to the executable, check also the -path to the working directory. Alter these to match your configuration. - -Run the project, and your SCA service should be called. - -Building the WSClient project -============================= - -Modify the services.xml file, and make the SCA system root defined -within it comply with your SCA system root. - -Set the active project to WSClient and build all. - -The last step of the build will run a wsdeploy script, which -tries to use the environment variable AXIS2C_HOME, to create -a services/Calculator directory, and deploy the services.xml file. -The dll which resolves SCA services is called -tuscany_sca_ws_service.dll - this will be copied to the axis -tree by the same script file. - -To run the axis2 http server, go to the %AXIS2C_HOME%/bin -directory, and launch the executable. - -Now verify that the path to the WSClient executable makes sense -in your project settings, and run the project. - - -Note -==== - -It can be quite hard to debug services which are invoked through axis, as the -dll including the service is loaded on call. One useful technique is to -load the axis http server in visual studio (create an empty project and make -the executable path point to axis2_http_server.exe). -Now use the Project..Settings..Debug..Addition DLLs option and add -services/Calculator/tuscany_sca_ws_service.dll. -You will now be able to set breakpoints in the dll (Axis2EntryPointService_invoke -is a good place - in Axis2EntryPointService_skeleton.cpp). -Run your WSclient from another debugger, and the server debugger will break -on the service code. diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/WSClient/WSClient.vcproj b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/WSClient/WSClient.vcproj deleted file mode 100644 index f76277238b..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/WSClient/WSClient.vcproj +++ /dev/null @@ -1,152 +0,0 @@ -<?xml version="1.0" encoding = "Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="7.00"
- Name="WSClient"
- SccProjectName=""
- SccLocalPath="">
- <Platforms>
- <Platform
- Name="Win32"/>
- </Platforms>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory=".\Debug"
- IntermediateDirectory=".\Debug"
- ConfigurationType="1"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="FALSE"
- CharacterSet="2">
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(TUSCANY_SCACPP),$(TUSCANY_SDOCPP)/include,$(AXIS2C_HOME)/include"
- PreprocessorDefinitions="WIN32,_DEBUG,_CONSOLE"
- BasicRuntimeChecks="3"
- RuntimeLibrary="5"
- UsePrecompiledHeader="2"
- PrecompiledHeaderFile=".\Debug/WSClient.pch"
- AssemblerListingLocation=".\Debug/"
- ObjectFile=".\Debug/"
- ProgramDataBaseFileName=".\Debug/"
- WarningLevel="3"
- SuppressStartupBanner="TRUE"
- DebugInformationFormat="4"
- CompileAs="0"/>
- <Tool
- Name="VCCustomBuildTool"/>
- <Tool
- Name="VCLinkerTool"
- AdditionalOptions="/MACHINE:I386"
- AdditionalDependencies="odbc32.lib odbccp32.lib tuscany_sca.lib tuscany_sdo.lib axis2_engine.lib axis2_parser.lib axis2_util.lib axiom.lib"
- OutputFile=".\Debug/WSClient.exe"
- LinkIncremental="2"
- SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories="$(TUSCANY_SCACPP)\lib,$(TUSCANY_SDOCPP)\lib,$(AXIS2C_HOME)\lib"
- GenerateDebugInformation="TRUE"
- ProgramDatabaseFile=".\Debug/WSClient.pdb"
- SubSystem="1"/>
- <Tool
- Name="VCMIDLTool"
- TypeLibraryName=".\Debug/WSClient.tlb"/>
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="..\wsdeploy.cmd Debug"/>
- <Tool
- Name="VCPreBuildEventTool"/>
- <Tool
- Name="VCPreLinkEventTool"/>
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="2057"/>
- <Tool
- Name="VCWebServiceProxyGeneratorTool"/>
- <Tool
- Name="VCWebDeploymentTool"/>
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory=".\Release"
- IntermediateDirectory=".\Release"
- ConfigurationType="1"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="FALSE"
- CharacterSet="2">
- <Tool
- Name="VCCLCompilerTool"
- InlineFunctionExpansion="1"
- AdditionalIncludeDirectories="$(TUSCANY_SCACPP),$(TUSCANY_SDOCPP)/include,$(AXIS2C_HOME)/include"
- PreprocessorDefinitions="WIN32,NDEBUG,_CONSOLE"
- StringPooling="TRUE"
- RuntimeLibrary="4"
- EnableFunctionLevelLinking="TRUE"
- UsePrecompiledHeader="2"
- PrecompiledHeaderFile=".\Release/WSClient.pch"
- AssemblerListingLocation=".\Release/"
- ObjectFile=".\Release/"
- ProgramDataBaseFileName=".\Release/"
- WarningLevel="3"
- SuppressStartupBanner="TRUE"/>
- <Tool
- Name="VCCustomBuildTool"/>
- <Tool
- Name="VCLinkerTool"
- AdditionalOptions="/MACHINE:I386"
- AdditionalDependencies="odbc32.lib odbccp32.lib tuscany_sca.lib tuscany_sdo.lib axis2_engine.lib axis2_parser.lib axis2_util.lib axiom.lib"
- OutputFile=".\Release/WSClient.exe"
- LinkIncremental="1"
- SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories="$(TUSCANY_SCACPP)\lib,$(TUSCANY_SDOCPP)\lib,$(AXIS2C_HOME)\lib"
- ProgramDatabaseFile=".\Release/WSClient.pdb"
- SubSystem="1"/>
- <Tool
- Name="VCMIDLTool"
- TypeLibraryName=".\Release/WSClient.tlb"/>
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="..\wsdeploy.cmd Release"/>
- <Tool
- Name="VCPreBuildEventTool"/>
- <Tool
- Name="VCPreLinkEventTool"/>
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="2057"/>
- <Tool
- Name="VCWebServiceProxyGeneratorTool"/>
- <Tool
- Name="VCWebDeploymentTool"/>
- </Configuration>
- </Configurations>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
- <File
- RelativePath="..\..\..\..\..\Calculator\WSClient\Calculator_Client.cpp">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\WSClient\axis2_Calculator_stub.cpp">
- </File>
- <File
- RelativePath="..\..\..\..\..\Calculator\WSClient\axis2_Calculator_stub.h">
- </File>
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hpp;hxx;hm;inl">
- </Filter>
- <Filter
- Name="Resource Files"
- Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
- </Filter>
- <File
- RelativePath=".\BuildInstructions.txt">
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/deploy.cmd b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/deploy.cmd deleted file mode 100644 index b7b7ba1c05..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/deploy.cmd +++ /dev/null @@ -1,61 +0,0 @@ -@echo off - -@REM Copyright 2006 The Apache Software Foundation or its licensors, as applicable. -@REM -@REM Licensed under the Apache License, Version 2.0 (the "License"); -@REM you may not use this file except in compliance with the License. -@REM 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, software -@REM distributed under the License is distributed on an "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@REM See the License for the specific language governing permissions and -@REM limitations 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%..\..\..\..\Calculator - -set buildMode=Release -if .Debug == %1. ( -set buildMode=Debug -) - - -if . == %2. ( -set destinationPath=%sourcePath%\deploy -) ELSE ( -set destinationPath=%2 -) - -if not exist %destinationPath%\modules mkdir %destinationPath%\modules -if not exist %destinationPath%\modules\CalculatorModule mkdir %destinationPath%\modules\CalculatorModule - -copy %sourcePath%\CalculatorModule\*.componentType %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\sca.module %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Calculator.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\CalculatorImpl.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\DivideService.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\DivideServiceImpl.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Tuscany-model.config %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Calculator.wsdl %destinationPath%\modules\CalculatorModule -copy %currentPath%\Calculator\%buildMode%\Calculator.dll %destinationPath%\modules\CalculatorModule - -if not exist %destinationPath%\bin mkdir %destinationPath%\bin -copy %currentPath%\Client\%buildMode%\Client.exe %destinationPath%\bin -if %buildMode% == Debug ( -copy %currentPath%\Client\%buildMode%\Client.pdb %destinationPath%\bin -) -copy %sourcePath%\Client\runclient.cmd %destinationPath%\bin - - -if not exist %destinationPath%\subsystems mkdir %destinationPath%\subsystems -if not exist %destinationPath%\subsystems\CalculatorSubsystem mkdir %destinationPath%\subsystems\CalculatorSubsystem - -copy %sourcePath%\CalculatorSubsystem\sca.subsystem %destinationPath%\subsystems\CalculatorSubsystem - -endlocal
\ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/wsdeploy.cmd b/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/wsdeploy.cmd deleted file mode 100644 index 68a5090820..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/samples/ides/devstudio7/projects/Calculator/wsdeploy.cmd +++ /dev/null @@ -1,63 +0,0 @@ -@echo off - -@REM Copyright 2006 The Apache Software Foundation or its licensors, as applicable. -@REM -@REM Licensed under the Apache License, Version 2.0 (the "License"); -@REM you may not use this file except in compliance with the License. -@REM 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, software -@REM distributed under the License is distributed on an "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@REM See the License for the specific language governing permissions and -@REM limitations 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%..\..\..\..\Calculator - -set buildMode=Release -if .Debug == %1. ( -set buildMode=Debug -) - - -if . == %2. ( -set destinationPath=%sourcePath%\deploy -) ELSE ( -set destinationPath=%2 -) - - -if not exist %destinationPath%\modules mkdir %destinationPath%\modules -if not exist %destinationPath%\modules\CalculatorModule mkdir %destinationPath%\modules\CalculatorModule - -copy %sourcePath%\CalculatorModule\*.componentType %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\sca.module %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Calculator.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\CalculatorImpl.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\DivideService.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\DivideServiceImpl.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Tuscany-model.config %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Calculator.wsdl %destinationPath%\modules\CalculatorModule -copy %currentPath%\Calculator\%buildMode%\Calculator.dll %destinationPath%\modules\CalculatorModule - -if not exist %destinationPath%\bin mkdir %destinationPath%\bin -copy %currentPath%\WSClient\%buildMode%\WSClient.exe %destinationPath%\bin -if %buildMode% == Debug ( -copy %currentPath%\WSClient\%buildMode%\WSClient.pdb %destinationPath%\bin -) -copy %sourcePath%\WSClient\runwsclient.cmd %destinationPath%\bin - - -if not exist %destinationPath%\subsystems mkdir %destinationPath%\subsystems -if not exist %destinationPath%\subsystems\CalculatorSubsystem mkdir %destinationPath%\subsystems\CalculatorSubsystem - -copy %sourcePath%\CalculatorSubsystem\sca.subsystem %destinationPath%\subsystems\CalculatorSubsystem - - -endlocal
\ No newline at end of file |