summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite')
-rw-r--r--sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite17
1 files changed, 11 insertions, 6 deletions
diff --git a/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite b/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite
index 59bb4bdab3..6bdcab4749 100644
--- a/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite
+++ b/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite
@@ -24,16 +24,21 @@
<component name="Store">
<tuscany:implementation.widget location="store.html"/>
- <reference name="catalog" target="Catalog"></reference>
- <reference name="shoppingCart" target="ShoppingCart/Cart"></reference>
- <reference name="shoppingTotal" target="ShoppingCart/Total"></reference>
+ <service name="Widget">
+ <tuscany:binding.http uri="/store"/>
+ </service>
+ <reference name="catalog" target="Catalog"/>
+ <reference name="shoppingCart" target="ShoppingCart/Cart"/>
+ <reference name="shoppingTotal" target="ShoppingCart/Total"/>
</component>
+
+
<component name="Catalog">
<implementation.java class="services.FruitsCatalogImpl"/>
<property name="currencyCode">USD</property>
<service name="Catalog">
- <tuscany:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Catalog"/>
+ <tuscany:binding.jsonrpc uri="/Catalog"/>
</service>
<reference name="currencyConverter" target="CurrencyConverter"/>
</component>
@@ -41,10 +46,10 @@
<component name="ShoppingCart">
<implementation.java class="services.ShoppingCartImpl"/>
<service name="Cart">
- <tuscany:binding.atom uri="http://localhost:8080/sample-store-webapp/ShoppingCart/Cart"/>
+ <tuscany:binding.atom uri="/ShoppingCart/Cart"/>
</service>
<service name="Total">
- <tuscany:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Total"/>
+ <tuscany:binding.jsonrpc uri="ShoppingCart/Total"/>
</service>
</component>