summaryrefslogtreecommitdiffstats
path: root/cpp/sca/test/store-script/store.composite
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2009-11-16 06:01:41 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2009-11-16 06:01:41 +0000
commit51a97b5d9350b37f95d6f0c00d013b886e64fcd3 (patch)
tree480092faac7c7deb40265fb070d1b4b059638814 /cpp/sca/test/store-script/store.composite
parentada8802640aa232d34b1fe2793b9f52cd62b41f1 (diff)
Added test cases and scripts to test the HTTP binding support. Refactored httpd module and added a wiring httpd module. Implementation of the store demo prepared for ApacheCon.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@880601 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--cpp/sca/test/store-script/store.composite71
1 files changed, 38 insertions, 33 deletions
diff --git a/cpp/sca/test/store-script/store.composite b/cpp/sca/test/store-script/store.composite
index 124adff853..cd34f81840 100644
--- a/cpp/sca/test/store-script/store.composite
+++ b/cpp/sca/test/store-script/store.composite
@@ -21,44 +21,49 @@
xmlns:t="http://tuscany.apache.org/xmlns/sca/1.1"
targetNamespace="http://store"
name="store">
-
+
<component name="Store">
- <t:implementation.widget location="uiservices/store.html"/>
+ <!-- <t:implementation.widget location="store.html"/> -->
+ <t:implementation.scheme uri="store.scm"/>
+
<service name="Widget">
- <t:binding.http uri="/ui"/>
+ <t:binding.http uri="store"/>
</service>
- <reference name="catalog" target="StoreCatalog">
- <t:binding.jsonrpc/>
- </reference>
- <reference name="shoppingCart" target="StoreShoppingCart/Cart">
- <t:binding.atom/>
- </reference>
- <reference name="shoppingTotal" target="StoreShoppingCart/Total">
- <t:binding.jsonrpc/>
- </reference>
+ <reference name="catalog" target="Catalog">
+ <t:binding.jsonrpc uri="Catalog"/>
+ </reference>
+ <reference name="shoppingCart" target="ShoppingCart/Cart">
+ <t:binding.atom/>
+ </reference>
+ <reference name="shoppingTotal" target="ShoppingCart/Total">
+ <t:binding.jsonrpc/>
+ </reference>
</component>
- <component name="StoreCatalog">
- <implementation.java class="services.FruitsCatalogImpl"/>
- <property name="currencyCode">USD</property>
- <service name="Catalog">
- <t:binding.jsonrpc/>
- </service>
- <reference name="currencyConverter" target="StoreCurrencyConverter"/>
- </component>
-
- <component name="StoreShoppingCart">
- <implementation.java class="services.ShoppingCartImpl"/>
- <service name="Cart">
- <t:binding.atom uri="/ShoppingCart/Cart"/>
- </service>
- <service name="Total">
- <t:binding.jsonrpc/>
- </service>
- </component>
+ <component name="Catalog">
+ <t:implementation.scheme uri="fruits-catalog.scm"/>
+ <property name="currencyCode">USD</property>
+ <service name="Catalog">
+ <t:binding.jsonrpc uri="Catalog"/>
+ </service>
+ <reference name="currencyConverter" target="CurrencyConverter"/>
+ </component>
+
+ <component name="ShoppingCart">
+ <t:implementation.scheme uri="shopping-cart.scm"/>
+ <service name="ShoppingCart">
+ <t:binding.atom uri="ShoppingCart"/>
+ </service>
+ <service name="Total">
+ <t:binding.jsonrpc uri="Total"/>
+ </service>
+ </component>
- <component name="StoreCurrencyConverter">
- <implementation.java class="services.CurrencyConverterImpl"/>
- </component>
+ <component name="CurrencyConverter">
+ <t:implementation.scheme uri="currency-converter.scm"/>
+ <service name="CurrencyConverter">
+ <t:binding.jsonrpc uri="CurrencyConverter"/>
+ </service>
+ </component>
</composite>