You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2006/09/07 11:23:59 UTC
svn commit: r441032 - in /incubator/tuscany/cpp/sca/samples/BigBank: ./
AccountClient/ Accounts/ BigBankSubsystem/ WSAccountClient/
bigbank.account/ bigbank.accountmanagement/ bigbank.client/ bigbank.wsclient/
Author: jsdelfino
Date: Thu Sep 7 02:23:57 2006
New Revision: 441032
URL: http://svn.apache.org/viewvc?view=rev&rev=441032
Log:
Adjusted artifact names and SCDL files to follow the conventions used in the other samples, and be more consistent with the spec and the assembly model whitepapers
Added:
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/
- copied from r440672, incubator/tuscany/cpp/sca/samples/BigBank/Accounts/
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/Makefile.am
- copied, changed from r440992, incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Makefile.am
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteWebService.wsdl
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/bigbank.account.composite
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.accountmanagement/
- copied from r440672, incubator/tuscany/cpp/sca/samples/BigBank/BigBankSubsystem/
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.accountmanagement/bigbank.accountmanagement.composite
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/
- copied from r440672, incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountService.h (with props)
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/runclient.bat
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/
- copied from r440672, incubator/tuscany/cpp/sca/samples/BigBank/WSAccountClient/
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/AccountWSClient.cpp (with props)
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/runwsclient.bat
Removed:
incubator/tuscany/cpp/sca/samples/BigBank/AccountClient/
incubator/tuscany/cpp/sca/samples/BigBank/Accounts/
incubator/tuscany/cpp/sca/samples/BigBank/BigBankSubsystem/
incubator/tuscany/cpp/sca/samples/BigBank/WSAccountClient/
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/Accounts.composite
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/Accounts.dsp
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteService.wsdl
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.accountmanagement/BigBankSubsystem.composite
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountClient.dsp
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/runclient.cmd
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/WSAccountClient.cpp
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/WSAccountClient.dsp
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/runwsclient.cmd
Modified:
incubator/tuscany/cpp/sca/samples/BigBank/Makefile.am
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataService.h
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataServiceImpl.cpp
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataServiceImpl.h
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountService.h
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.componentType
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.cpp
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.h
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteService.h
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteServiceImpl.cpp
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteServiceImpl.h
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteWebService.h
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountClient.cpp
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/Makefile.am
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/runclient.sh
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/Makefile.am
incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/services.xml
incubator/tuscany/cpp/sca/samples/BigBank/deploy.bat
Modified: incubator/tuscany/cpp/sca/samples/BigBank/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/Makefile.am?view=diff&rev=441032&r1=441031&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Makefile.am (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/Makefile.am Thu Sep 7 02:23:57 2006
@@ -1,4 +1,4 @@
-deploydir=$(prefix)/samples/BigBank/deploy/configuration/BigBankSubsystem
-SUBDIRS = Accounts AccountClient WSAccountClient
-EXTRA_DIST = BigBankSubsystem
-deploy_DATA = BigBankSubsystem/BigBankSubsystem.composite
+deploydir=$(prefix)/samples/BigBank/deploy/configuration/bigbank.accountmanagement
+SUBDIRS = bigbank.account bigbank.client bigbank.wsclient
+EXTRA_DIST = bigbank.accountmanagement
+deploy_DATA = bigbank.accountmanagement/bigbank.accountmanagement.composite
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataService.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataService.h?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataService.h (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataService.h Thu Sep 7 02:23:57 2006
@@ -17,46 +17,41 @@
#include "commonj/sdo/SDO.h"
-namespace com
+namespace services
{
- namespace bigbank
+ namespace accountdata
{
- 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;
-
-
- };
+ /**
+ * AccountDataService business 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;
+ } // End accountdata
+} // End services
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataServiceImpl.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataServiceImpl.cpp?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataServiceImpl.cpp (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataServiceImpl.cpp Thu Sep 7 02:23:57 2006
@@ -27,104 +27,106 @@
using namespace commonj::sdo;
using namespace osoa::sca;
-namespace com
+/**
+ * AccountDataServiceImpl component implementation
+ */
+
+namespace services
{
- namespace bigbank
+ namespace accountdata
{
- namespace account
- {
- DataObjectPtr /* CheckingAccount*/ AccountDataServiceImpl::getCheckingAccount(
- const char *id)
- {
- try {
+ DataObjectPtr /* CheckingAccount*/
+ AccountDataServiceImpl::getCheckingAccount(const char *id)
+ {
+ try {
- DataFactoryPtr factory = ComponentContext::getCurrent().getDataFactory();
+ DataFactoryPtr factory = ComponentContext::getCurrent().getDataFactory();
- DataObjectPtr newaccount =
- factory->create("http://www.bigbank.com/AccountService","CheckingAccount");
+ DataObjectPtr newaccount =
+ factory->create("http://www.bigbank.com/AccountService","CheckingAccount");
- char* name = new char[strlen(id) + 10];
- strcpy(name,id);
- strcat(name,"_CHA12345");
+ char* name = new char[strlen(id) + 10];
+ strcpy(name,id);
+ strcat(name,"_CHA12345");
- newaccount->setCString("accountNumber",name);
-
- delete name;
+ newaccount->setCString("accountNumber",name);
+
+ delete name;
- newaccount->setFloat("balance",1500.0f);
+ newaccount->setFloat("balance",1500.0f);
- return newaccount;
+ return newaccount;
- }
- catch (SDORuntimeException e)
- {
- return 0;
- }
}
+ catch (SDORuntimeException e)
+ {
+ return 0;
+ }
+ }
- DataObjectPtr /* SavingsAccount */ AccountDataServiceImpl::getSavingsAccount(
- const char *id)
- {
- try {
+ DataObjectPtr /* SavingsAccount */
+ AccountDataServiceImpl::getSavingsAccount(const char *id)
+ {
+ try {
- DataFactoryPtr factory = ComponentContext::getCurrent().getDataFactory();
+ DataFactoryPtr factory = ComponentContext::getCurrent().getDataFactory();
- DataObjectPtr newaccount =
- factory->create("http://www.bigbank.com/AccountService","SavingsAccount");
+ DataObjectPtr newaccount =
+ factory->create("http://www.bigbank.com/AccountService","SavingsAccount");
- char* name = new char[strlen(id) + 10];
- strcpy(name,id);
- strcat(name,"_SAA12345");
+ char* name = new char[strlen(id) + 10];
+ strcpy(name,id);
+ strcat(name,"_SAA12345");
- newaccount->setCString("accountNumber",name);
-
- delete name;
+ newaccount->setCString("accountNumber",name);
+
+ delete name;
- newaccount->setFloat("balance",1500.0f);
+ newaccount->setFloat("balance",1500.0f);
- return newaccount;
+ return newaccount;
- }
- catch (SDORuntimeException e)
- {
- return 0;
- }
}
+ catch (SDORuntimeException e)
+ {
+ return 0;
+ }
+ }
- DataObjectPtr /* StockAccount */ AccountDataServiceImpl::getStockAccount (
- const char* id)
- {
- try {
+ DataObjectPtr /* StockAccount */
+ AccountDataServiceImpl::getStockAccount (const char* id)
+ {
+ try {
- DataFactoryPtr factory = ComponentContext::getCurrent().getDataFactory();
+ DataFactoryPtr factory = ComponentContext::getCurrent().getDataFactory();
- DataObjectPtr newaccount =
- factory->create("http://www.bigbank.com/AccountService","StockAccount");
+ DataObjectPtr newaccount =
+ factory->create("http://www.bigbank.com/AccountService","StockAccount");
- char* name = new char[strlen(id) + 10];
- strcpy(name,id);
- strcat(name,"_STA12345");
+ char* name = new char[strlen(id) + 10];
+ strcpy(name,id);
+ strcat(name,"_STA12345");
- newaccount->setCString("accountNumber",name);
-
- delete name;
+ newaccount->setCString("accountNumber",name);
+
+ delete name;
- newaccount->setCString("symbol","IBM");
+ newaccount->setCString("symbol","IBM");
- newaccount->setInteger("quantity",100);
+ newaccount->setInteger("quantity",100);
- return newaccount;
+ return newaccount;
- }
- catch (SDORuntimeException e)
- {
- return 0;
- }
+ }
+ catch (SDORuntimeException e)
+ {
+ return 0;
}
}
- }
-}
\ No newline at end of file
+
+ } // End accountdata
+} // End services
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataServiceImpl.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataServiceImpl.h?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataServiceImpl.h (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountDataServiceImpl.h Thu Sep 7 02:23:57 2006
@@ -15,47 +15,43 @@
* limitations under the License.
*/
-
#include "AccountDataService.h"
-
-namespace com
+namespace services
{
- namespace bigbank
+ namespace accountdata
{
- namespace account
- {
- /*
- * AccountDataService C interface
- */
-
- class AccountDataServiceImpl : public AccountDataService {
+ /**
+ * AccountDataServiceImpl component implementation class
+ */
+ class AccountDataServiceImpl : public AccountDataService
+ {
+ public:
- public:
// CheckingAccount is a data object containing
- // String "accountNumber"
+ // string accountNumber
// float balance
virtual DataObjectPtr /* CheckingAccount*/ getCheckingAccount(
const char *id);
// SavingsAccount is a data object containing
- // String accountNumber
+ // string accountNumber
// float balance
virtual DataObjectPtr /* SavingsAccount */ getSavingsAccount(
const char *id);
// StockAccount is a data object containing
- // String accountNumber
- // String symbol
+ // string accountNumber
+ // string symbol
// int quantity
virtual DataObjectPtr /* StockAccount */ getStockAccount (
const char* id);
- };
- }
- }
-}
+ };
+
+ } // End accountdata
+} // End services
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountService.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountService.h?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountService.h (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountService.h Thu Sep 7 02:23:57 2006
@@ -15,44 +15,31 @@
* limitations under the License.
*/
-/**
- * AccountService.h
- *
- */
+#include "commonj/sdo/SDO.h"
-
-#include <commonj/sdo/SDO.h>
-
-
-namespace com
+namespace services
{
- namespace bigbank
+ namespace account
{
- namespace account
- {
- /*
- * AccountService C interface
- */
-
- class AccountService {
-
- public:
+ /**
+ * AccountService business interface
+ */
+ class AccountService
+ {
+ public:
- //The account report data object has one many-valued
- // property "accountSummaries".
- // This had properties
- // String accountNumber
- // String accountType
- // Float balance.
+ // The account report data object has one many-valued
+ // property "accountSummaries", containing the following
+ // properties:
+ // string accountNumber
+ // string accountType
+ // float balance.
- virtual commonj::sdo::DataObjectPtr /*AccountReport*/
- getAccountReport(const char* customerID) = 0;
-
-
- };
+ virtual commonj::sdo::DataObjectPtr /*AccountReport*/
+ getAccountReport(const char* customerID) = 0;
- }
- }
-} // namespaces
-
\ No newline at end of file
+ };
+
+ } // End account
+} // End services
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.componentType?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.componentType (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.componentType Thu Sep 7 02:23:57 2006
@@ -22,11 +22,11 @@
<interface.cpp header="AccountService.h"/>
</service>
- <reference name="accountData">
+ <reference name="accountDataService">
<interface.cpp header="AccountDataService.h"/>
</reference>
- <reference name="stockQuote">
+ <reference name="stockQuoteService">
<interface.cpp header="StockQuoteService.h"/>
</reference>
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.cpp?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.cpp (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.cpp Thu Sep 7 02:23:57 2006
@@ -19,160 +19,108 @@
#pragma warning(disable: 4786)
#endif
+#include "osoa/sca/sca.h"
+
#include "AccountServiceImpl.h"
#include "StockQuoteService.h"
#include "AccountDataService.h"
-#include "osoa/sca/sca.h"
-
using namespace osoa::sca;
+using namespace services::accountdata;
+using namespace services::stockquote;
-
-namespace com
+/**
+ * AccountServiceImpl component implementation
+ */
+namespace services
{
- namespace bigbank
+ namespace account
{
- namespace account
+
+ DataObjectPtr /*AccountReport**/
+ AccountServiceImpl::getAccountReport(const char* customerID)
{
+ ComponentContext theContext = ComponentContext::getCurrent();
+
+ commonj::sdo::DataFactoryPtr factory = theContext.getDataFactory();
+
+ commonj::sdo::DataObjectPtr newReport =
+ factory->create("http://www.bigbank.com/AccountService","AccountReport");
- 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.
+ // Get the accountDataService service
+ AccountDataService *dataService =
+ (AccountDataService*)theContext.getService("accountDataService");
- //ComponentContext myContext = ComponentContext::getCurrent();
-
- //dataService =
- // (AccountDataService*)myContext.getService("AccountDataService");
-
- //stockService =
- // (StockQuoteService*)myContext.getService("StockQuoteService");
+ // would be better to return a list of accounts - this only
+ // gets the first of each.
- }
+ commonj::sdo::DataObjectPtr checking =
+ dataService->getCheckingAccount(customerID);
- //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");
+ if (checking != 0)
+ {
+ commonj::sdo::DataObjectList& dl = newReport->getList("checking");
+ checking->setFloat("balance",
+ fromUSDollarToCurrency(checking->getFloat("balance")));
+ dl.append(checking);
+ }
- //initialized = true;
- //}
+ commonj::sdo::DataObjectPtr savings = dataService->getSavingsAccount(customerID);
- AccountServiceImpl::~AccountServiceImpl()
+ if (savings != 0)
{
+ commonj::sdo::DataObjectList& dl = newReport->getList("savings");
+ savings->setFloat("balance",
+ fromUSDollarToCurrency(savings->getFloat("balance")));
+ dl.append(savings);
}
- DataObjectPtr /*AccountReport**/
- AccountServiceImpl::getAccountReport(const char* customerID)
+ // Get the stockQuoteService service
+ StockQuoteService* stockService =
+ (StockQuoteService*)theContext.getService("stockQuoteService");
+
+ commonj::sdo::DataObjectPtr stocks = dataService->getStockAccount(customerID);
+
+ if (stocks != 0)
{
- try {
+ commonj::sdo::DataObjectList& dl = newReport->getList("stocks");
- ComponentContext theContext = ComponentContext::getCurrent();
-
- commonj::sdo::DataFactoryPtr factory = theContext.getDataFactory();
-
- commonj::sdo::DataObjectPtr newReport =
- factory->create("http://www.bigbank.com/AccountService","AccountReport");
-
- com::bigbank::account::AccountDataService *dataService =
- (com::bigbank::account::AccountDataService*)theContext.getService("accountData");
-
- 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(customerID);
-
- 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(customerID);
-
- 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 Service registered" << std::endl;
- return newReport;
- }
-
- commonj::sdo::DataObjectPtr stocks = dataService->getStockAccount(customerID);
-
- 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;
+ float value = 10.0f;
+ try {
+ value = stockService->getQuote(
+ stocks->getCString("symbol"));
}
- catch (SDORuntimeException& e)
+ catch (ServiceRuntimeException& e)
{
- std::cout << "Error from SDO: " << e << std::endl;
- return 0;
+ std::cout << "Fault from stock quote service" << e << std::endl;
}
+ stocks->setFloat("balance",
+ fromUSDollarToCurrency(stocks->getInteger("quantity") *
+ value));
+ dl.append(stocks);
}
+
+ return newReport;
+ }
-
- float AccountServiceImpl::fromUSDollarToCurrency(float value)
+ float AccountServiceImpl::fromUSDollarToCurrency(float value)
+ {
+ // Get the "currency" property
+ ComponentContext myContext = ComponentContext::getCurrent();
+
+ commonj::sdo::DataObjectInstance properties = myContext.getProperties();
+ if (properties)
{
- // 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)
{
- 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;
- }
+ std::cout << "Currency is : " << currency << std::endl;
+ if (!strcmp(currency,"USD")) return value;
+ if (!strcmp(currency,"EURO")) return 0.8f * value;
}
- return 0.0f;
}
+ return 0.0f;
}
- }
-} // namespaces
+
+ } // End account
+} // End services
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.h?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.h (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/AccountServiceImpl.h Thu Sep 7 02:23:57 2006
@@ -18,41 +18,32 @@
#include "AccountService.h"
-namespace com
+namespace services
{
- namespace bigbank
+ namespace account
{
- namespace account
- {
-
-class AccountServiceImpl: public AccountService
- {
-
- public:
-
-
- AccountServiceImpl();
- virtual ~AccountServiceImpl();
- // public API
-
- virtual DataObjectPtr /*AccountReport*/
- getAccountReport(const char* customerID);
-
-
- //virtual void lazyGetDependencies();
-
-private:
-
-
- float fromUSDollarToCurrency(float value);
-
- bool initialized;
-
-};
+ /**
+ * AccountServiceImpl component implementation class
+ */
+ class AccountServiceImpl: public AccountService
+ {
+ public:
+
+ AccountServiceImpl();
+ virtual ~AccountServiceImpl();
+
+ // public business methods
+
+ virtual DataObjectPtr /*AccountReport*/
+ getAccountReport(const char* customerID);
+
+ private:
+
+ float fromUSDollarToCurrency(float value);
+
+ };
-}
-}
-} // namespaces
+ } // End account
+} // End services
-using namespace com::bigbank::account;
Copied: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/Makefile.am (from r440992, incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Makefile.am)
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/Makefile.am?view=diff&rev=441032&p1=incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Makefile.am&r1=440992&p2=incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/Makefile.am&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/Accounts/Makefile.am (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/Makefile.am Thu Sep 7 02:23:57 2006
@@ -1,41 +1,44 @@
deploydir=$(prefix)/samples/BigBank/deploy
-compositedir=$(deploydir)/packages/Accounts
+compositedir=$(deploydir)/packages/bigbank.account
BUILT_SOURCES = AccountDataServiceImpl_AccountDataService_Proxy.cpp \
AccountDataServiceImpl_AccountDataService_Wrapper.cpp \
-AccountServiceImpl_accountData_Proxy.cpp \
+AccountServiceImpl_accountDataService_Proxy.cpp \
AccountServiceImpl_AccountService_Proxy.cpp \
AccountServiceImpl_AccountService_Wrapper.cpp \
-AccountServiceImpl_stockQuote_Proxy.cpp \
-StockQuoteServiceImpl_webService_Proxy.cpp \
+AccountServiceImpl_stockQuoteService_Proxy.cpp \
StockQuoteServiceImpl_StockQuoteService_Proxy.cpp \
-StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp
+StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp \
+StockQuoteServiceImpl_webService_Proxy.cpp
noinst_HEADERS = *.h
-${BUILT_SOURCES}: Accounts.composite
+${BUILT_SOURCES}: bigbank.account.composite
java -jar $(TUSCANY_SCACPP)/bin/scagen.jar -dir . -output .
-composite_LTLIBRARIES = libAccounts.la
+composite_LTLIBRARIES = libAccount.la
composite_DATA = *.composite *.componentType *.wsdl *.xsd
EXTRA_DIST = *.composite *.componentType *.wsdl *.xsd
-libAccounts_la_SOURCES = \
-AccountDataServiceImpl.cpp \
-AccountServiceImpl.cpp \
-StockQuoteServiceImpl.cpp \
+libAccount_la_SOURCES = \
AccountDataServiceImpl_AccountDataService_Proxy.cpp \
AccountDataServiceImpl_AccountDataService_Wrapper.cpp \
-AccountServiceImpl_accountData_Proxy.cpp \
+AccountDataServiceImpl.cpp \
+AccountServiceImpl_accountDataService_Proxy.cpp \
AccountServiceImpl_AccountService_Proxy.cpp \
AccountServiceImpl_AccountService_Wrapper.cpp \
-AccountServiceImpl_stockQuote_Proxy.cpp \
-StockQuoteServiceImpl_webService_Proxy.cpp \
+AccountServiceImpl.cpp \
+AccountServiceImpl_stockQuoteService_Proxy.cpp \
+StockQuoteServiceImpl.cpp \
StockQuoteServiceImpl_StockQuoteService_Proxy.cpp \
-StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp
+StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp \
+StockQuoteServiceImpl_webService_Proxy.cpp
-libAccounts_la_LIBADD = -L${TUSCANY_SCACPP}/lib -ltuscany_sca \
- -L${TUSCANY_SCACPP}/extensions/cpp/lib -ltuscany_sca_cpp
+libAccount_la_LIBADD = \
+-L${TUSCANY_SCACPP}/lib \
+ -ltuscany_sca \
+-L${TUSCANY_SCACPP}/extensions/cpp/lib \
+ -ltuscany_sca_cpp
INCLUDES = \
-I$(TUSCANY_SCACPP)/extensions/cpp/include \
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteService.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteService.h?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteService.h (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteService.h Thu Sep 7 02:23:57 2006
@@ -15,26 +15,20 @@
* limitations under the License.
*/
-
-namespace com
+namespace services
{
- namespace bigbank
+ namespace stockquote
{
- namespace stockquote
+ /**
+ * StockQuoteService business interface
+ */
+ class StockQuoteService
{
+ public:
- /*
- * StockQuote interface
- */
-
- class StockQuoteService {
- public:
- virtual float getQuote(const char* symbol) = 0;
-
- };
+ virtual float getQuote(const char* symbol) = 0;
- }
- }
-} // namespace;
+ };
-using namespace com::bigbank::stockquote;
+ } // End stockquote
+} // End services
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteServiceImpl.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteServiceImpl.cpp?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteServiceImpl.cpp (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteServiceImpl.cpp Thu Sep 7 02:23:57 2006
@@ -28,51 +28,45 @@
using namespace osoa::sca;
using namespace commonj::sdo;
-namespace com{
- namespace bigbank{
- namespace stockquote {
-
-
- float StockQuoteServiceImpl::getQuote(const char *symbol)
+/**
+ * StockQuoteServiceImpl component implementation
+ */
+namespace services {
+ namespace stockquote {
+
+ // Map the format returned by the StockQuote Web service to
+ // the format expected in the BigBank application
+ float StockQuoteServiceImpl::getQuote(const char *symbol)
+ {
+ ComponentContext myContext = ComponentContext::getCurrent();
+
+ // Get the StockQuote Web service
+ StockQuoteWebService* webService =
+ (StockQuoteWebService*)myContext.getService("webService");
+
+ // Invoke the service
+ const char* result = webService->GetQuote(symbol);
+
+ float stockPrice = 0.0f;
+
+ // Get the stock price out of the document returned by the StockQuote
+ // Web service
+ try
{
- ComponentContext myContext = ComponentContext::getCurrent();
-
- // Use an SCA reference to get the stock price
- StockQuoteWebService* webService =
- (StockQuoteWebService*)myContext.getService("webService");
-
- if (webService == 0)
+ XMLHelperPtr xmlHelper = HelperProvider::getXMLHelper(myContext.getDataFactory());
+ XMLDocumentPtr stockDoc = xmlHelper->load(result);
+ if (stockDoc->getRootDataObject())
{
- std::cout << "unable to find external stock quote service" << std::endl;
- return 0.1f;
+ stockPrice=stockDoc->getRootDataObject()->getFloat("Stock.0/Last");
}
-
- // Create a data object representing the requests (use dynamic API until static is available)
- DataObjectPtr requestDO;
-
- // Invoke the service
- const char* result = webService->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;
}
+ catch (SDORuntimeException e)
+ {
+ std::cout << e << std::endl;
+ return 0.0f;
+ }
+ return stockPrice;
}
- }
-}
\ No newline at end of file
+
+ } // End stockquote
+} // End services
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteServiceImpl.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteServiceImpl.h?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteServiceImpl.h (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteServiceImpl.h Thu Sep 7 02:23:57 2006
@@ -17,25 +17,20 @@
#include "StockQuoteService.h"
-
-namespace com
+namespace services
{
- namespace bigbank
+ namespace stockquote
{
- namespace stockquote
- {
-
- /*
- * StockQuote interface
- */
- class StockQuoteServiceImpl : public StockQuoteService {
+ /**
+ * StockQuoteServiceImpl component implementation class
+ */
+ class StockQuoteServiceImpl : public StockQuoteService
+ {
public:
- virtual float getQuote(const char* symbol);
-
- };
-
-
-}
-}
-} // namespace;
+
+ virtual float getQuote(const char* symbol);
+ };
+
+ } // End stockquote
+} // End services
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteWebService.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteWebService.h?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteWebService.h (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteWebService.h Thu Sep 7 02:23:57 2006
@@ -15,27 +15,24 @@
* limitations under the License.
*/
-#include "commonj/sdo/SDO.h"
-using namespace commonj::sdo;
-
-
-namespace com
+namespace services
{
- namespace bigbank
+ namespace stockquote
{
- namespace stockquote
- {
-
- /*
- * StockQuote interface
- */
- class StockQuoteWebService {
- public:
- virtual const char* GetQuote(const char* symbol) = 0;
-
- };
-
- }
- }
-} // namespace;
+ /**
+ * StockQuoteWebService business interface
+ *
+ * This is the interface of the Web service used to get
+ * live stock quotes.
+ */
+ class StockQuoteWebService
+ {
+ public:
+
+ virtual const char* GetQuote(const char* symbol) = 0;
+
+ };
+
+ } // End stockquote
+} // End services
Added: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteWebService.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteWebService.wsdl?view=auto&rev=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteWebService.wsdl (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/StockQuoteWebService.wsdl Thu Sep 7 02:23:57 2006
@@ -0,0 +1,161 @@
+<?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.
+-->
+<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:s="http://www.w3.org/2001/XMLSchema"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:tns="http://www.webserviceX.NET/"
+ xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
+ xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+ targetNamespace="http://www.webserviceX.NET/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+ <wsdl:types>
+ <s:schema elementFormDefault="qualified"
+ targetNamespace="http://www.webserviceX.NET/">
+ <s:element name="GetQuote">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1"
+ name="symbol" type="s:string" />
+ </s:sequence>
+ </s:complexType>
+
+ </s:element>
+ <s:element name="GetQuoteResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="0" maxOccurs="1"
+ name="GetQuoteResult" type="s:string" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:element name="string" nillable="true" type="s:string" />
+
+ </s:schema>
+ </wsdl:types>
+ <wsdl:message name="GetQuoteSoapIn">
+ <wsdl:part name="parameters" element="tns:GetQuote" />
+ </wsdl:message>
+ <wsdl:message name="GetQuoteSoapOut">
+ <wsdl:part name="parameters" element="tns:GetQuoteResponse" />
+ </wsdl:message>
+ <wsdl:message name="GetQuoteHttpGetIn">
+
+ <wsdl:part name="symbol" type="s:string" />
+ </wsdl:message>
+ <wsdl:message name="GetQuoteHttpGetOut">
+ <wsdl:part name="Body" element="tns:string" />
+ </wsdl:message>
+ <wsdl:message name="GetQuoteHttpPostIn">
+ <wsdl:part name="symbol" type="s:string" />
+ </wsdl:message>
+ <wsdl:message name="GetQuoteHttpPostOut">
+
+ <wsdl:part name="Body" element="tns:string" />
+ </wsdl:message>
+ <wsdl:portType name="StockQuoteSoap">
+ <wsdl:operation name="GetQuote">
+ <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">
+ Get Stock quote for a company Symbol
+ </documentation>
+ <wsdl:input message="tns:GetQuoteSoapIn" />
+ <wsdl:output message="tns:GetQuoteSoapOut" />
+ </wsdl:operation>
+
+ </wsdl:portType>
+ <wsdl:portType name="StockQuoteHttpGet">
+ <wsdl:operation name="GetQuote">
+ <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">
+ Get Stock quote for a company Symbol
+ </documentation>
+ <wsdl:input message="tns:GetQuoteHttpGetIn" />
+ <wsdl:output message="tns:GetQuoteHttpGetOut" />
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:portType name="StockQuoteHttpPost">
+ <wsdl:operation name="GetQuote">
+ <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">
+ Get Stock quote for a company Symbol
+ </documentation>
+ <wsdl:input message="tns:GetQuoteHttpPostIn" />
+ <wsdl:output message="tns:GetQuoteHttpPostOut" />
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="StockQuoteSoap" type="tns:StockQuoteSoap">
+
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
+ style="document" />
+ <wsdl:operation name="GetQuote">
+ <soap:operation
+ soapAction="http://www.webserviceX.NET/GetQuote" style="document" />
+ <wsdl:input>
+ <soap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" />
+ </wsdl:output>
+
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="StockQuoteHttpGet"
+ type="tns:StockQuoteHttpGet">
+ <http:binding verb="GET" />
+ <wsdl:operation name="GetQuote">
+ <http:operation location="/GetQuote" />
+ <wsdl:input>
+ <http:urlEncoded />
+ </wsdl:input>
+
+ <wsdl:output>
+ <mime:mimeXml part="Body" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="StockQuoteHttpPost"
+ type="tns:StockQuoteHttpPost">
+ <http:binding verb="POST" />
+ <wsdl:operation name="GetQuote">
+ <http:operation location="/GetQuote" />
+
+ <wsdl:input>
+ <mime:content type="application/x-www-form-urlencoded" />
+ </wsdl:input>
+ <wsdl:output>
+ <mime:mimeXml part="Body" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="StockQuote">
+
+ <wsdl:port name="StockQuoteSoap" binding="tns:StockQuoteSoap">
+ <soap:address
+ location="http://www.webservicex.net/stockquote.asmx" />
+ </wsdl:port>
+ <wsdl:port name="StockQuoteHttpGet"
+ binding="tns:StockQuoteHttpGet">
+ <http:address
+ location="http://www.webservicex.net/stockquote.asmx" />
+ </wsdl:port>
+ <wsdl:port name="StockQuoteHttpPost"
+ binding="tns:StockQuoteHttpPost">
+ <http:address
+ location="http://www.webservicex.net/stockquote.asmx" />
+ </wsdl:port>
+
+ </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file
Added: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/bigbank.account.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/bigbank.account.composite?view=auto&rev=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/bigbank.account.composite (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.account/bigbank.account.composite Thu Sep 7 02:23:57 2006
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+ -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ name="bigbank.account">
+
+ <service name="AccountService">
+ <interface.wsdl interface="http://www.bigbank.com/AccountService#wsdl.interface(AccountService)"/>
+ <binding.ws port="http://www.bigbank.com/AccountService#wsdl.endpoint(AccountService/AccountServiceSOAP)"/>
+ <reference>AccountServiceComponent</reference>
+ </service>
+
+ <component name="AccountServiceComponent">
+ <implementation.cpp library="Account" header="AccountServiceImpl.h"/>
+ <reference name="accountDataService">AccountDataServiceComponent</reference>
+ <reference name="stockQuoteService">StockQuoteServiceComponent</reference>
+ <property name="currency">EURO</property>
+ </component>
+
+ <component name="AccountDataServiceComponent">
+ <implementation.cpp library="Account" header="AccountDataServiceImpl.h"/>
+ </component>
+
+ <component name="StockQuoteServiceComponent">
+ <implementation.cpp library="Account" header="StockQuoteServiceImpl.h"/>
+ <reference name="webService">StockQuoteWebService</reference>
+ </component>
+
+ <reference name="StockQuoteWebService">
+ <interface.wsdl interface="http://www.webserviceX.NET/#wsdl.interface(StockQuoteSoap)"/>
+ <binding.ws port="http://www.webserviceX.NET/#wsdl.endpoint(StockQuote/StockQuoteSoap)"/>
+ </reference>
+
+</composite>
Added: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.accountmanagement/bigbank.accountmanagement.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.accountmanagement/bigbank.accountmanagement.composite?view=auto&rev=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.accountmanagement/bigbank.accountmanagement.composite (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.accountmanagement/bigbank.accountmanagement.composite Thu Sep 7 02:23:57 2006
@@ -0,0 +1,26 @@
+<?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.
+ -->
+
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ name="bigbank.accountmanagement">
+
+ <component name="bigbank.AccountManagementComponent">
+ <implementation.composite name="bigbank.account"/>
+ </component>
+
+</composite>
+
\ No newline at end of file
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountClient.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountClient.cpp?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountClient.cpp (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountClient.cpp Thu Sep 7 02:23:57 2006
@@ -26,7 +26,7 @@
using namespace osoa::sca;
using namespace std;
-using namespace com::bigbank::account;
+using namespace services::account;
using namespace commonj::sdo;
int main(int argc, char* argv[])
@@ -34,7 +34,7 @@
if (argc != 2)
{
- cout << "AccountClient: Argument must be the name of the account" << endl;
+ cout << "account_client: Argument must be the name of the account" << endl;
return 0;
}
try
@@ -46,7 +46,7 @@
(AccountService*) myContext.locateService("AccountServiceComponent");
if (accountService == 0)
{
- cout << "AccountClient: Unable to find Account service" << endl;
+ cout << "account_client: Unable to find Account service" << endl;
}
else
{
@@ -107,7 +107,7 @@
}
catch (char* x)
{
- cout << "AccountService: exception caught: " << x << endl;
+ cout << "account_client: exception caught: " << x << endl;
}
}
Added: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountService.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountService.h?view=auto&rev=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountService.h (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountService.h Thu Sep 7 02:23:57 2006
@@ -0,0 +1,45 @@
+/*
+ *
+ * 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 services
+{
+ namespace account
+ {
+
+ /**
+ * AccountService business interface
+ */
+ class AccountService
+ {
+ public:
+
+ // The account report data object has one many-valued
+ // property "accountSummaries", containing the following
+ // properties:
+ // string accountNumber
+ // string accountType
+ // float balance.
+
+ virtual commonj::sdo::DataObjectPtr /*AccountReport*/
+ getAccountReport(const char* customerID) = 0;
+
+ };
+
+ } // End account
+} // End services
Propchange: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountService.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/AccountService.h
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/Makefile.am?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/Makefile.am (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/Makefile.am Thu Sep 7 02:23:57 2006
@@ -23,7 +23,6 @@
-laxis2_http_receiver
-INCLUDES = -I$(top_builddir)/BigBank/Accounts \
- -I$(TUSCANY_SCACPP)/extensions/cpp/include \
+INCLUDES = -I$(TUSCANY_SCACPP)/extensions/cpp/include \
-I${TUSCANY_SCACPP}/include \
-I${TUSCANY_SDOCPP}/include
Added: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/runclient.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/runclient.bat?view=auto&rev=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/runclient.bat (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/runclient.bat Thu Sep 7 02:23:57 2006
@@ -0,0 +1,47 @@
+@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 "%TUSCANY_SCACPP%" == "" (
+echo "TUSCANY_SCACPP not set"
+goto end
+)
+echo Using SCA installed at %TUSCANY_SCACPP%
+
+if "%TUSCANY_SDOCPP%" == "" (
+echo "TUSCANY_SDOCPP not set"
+goto end
+)
+echo Using SDO installed at %TUSCANY_SDOCPP%
+
+if "%AXIS2C_HOME%" == "" (
+echo "AXIS2C_HOME not set"
+goto end
+)
+echo Using Axis2C installed at %AXIS2C_HOME%
+
+set APFULLDIR=%~d0%~p0
+set TUSCANY_SCACPP_SYSTEM_ROOT=%~d0%~p0\..\
+set TUSCANY_SCACPP_DEFAULT_COMPONENT=bigbank.AccountManagementComponent
+
+rem Run the client
+set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SCACPP%\extensions\cpp\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH%
+
+.\AccountClient.exe 1234
+
+:end
+endlocal
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/runclient.sh
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/runclient.sh?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/runclient.sh (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.client/runclient.sh Thu Sep 7 02:23:57 2006
@@ -39,7 +39,7 @@
export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH
export TUSCANY_SCACPP_SYSTEM_ROOT=$TEST_SYSTEM
-export TUSCANY_SCACPP_DEFAULT_COMPONENT=AccountsService
+export TUSCANY_SCACPP_DEFAULT_COMPONENT=bigbank.AccountManagementComponent
./account_client 1234
Added: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/AccountWSClient.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/AccountWSClient.cpp?view=auto&rev=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/AccountWSClient.cpp (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/AccountWSClient.cpp Thu Sep 7 02:23:57 2006
@@ -0,0 +1,179 @@
+/*
+ * 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( "BigBank_blocking.log", AXIS2_LOG_LEVEL_TRACE);
+
+ client_home = AXIS2_GETENV("AXIS2C_HOME");
+ if (!client_home)
+ client_home = "../../deploy";
+
+ address = "http://localhost:9090/axis2/services/BigBank";
+ 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;
+}
Propchange: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/AccountWSClient.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/AccountWSClient.cpp
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/Makefile.am?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/Makefile.am (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/Makefile.am Thu Sep 7 02:23:57 2006
@@ -6,7 +6,7 @@
EXTRA_DIST = runwsclient.sh
AM_CPPFLAGS = $(CPPFLAGS)
-account_wsclient_SOURCES = axis2_Account_stub.cpp WSAccountClient.cpp
+account_wsclient_SOURCES = axis2_Account_stub.cpp AccountWSClient.cpp
noinst_HEADERS = *.h
account_wsclient_LDADD = -L$(AXIS2C_HOME)/lib \
Added: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/runwsclient.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/runwsclient.bat?view=auto&rev=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/runwsclient.bat (added)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/runwsclient.bat Thu Sep 7 02:23:57 2006
@@ -0,0 +1,28 @@
+@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 installed at %AXIS2C_HOME%"
+
+rem Run the client
+WSAccountClient.exe %*
+:end
+endlocal
Modified: incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/services.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/services.xml?view=diff&rev=441032&r1=440672&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/services.xml (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/bigbank.wsclient/services.xml Thu Sep 7 02:23:57 2006
@@ -17,10 +17,10 @@
<service name="BigBank">
<parameter name="ServiceClass" locked="xsd:false">tuscany_sca_ws_service</parameter>
<parameter name="TuscanySystemRoot" locked="xsd:false">PATH-TO-TUSCANY-SCA/samples/BigBank/deploy</parameter>
- <parameter name="TuscanyService" locked="xsd:false">AccountsService/WSAccountService</parameter>
+ <parameter name="TuscanyService" locked="xsd:false">bigbank.AccountManagementComponent/AccountService</parameter>
<description>
- This is a testing service, named 'BigBank' to test multiple operations in the same service
+ This is the SCA 'BigBank' sample service
</description>
<operation name="getAccountReport">
Modified: incubator/tuscany/cpp/sca/samples/BigBank/deploy.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/BigBank/deploy.bat?view=diff&rev=441032&r1=441031&r2=441032
==============================================================================
--- incubator/tuscany/cpp/sca/samples/BigBank/deploy.bat (original)
+++ incubator/tuscany/cpp/sca/samples/BigBank/deploy.bat Thu Sep 7 02:23:57 2006
@@ -1,35 +1,35 @@
if not exist deploy mkdir deploy
if not exist deploy\packages mkdir deploy\packages
-if not exist deploy\packages\Accounts mkdir deploy\packages\Accounts
+if not exist deploy\packages\bigbank.account mkdir deploy\packages\bigbank.account
if not exist deploy\configuration mkdir deploy\configuration
-if not exist deploy\configuration\Accounts mkdir deploy\configuration\Accounts
+if not exist deploy\configuration\bigbank.account mkdir deploy\configuration\bigbank.accountmanagement
if not exist deploy\bin mkdir deploy\bin
-copy Accounts\Debug\Accounts.dll deploy\packages\Accounts
-copy Accounts\Debug\Accounts.pdb deploy\packages\Accounts
-copy Accounts\AccountServiceImpl.h deploy\packages\Accounts
-copy Accounts\AccountService.h deploy\packages\Accounts
-copy Accounts\AccountDataServiceImpl.h deploy\packages\Accounts
-copy Accounts\AccountDataService.h deploy\packages\Accounts
-copy Accounts\StockQuoteService.h deploy\packages\Accounts
-copy Accounts\StockQuoteServiceImpl.h deploy\packages\Accounts
-copy Accounts\StockQuoteWebService.h deploy\packages\Accounts
-copy Accounts\Accounts.composite deploy\packages\Accounts
-copy Accounts\AccountServiceImpl.componentType deploy\packages\Accounts
-copy Accounts\AccountDataServiceImpl.componentType deploy\packages\Accounts
-copy Accounts\StockQuoteServiceImpl.componentType deploy\packages\Accounts
-copy Accounts\AccountService.wsdl deploy\packages\Accounts
-copy Accounts\StockQuoteService.wsdl deploy\packages\Accounts
-copy Accounts\StockQuoteTypes.xsd deploy\packages\Accounts
+copy bigbank.account\Debug\Account.dll deploy\packages\bigbank.account
+copy bigbank.account\Debug\Account.pdb deploy\packages\bigbank.account
+copy bigbank.account\AccountServiceImpl.h deploy\packages\bigbank.account
+copy bigbank.account\AccountService.h deploy\packages\bigbank.account
+copy bigbank.account\AccountDataServiceImpl.h deploy\packages\bigbank.account
+copy bigbank.account\AccountDataService.h deploy\packages\bigbank.account
+copy bigbank.account\StockQuoteService.h deploy\packages\bigbank.account
+copy bigbank.account\StockQuoteServiceImpl.h deploy\packages\bigbank.account
+copy bigbank.account\StockQuoteWebService.h deploy\packages\bigbank.account
+copy bigbank.account\bigbank.account.composite deploy\packages\bigbank.account
+copy bigbank.account\AccountServiceImpl.componentType deploy\packages\bigbank.account
+copy bigbank.account\AccountDataServiceImpl.componentType deploy\packages\bigbank.account
+copy bigbank.account\StockQuoteServiceImpl.componentType deploy\packages\bigbank.account
+copy bigbank.account\AccountService.wsdl deploy\packages\bigbank.account
+copy bigbank.account\StockQuoteService.wsdl deploy\packages\bigbank.account
+copy bigbank.account\StockQuoteTypes.xsd deploy\packages\bigbank.account
-copy BigBankSubsystem\BigBankSubsystem.composite deploy\configuration\Accounts
+copy bigbank.accountmanagement\bigbank.accountmanagement.composite deploy\configuration\bigbank.accountmanagement
-copy AccountClient\Debug\AccountClient.exe deploy\bin
-copy AccountClient\Debug\AccountClient.pdb deploy\bin
-copy AccountClient\runclient.cmd deploy\bin
+copy bigbank.client\Debug\account_client.exe deploy\bin
+copy bigbank.client\Debug\account_client.pdb deploy\bin
+copy bigbank.client\runclient.cmd deploy\bin
-copy WSAccountClient\Debug\WSAccountClient.exe deploy\bin
-copy WSAccountClient\Debug\WSAccountClient.pdb deploy\bin
-copy WSAccountClient\runwsclient.cmd deploy\bin
+copy bigbank.wsclient\Debug\account_wsclient.exe deploy\bin
+copy bigbank.wsclient\Debug\account_wsclient.pdb deploy\bin
+copy bigbank.wsclient\runwsclient.cmd deploy\bin
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org