You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2008/01/21 14:14:31 UTC

svn commit: r613878 - in /incubator/tuscany/java/sca/demos: ./ alert-aggregator-webapp/ bigbank-account/ mortgage-loanapproval/ secure-bigbank/secure-bigbank-account/ secure-bigbank/secure-bigbank-account/src/main/resources/web/ secure-bigbank/secure-b...

Author: slaws
Date: Mon Jan 21 05:14:29 2008
New Revision: 613878

URL: http://svn.apache.org/viewvc?rev=613878&view=rev
Log:
Updates from 1.1 branch

Added:
    incubator/tuscany/java/sca/demos/xml-bigbank/README
Modified:
    incubator/tuscany/java/sca/demos/   (props changed)
    incubator/tuscany/java/sca/demos/alert-aggregator-webapp/alert-aggregator.svg
    incubator/tuscany/java/sca/demos/alert-aggregator-webapp/pom.xml
    incubator/tuscany/java/sca/demos/bigbank-account/bigbank.svg
    incubator/tuscany/java/sca/demos/bigbank-account/build.xml
    incubator/tuscany/java/sca/demos/mortgage-loanapproval/README
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/README
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.svg
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build.xml
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/web/   (props changed)
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/README
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/build.xml
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/README
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/build.xml
    incubator/tuscany/java/sca/demos/xml-bigbank/src/main/resources/wsdl/StockQuotes.wsdl
    incubator/tuscany/java/sca/demos/xml-bigbank/xml-bigbank.svg

Propchange: incubator/tuscany/java/sca/demos/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Jan 21 05:14:29 2008
@@ -0,0 +1 @@
+target

