Author: jsdelfino
Date: Sun Oct 28 21:44:02 2007
New Revision: 589493

URL: http://svn.apache.org/viewvc?rev=589493&view=rev
Log:
Changed store to use implementation.widget as it's simpler than 
implementation.resource plus handcrafted client proxies.

Removed:
    
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/binding-atom.js
    
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/binding-jsonrpc.js
Modified:
    incubator/tuscany/java/sca/samples/store/pom.xml
    incubator/tuscany/java/sca/samples/store/src/main/resources/store.composite
    
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/store.html

Modified: incubator/tuscany/java/sca/samples/store/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/pom.xml?rev=589493&r1=589492&r2=589493&view=diff
==============================================================================
--- incubator/tuscany/java/sca/samples/store/pom.xml (original)
+++ incubator/tuscany/java/sca/samples/store/pom.xml Sun Oct 28 21:44:02 2007
@@ -51,7 +51,7 @@
 
         <dependency>
             <groupId>org.apache.tuscany.sca</groupId>
-            <artifactId>tuscany-implementation-resource</artifactId>
+            <artifactId>tuscany-implementation-widget</artifactId>
             <version>1.1-incubating-SNAPSHOT</version>
             <scope>runtime</scope>
         </dependency>

Modified: 
incubator/tuscany/java/sca/samples/store/src/main/resources/store.composite
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/store.composite?rev=589493&r1=589492&r2=589493&view=diff
==============================================================================
--- incubator/tuscany/java/sca/samples/store/src/main/resources/store.composite 
(original)
+++ incubator/tuscany/java/sca/samples/store/src/main/resources/store.composite 
Sun Oct 28 21:44:02 2007
@@ -19,16 +19,22 @@
 -->
 <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="ufs">
-               <t:implementation.resource location="ufservices"/>
-               <service name="Resource">
-                       <t:binding.http/>
-               </service>      
-       </component>            
-  
+    <component name="store">
+        <t:implementation.widget location="ufservices/store.html"/>
+        <service name="Widget">
+               <t:binding.http/> 
+        </service>
+               <reference name="catalog" target="Catalog">
+                       <t:binding.jsonrpc/>
+                </reference>
+                <reference name="shoppingCart" target="ShoppingCart">
+                       <t:binding.atom/>
+                </reference>
+    </component>
+    
        <component name="Catalog">
                <implementation.java class="services.CatalogImpl"/> 
                <property name="currencyCode">USD</property>

Modified: 
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/store.html
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/store.html?rev=589493&r1=589492&r2=589493&view=diff
==============================================================================
--- 
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/store.html
 (original)
+++ 
incubator/tuscany/java/sca/samples/store/src/main/resources/ufservices/store.html
 Sun Oct 28 21:44:02 2007
@@ -20,15 +20,16 @@
 <head>
 <title>Store</TITLE>
 
-<script type="text/javascript" src="binding-atom.js"></script>
-<script type="text/javascript" src="binding-jsonrpc.js"></script>
+<script type="text/javascript" src="store.js"></script>
+
 <script language="JavaScript">
 
-       //Reference
-       catalog = (new JSONRpcClient("../Catalog")).Catalog;
-       //Reference
-       shoppingCart = new AtomClient("../ShoppingCart");
-
+       //@Reference
+       var catalog = new Reference("catalog");
+       
+       //@Reference
+       var shoppingCart = new Reference("shoppingCart");
+
 
        function catalog_getResponse(items) {
                var catalog = "";



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to