Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
	xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0"
	xmlns:s="http://store" 
	targetNamespace="http://store" 
	name="store">
	
	<component name="store">
		<t:implementation.widget location="ufservices/store.html" />
		<service name="Widget">
			<t:binding.http uri="http://localhost:8080/store" />
		</service>
		<reference name="catalog" target="Catalog">
			<t:binding.jsonrpc />
		</reference>
		<reference name="shoppingCart" target="ShoppingCart/Cart">
			<t:binding.atom />
		</reference>
		<reference name="shoppingTotal" target="ShoppingCart/Total">
			<t:binding.jsonrpc />
		</reference>
	</component>

	<component name="Catalog">
		<implementation.java class="services.CatalogImpl" />
		<property name="currencyCode">USD</property>
		<service name="Catalog">
			<t:binding.jsonrpc uri="http://localhost:8080/Catalog"/>
		</service>
		<reference name="currencyConverter" target="CurrencyConverter" />
	</component>

	<component name="ShoppingCart">
		<implementation.java class="services.ShoppingCartImpl" />
		<service name="Cart">
			<t:binding.atom uri="http://localhost:8080/ShoppingCart/Cart" />
		</service>
		<service name="Total">
			<t:binding.jsonrpc uri="http://localhost:8080/Total"/>
		</service>
	</component>

	<component name="CurrencyConverter">
		<implementation.java class="services.CurrencyConverterImpl" />
	</component>
</composite>

...

 Next Launch your Web browser and enter the following address:

http://localhost:8080/store/store.html 

 You get to the Store user facing service of the composite service application.

...