Modified: incubator/tuscany/java/sca/demos/alert-aggregator-webapp/alert-aggregator.svg
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/alert-aggregator-webapp/alert-aggregator.svg?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/alert-aggregator-webapp/alert-aggregator.svg (original)
+++ incubator/tuscany/java/sca/demos/alert-aggregator-webapp/alert-aggregator.svg Mon Jan 21 05:14:29 2008
@@ -1,4 +1,22 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
 <!-- Created with Inkscape (http://www.inkscape.org/) -->
 <svg
    xmlns:dc="http://purl.org/dc/elements/1.1/"

Modified: incubator/tuscany/java/sca/demos/alert-aggregator-webapp/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/alert-aggregator-webapp/pom.xml?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/alert-aggregator-webapp/pom.xml (original)
+++ incubator/tuscany/java/sca/demos/alert-aggregator-webapp/pom.xml Mon Jan 21 05:14:29 2008
@@ -50,6 +50,11 @@
         </dependency>
         <dependency>
             <groupId>org.apache.tuscany.sdo</groupId>
+            <artifactId>tuscany-sdo-api-r2.1</artifactId>
+            <version>1.0-incubating</version>
+        </dependency>         
+        <dependency>
+            <groupId>org.apache.tuscany.sdo</groupId>
             <artifactId>tuscany-sdo-impl</artifactId>
             <version>1.0-incubating-SNAPSHOT</version>
         </dependency>
@@ -124,12 +129,12 @@
             <artifactId>rome</artifactId>
             <version>0.9</version>
         </dependency>
-        <!--dependency>
-            <groupId>org.apache.tuscany.sca</groupId>
-            <artifactId>tuscany-host-jetty</artifactId>
-            <version>1.2-incubating-SNAPSHOT</version>
-            <scope>test</scope>
-        </dependency-->
+        <dependency>
+            <groupId>org.codehaus.woodstox</groupId>
+            <artifactId>wstx-asl</artifactId>
+            <version>3.2.1</version>
+            <scope>runtime</scope>
+        </dependency>  
     </dependencies>
 
     <build>

Modified: incubator/tuscany/java/sca/demos/bigbank-account/bigbank.svg
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/bigbank.svg?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/bigbank.svg (original)
+++ incubator/tuscany/java/sca/demos/bigbank-account/bigbank.svg Mon Jan 21 05:14:29 2008
@@ -1,4 +1,22 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
 <!-- Created with Inkscape (http://www.inkscape.org/) -->
 <svg
    xmlns:dc="http://purl.org/dc/elements/1.1/"

Modified: incubator/tuscany/java/sca/demos/bigbank-account/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/build.xml?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/build.xml (original)
+++ incubator/tuscany/java/sca/demos/bigbank-account/build.xml Mon Jan 21 05:14:29 2008
@@ -18,7 +18,7 @@
  * under the License.
 -->
 <project name="bigbank-account" default="run">
-    <property name="localRepository" value="./target/repo" />
+    <property name="settings.localRepository" value="./target/repo" />
     <property name="artifactId" value="demo-bigbank-account" />	
     <property name="test.class" value="bigbank.demo.BigBankServer" />
 	

Modified: incubator/tuscany/java/sca/demos/mortgage-loanapproval/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/mortgage-loanapproval/README?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/mortgage-loanapproval/README (original)
+++ incubator/tuscany/java/sca/demos/mortgage-loanapproval/README Mon Jan 21 05:14:29 2008
@@ -28,16 +28,12 @@
 
 run:
      [java] Starting the CreditCheck Service...
-     [java] log4j:WARN No appenders could be found for logger (org.apache.axiom.
-om.util.StAXUtils).
-     [java] log4j:WARN Please initialize the log4j system properly.
-     [java] Sep 13, 2007 12:25:41 PM org.apache.tuscany.sca.http.jetty.JettyServ
-er addServletMapping
-     [java] INFO: Added Servlet mapping: http://localhost:8085/CreditCheckServic
-e
+     [java] 14-Jan-2008 14:14:20 org.apache.tuscany.sca.http.jetty.JettyServer a
+ddServletMapping
+     [java] INFO: Added Servlet mapping: http://L3AW203:8085/CreditCheckServiceC
+omponent
      [java] Press Enter to Exit...
 
-
 In the second command window
 ----------------------------
 1) go to mortgage-loanapproval directory 
@@ -49,10 +45,6 @@
 
 Buildfile: build.xml
 run:
-     [java] log4j:WARN No appenders could be found for logger (org.apache.axiom.
-om.util.StAXUtils).
-     [java] log4j:WARN Please initialize the log4j system properly.
-     [java] Credit score for 111-22-3333: 722
      [java] Interest rate for a 30-year loan of $200000.0 in CA: 6.5%
      [java] Approved: John Smith[111-22-3333]
 
@@ -61,9 +53,6 @@
 
 Buildfile: build.xml
 run:
-     [java] log4j:WARN No appenders could be found for logger (org.apache.axiom.
-om.util.StAXUtils).
-     [java] log4j:WARN Please initialize the log4j system properly.
      [java] Credit score for 111-22-3333: 708
      [java] Interest rate for a 30-year loan of $200000.0 in CA: 6.5%
      [java] Debt/Income ratio 0.2528272093971861 is too high.

Modified: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/README?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/README (original)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/README Mon Jan 21 05:14:29 2008
@@ -1,58 +1,109 @@
-BigBank Demo
-============
+Secure BigBank Demo
+===================
 
-This application is made of 3 modules that represent the different aspects 
-of a fictitious banking application. Please see bigbank.png in the bigbank-account directory for a diagram of this demo.
-
-To run the bigbank-account demo you need to first run bigbank-calculator and bigbank-stockquote composites. This will bring up Tuscany runtime and load the two applications and make them available as services. Bigbank-account is dependent on these services.
+This is a copy of the big-bank demo with modifications to demonstrate the use of policies to enforce
+certain security aspects.  We hope to evolve this further adding more flavours of security.   Here
+is an overview of how this copy of the big-bank demo differs from the original...
+
+
+*) The AccountDataServiceComponent which used to return a customers savings, checkings and stock account
+data has been replaced with three independent components for savings, checkings and stock accounts.  These 
+components provide services related to obtaining a customer balance etc.  
+        -  Out of these three, the Checkings and  Stock service components are bound to the big-bank 
+        thro webservices while the Savings Account service component uses the SCA Binding.
+        -  The Chekings Account webservice enforces authentication as a security reqiurement.  Hence all
+        service requests between the bigbank and the Checkings Account service are authenticated
+        -  Additionally the Checkings Account Implementation enforce authorization checks that ensure that
+        only the owner of accounts access their details.  
+        - Here we demonstrate how the 'authenticated' user token credentials are passed from the CheckingsAccount
+        webservice over to the CheckingsAccount implementation for authorization checks.   
+        
+*) The StockQuote webservice is adorned with 'integrity' i.e. all communications between the bigbank and
+the StockQuote webservice and signed to ensure integrity of data exchanged. To honour this requirement the 
+StockQuote reference of the big-bank is also adorned with 'integrity' as a security requirement. 
+
+The overall picture is that when the Customer is requesting account details from the bigbank, the bigbank seeks
+the services of the Savings, Checkings and Stock Account Components. In seeking the service of the Checkings 
+Account compoent the the big-bank compoent authenticates itself.  The Checkings Account component further checks
+if the athenticated user token passed by the bigbank is authorized to access the account in question.  This is one 
+lap where security has been enforced.  Another lap is when the bigbank component refers to the StockQuote webservice
+to compute the stock value for a customer.  Here all communications are signed to ensure integrity of data exchanged
+between the bigbank and StockQuote webservice.
+
+When you run this demo you will observe various console messages that reflect the enforcement of authentication
+and authorization and integrity at varoius points of this application.
+
+
+Bigbank - General Information
+-----------------------------
+
+The application is made of 3 modules that represent the different aspects 
+of a fictitious banking application. Please see bigbank.png in the secure-bigbank-account 
+directory for a diagram of this demo.
+
+To run the secure-bigbank-account demo you need to first run secure-bigbank-calculator and 
+secure-bigbank-stockquote application. This will bring up Tuscany runtime and load the two 
+applications and make them available as services. Secure-bigbank-account is dependent on these 
+services.
 
 This demo uses ant. This is just one way of running this demo. 
 
