summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/composite-diagram/input/composite_with_compositeService.xml
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-09-15 18:53:59 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-09-15 18:53:59 +0000
commit2f21f4e89ac9e46e807daaab1c61d61291df37b1 (patch)
treed21fa51b39de9235c4254e21668f83ea2ce49e98 /sca-java-2.x/trunk/modules/composite-diagram/input/composite_with_compositeService.xml
parent5e5b75bc00d3fd9e8f640b8afb67b1fb50d46089 (diff)
Copy the composite diagram generator into modules
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1171222 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/composite-diagram/input/composite_with_compositeService.xml')
-rwxr-xr-xsca-java-2.x/trunk/modules/composite-diagram/input/composite_with_compositeService.xml100
1 files changed, 100 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/composite-diagram/input/composite_with_compositeService.xml b/sca-java-2.x/trunk/modules/composite-diagram/input/composite_with_compositeService.xml
new file mode 100755
index 0000000000..e619d39c1c
--- /dev/null
+++ b/sca-java-2.x/trunk/modules/composite-diagram/input/composite_with_compositeService.xml
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<!-- MyValueComposite Wires examples -->
+
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
+
+ targetNamespace="http://foo.com"
+
+ name="MyValueComposite2" >
+
+ <include name="store"/>
+ <include name="Calculator"/>
+ <include name="supplychain"/>
+
+ <service name="MyValueService" promote="MyValueServiceComponent">
+
+ <interface.java interface="services.myvalue.MyValueService"/>
+
+ <binding.ws port="http://www.myvalue.org/MyValueService#
+
+ wsdl.endpoint(MyValueService/MyValueServiceSOAP)"/>
+
+ </service>
+
+
+
+ <component name="MyValueServiceComponent">
+
+ <implementation.java
+
+ class="services.myvalue.MyValueServiceImpl"/>
+
+ <property name="currency">EURO</property>
+
+ <service name="myValueService"/>
+
+ <reference name="customerService"/>
+
+ <reference name="stockQuoteService"/>
+
+ </component>
+
+
+
+ <wire source="MyValueServiceComponent/stockQuoteService"
+
+ target="StockQuoteMediatorComponent"/>
+
+
+
+ <component name="StockQuoteMediatorComponent">
+
+ <implementation.java class="services.myvalue.SQMediatorImpl"/>
+
+ <property name="currency">EURO</property>
+
+ <reference name="stockQuoteService"/>
+
+ </component>
+
+ <component name="SubtractServiceComponent">
+ <implementation.java class="calculator.SubtractServiceImpl"/>
+ </component>
+
+ <component name="MultiplyServiceComponent">
+ <implementation.java class="calculator.MultiplyServiceImpl"/>
+ </component>
+
+
+
+
+ <reference name="CustomerService"
+
+ promote="MyValueServiceComponent/customerService StockQuoteMediatorComponent">
+
+ <interface.java interface="services.customer.CustomerService"/>
+
+ <binding.sca/>
+
+ </reference>
+
+ <property name="currency">EURO</property>
+
+ <reference name="StockQuoteService"
+
+ promote="StockQuoteMediatorComponent">
+
+ <interface.java
+
+ interface="services.stockquote.StockQuoteService"/>
+
+ <binding.ws port="http://www.stockquote.org/StockQuoteService#
+
+ wsdl.endpoint(StockQuoteService/StockQuoteServiceSOAP)"/>
+
+ </reference>
+
+
+
+</composite> \ No newline at end of file