From 3f2d2c529886c804178874ca53e1c3b54e4cd041 Mon Sep 17 00:00:00 2001 From: lresende Date: Thu, 19 Nov 2009 17:58:34 +0000 Subject: Removing obsolete release candidate tag git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882224 13f79535-47bb-0310-9956-ffa450edef68 --- .../MyValue/MyValueModule/CustomerInfo.fragment | 36 ----- .../MyValueModule/CustomerInfo/CustomerInfo.h | 30 ---- .../CustomerInfo/CustomerInfoImpl.componentType | 30 ---- .../CustomerInfo/CustomerInfoImpl.cpp | 79 ----------- .../MyValueModule/CustomerInfo/CustomerInfoImpl.h | 36 ----- .../MyValue/MyValueModule/CustomerInfo/Makefile.am | 15 -- .../sca/samples/MyValue/MyValueModule/Makefile.am | 10 -- .../MyValue/MyValueModule/MyValue/Makefile.am | 17 --- .../MyValue/MyValueModule/MyValue/MyValue.h | 30 ---- .../MyValue/MyValueImpl.componentType | 36 ----- .../MyValue/MyValueModule/MyValue/MyValueImpl.cpp | 143 ------------------- .../MyValue/MyValueModule/MyValue/MyValueImpl.h | 32 ----- .../MyValueModule/MyValue/MyValueService.wsdl | 65 --------- .../MyValueModule/MyValue/MyValueService.xsd | 39 ----- .../StockQuoteService/StockQuoteService.h | 32 ----- .../StockQuoteService/StockQuoteService.wsdl | 157 --------------------- .../MyValue/MyValueModule/Tuscany-model.config | 25 ---- .../sca/samples/MyValue/MyValueModule/sca.module | 51 ------- 18 files changed, 863 deletions(-) delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo.fragment delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfo.h delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.componentType delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.cpp delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.h delete mode 100644 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/Makefile.am delete mode 100644 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/Makefile.am delete mode 100644 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/Makefile.am delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValue.h delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.componentType delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.cpp delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.h delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.wsdl delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.xsd delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.h delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.wsdl delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/Tuscany-model.config delete mode 100755 tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/sca.module (limited to 'tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule') diff --git a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo.fragment b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo.fragment deleted file mode 100755 index b7f79799b5..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo.fragment +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - x - 23 - 42 - - - - - - - \ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfo.h b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfo.h deleted file mode 100755 index 766fc55fe6..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/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-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.componentType b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.componentType deleted file mode 100755 index 52988cb90a..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.componentType +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.cpp b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.cpp deleted file mode 100755 index ed3ff5e2ff..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/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 -#include -#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 <getList("Joe"); - for (int i=0; i - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.cpp b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.cpp deleted file mode 100755 index 4a2d64ea6d..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/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 - -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 <getCustomerInformation(customerID.c_str()); - cout << "Stock from getServices " << i << " : " << stock <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-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.h b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueImpl.h deleted file mode 100755 index 05aa7066c1..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/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-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.wsdl b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.wsdl deleted file mode 100755 index 3bc1a12d5c..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.wsdl +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.xsd b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.xsd deleted file mode 100755 index bf41ea511a..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/MyValue/MyValueService.xsd +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.h b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.h deleted file mode 100755 index 7da4069bd1..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/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 -#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-RC3b/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.wsdl b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.wsdl deleted file mode 100755 index 4917cde583..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.wsdl +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/Tuscany-model.config b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/Tuscany-model.config deleted file mode 100755 index 2667f62990..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/Tuscany-model.config +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/sca.module b/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/sca.module deleted file mode 100755 index bda42e04bc..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3b/sca/samples/MyValue/MyValueModule/sca.module +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - MyValueServiceComponent - - - - - - - - CustomerInfoComponent - StockQuoteService - - - - - - - - - - - - \ No newline at end of file -- cgit v1.2.3