-Start Bigbank-calculator composite
-----------------------------------
+Start secure-bigbank-calculator composite
+-----------------------------------------
 
-Bigbank-calculator is a calculator application which handles add, subtract, multiply and divide operations. Each of these operations is implemented in a different language, including JavaScript, groovy, Ruby and Python.
+Secure-bigbank-calculator is a calculator application which handles add, subtract, multiply and 
+divide operations. Each of these operations is implemented in a different language, 
+including JavaScript, groovy, Ruby and Python.
 
-To run the bigbank-calculator composite and make it available as a service for this demo do the following:
+To run the secure-bigbank-calculator composite and make it available as a service for this 
+demo do the following:
 
-cd bigbank-calculator
+cd secure-bigbank-calculator
 ant compile  
 ant run
 
 .. Leave the server running
 
-Note that 'ant compile' needs to be done the first time you run this demo out of the binary distribution. No need to do 'ant compile' from there on.
+Note that 'ant compile' needs to be done the first time you run this demo out of the 
+binary distribution. No need to do 'ant compile' from there on.
 
-Start Bigbank-stockquote
-------------------------
+Start secure-bigbank-stockquote
+-------------------------------
 
 A very simple web services based stock quote application which returns random 
-stock quotes on request. Please note that the stockquote service is not live and is implemented instead to allow for this application to always run without dependency on the availability of a webservice.
+stock quotes on request. Please note that the stockquote service is not live and is 
+implemented instead to allow for this application to always run without dependency on the 
+availability of a webservice.
 
-cd bigbank-stockquote
+cd secure-bigbank-stockquote
 ant compile  
 ant run
 
 .. Leave the server running
 
-Note that 'ant compile' needs to be done the first time you run this demo out of the binary distribution. No need to do 'ant compile' from there on.
+Note that 'ant compile' needs to be done the first time you run this demo out of the 
+binary distribution. No need to do 'ant compile' from there on.
 
-Start Bigbank-account 
+Start secure-bigbank-account 
 ---------------------
   
-Bigbank-account is entry point to this application running on Tuscany. Bigbank-account composite calls into bigbank-stockquote and bigbank-calculator services. Start bigbank-account in the following way:
+Secure-bigbank-account is entry point to this application running on Tuscany. 
+Secure-bigbank-account composite calls into secure-bigbank-stockquote and 
+secure-bigbank-calculator services. Start secure-bigbank-account in the following way:
 
-cd bigbank-account
+cd secure-bigbank-account
 ant compile 
 ant run
 
 .. Leave the server running
 
-Note that 'ant compile' needs to be done the first time you run this demo out ofthe  binary distribution. No need to do 'ant compile' from there on.
+Note that 'ant compile' needs to be done the first time you run this demo out of the  
+binary distribution. No need to do 'ant compile' from there on.
 
 Run the demo
 ------------- 
-The front end of this demo application is a web app which users Json/RPC to communicate with the backend for retrieving account information. 
+The front end of this demo application is a web app which users Json/RPC to communicate 
+with the backend for retrieving account information. 
 
 To try the app out point you browser at:
 
@@ -62,11 +113,13 @@
 a single set of account details exercising services across the three running 
 SCA applications. 
 
-If you press on getAccountReport, you'll see a response posted, but the detail of the data will be displayed in the screen where you started bigbank-account.
+If you press on getAccountReport, you'll see a response posted, but the detail of the 
+data will be displayed in the screen where you started secure-bigbank-account.
 
 
 Stop the demo
 -------------
-Go to each of the corresponding command line screens and hit 'enter'. This will stop each of the applications.
+Go to each of the corresponding command line screens and hit 'enter'. This will stop each 
+of the applications.
  
 

Modified: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.svg
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.svg?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.svg (original)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.svg Mon Jan 21 05:14:29 2008
@@ -1,4 +1,22 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
 <!-- Created with Inkscape (http://www.inkscape.org/) -->
 <svg
    xmlns:dc="http://purl.org/dc/elements/1.1/"

Modified: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build.xml?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build.xml (original)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build.xml Mon Jan 21 05:14:29 2008
@@ -18,7 +18,7 @@
  * under the License.
 -->
 <project name="bigbank-account" default="run">
-    <property name="localRepository" value="./target/repo" />
+    <property name="settings.localRepository" value="./target/repo" />
     <property name="artifactId" value="demo-bigbank-account" />	
     <property name="test.class" value="bigbank.demo.BigBankServer" />
 	
@@ -55,7 +55,7 @@
                source="1.5"
                target="1.5">
             <classpath>
-            	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>
+            	<pathelement location="../../../lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </javac> 
         <copy todir="target/classes">

Propchange: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/web/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Jan 21 05:14:29 2008
@@ -0,0 +1 @@
+dojo

Modified: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/README?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/README (original)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/README Mon Jan 21 05:14:29 2008
@@ -1,3 +1,5 @@
-bigbank-calculator is part of a larger demo called bigbank-account. Please see the Readme file under bigbank-account to understand how bigbank-calculator fits into the overall demo.
+secure-bigbank-calculator is part of a larger demo called secure-bigbank-account. 
+Please see the Readme file under secure-bigbank-account to understand how 
+secure-bigbank-calculator fits into the overall demo.
  
 

Modified: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/build.xml?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/build.xml (original)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/build.xml Mon Jan 21 05:14:29 2008
@@ -20,9 +20,9 @@
     <property name="test.class" value="calculator.demo.CalculatorServer" />
 	
     <path id="test.classpath">
-        <pathelement location="../../modules/tuscany-binding-rmi-1.2-incubating-SNAPSHOT.jar"/>
+        <pathelement location="../../../modules/tuscany-binding-rmi-1.1-incubating-SNAPSHOT.jar"/>
     	<pathelement path="target/demo-bigbank-calculator.jar"/>     	
-    	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>    	
+    	<pathelement location="../../../lib/tuscany-sca-manifest.jar"/>    	
     </path>
 	
     <target name="init">
@@ -36,7 +36,7 @@
                source="1.5"
                target="1.5">
             <classpath>
-            	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>
+            	<pathelement location="../../../lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </javac> 
         <copy todir="target/classes">

Modified: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/README?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/README (original)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/README Mon Jan 21 05:14:29 2008
@@ -1,3 +1,5 @@
-bigbank-stockquote is a part of a larger demo called bigbank-account. Please see the Readme file under bigbank-account to understand how bigbank-stockquote fits into the overall demo.
+secure-bigbank-stockquote is a part of a larger demo called secure-bigbank-account. 
+Please see the Readme file under secure-bigbank-account to understand how 
+secure-bigbank-stockquote fits into the overall demo.
  
 

Modified: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/build.xml?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/build.xml (original)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/build.xml Mon Jan 21 05:14:29 2008
@@ -20,7 +20,7 @@
     <property name="test.class" value="stockquote.demo.StockQuoteServer" />
 	
     <path id="test.classpath">
-    	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>    	
+    	<pathelement location="../../../lib/tuscany-sca-manifest.jar"/>    	
     	<pathelement location="target/demo-bigbank-stockquote.jar"/>    	
     </path>
 	
@@ -35,7 +35,7 @@
                source="1.5"
                target="1.5">
             <classpath>
-            	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>
+            	<pathelement location="../../../lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </javac> 
         <copy todir="target/classes">

Added: incubator/tuscany/java/sca/demos/xml-bigbank/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/xml-bigbank/README?rev=613878&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/xml-bigbank/README (added)
+++ incubator/tuscany/java/sca/demos/xml-bigbank/README Mon Jan 21 05:14:29 2008
@@ -0,0 +1,48 @@
+XML BigBank Demo
+================
+
+This demo showcases the integration with XML technolgies in the service assembly.
+
+Note: To build the project with maven or other IDEs, please download the WSDL from http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx?WSDL and save the file as src/main/resources/wsdl/StockQuotes.wsdl.
+
+Note: The live stock quote web service is not always running. Sometimes empty response is returned and the stock value is 0.
+
+To run the demo, type "ant run" and it will produce the following output.
+
+Buildfile: build.xml
+
+init:
+      [get] Getting: http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx?WSDL
+      [get] To: C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\src\main\resources\wsdl\StockQuotes.wsdl
+      [get] local file date : Tue Nov 06 15:50:37 PST 2007
+      [get] .
+      [get] last modified = Wed Dec 31 16:00:00 PST 1969 - using current time instead
+    [mkdir] Created dir: C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\classes
+
+compile:
+    [javac] Compiling 11 source files to C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\classes
+     [copy] Copying 6 files to C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\classes
+      [jar] Building jar: C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\demo-xml-bigbank.jar
+
+run:
+     [java] Nov 6, 2007 3:52:28 PM org.apache.axis2.deployment.DeploymentEngine loadFromClassPath
+     [java] INFO: Module validation failed: The system is attempting to engage a module that is not available: rampart
+     [java] Retrieving exchange rate...
+     [java] Nov 6, 2007 3:52:29 PM org.apache.tuscany.sca.binding.feed.provider.RSSBindingInvoker invoke
+     [java] INFO: >>> RSSBindingInvoker (rss_2.0) http://ansuz.sooke.bc.ca/rippy/exchange/?M=R&B=USD&F=CAD,CNY,EUR&T=F&S=O&I=S
+     [java] Exchange rate: USD 1.0=EUR 0.68705
+     [java] Loading account data...
+     [java] Getting stock quote...
+     [java] Nov 6, 2007 3:52:30 PM org.apache.commons.httpclient.HttpMethodBase readResponse
+     [java] INFO: Discarding unexpected response: HTTP/1.1 100 Continue
+     [java] Calculating total value...
+     [java] Checking Balance: xs:double: 1000
+     [java] Saving Blance: xs:double: 20000
+     [java] Stock Value: xs:integer: 0
+     [java] Total Value [1]: xs:double: 21000
+     [java] Total Value=USD 21000.0
+     [java] EUR: 14428.050000000001
+
+BUILD SUCCESSFUL
+Total time: 7 seconds
+

Modified: incubator/tuscany/java/sca/demos/xml-bigbank/src/main/resources/wsdl/StockQuotes.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/xml-bigbank/src/main/resources/wsdl/StockQuotes.wsdl?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/xml-bigbank/src/main/resources/wsdl/StockQuotes.wsdl (original)
+++ incubator/tuscany/java/sca/demos/xml-bigbank/src/main/resources/wsdl/StockQuotes.wsdl Mon Jan 21 05:14:29 2008
@@ -1,4 +1,22 @@
 <?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
 <wsdl:definitions targetNamespace="http://swanandmokashi.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
     <wsdl:import namespace="http://swanandmokashi.com"
         location="http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx?WSDL" />

Modified: incubator/tuscany/java/sca/demos/xml-bigbank/xml-bigbank.svg
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/xml-bigbank/xml-bigbank.svg?rev=613878&r1=613877&r2=613878&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/xml-bigbank/xml-bigbank.svg (original)
+++ incubator/tuscany/java/sca/demos/xml-bigbank/xml-bigbank.svg Mon Jan 21 05:14:29 2008
@@ -1,4 +1,22 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
 <!-- Created with Inkscape (http://www.inkscape.org/) -->
 <svg
    xmlns:dc="http://purl.org/dc/elements/1.1/"



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org