From 3ac2d800d840f03618fc364090d786effde84b1f Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:13:16 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835142 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/bigbank/account/AccountService.java | 32 ----- .../java/bigbank/account/AccountServiceImpl.java | 99 ---------------- .../java/bigbank/account/feed/AccountFeedImpl.java | 70 ----------- .../main/java/bigbank/client/BigBankClient.java | 50 -------- .../src/main/java/bigbank/demo/BigBankServer.java | 130 --------------------- .../security/BigbankPasswordCallbackHandler.java | 51 -------- .../main/java/calculator/CalculatorService.java | 34 ------ .../main/java/stockquote/StockQuoteService.java | 29 ----- .../bigbank/src/main/resources/BigBank.composite | 85 -------------- .../main/resources/META-INF/sca-contribution.xml | 36 ------ .../demos/bigbank/src/main/resources/bigbank.jks | Bin 1986 -> 0 bytes .../bigbank/src/main/resources/definitions.xml | 64 ---------- .../bigbank/src/main/resources/security.properties | 4 - .../src/main/resources/web/AccountJSON.html | 92 --------------- .../demos/bigbank/src/main/resources/web/style.css | 22 ---- .../src/main/resources/wsdl/AccountService.wsdl | 91 --------------- 16 files changed, 889 deletions(-) delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/AccountService.java delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/AccountServiceImpl.java delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/feed/AccountFeedImpl.java delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/client/BigBankClient.java delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/demo/BigBankServer.java delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/security/BigbankPasswordCallbackHandler.java delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/java/calculator/CalculatorService.java delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/java/stockquote/StockQuoteService.java delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/resources/BigBank.composite delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/resources/bigbank.jks delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/resources/definitions.xml delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/resources/security.properties delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/resources/web/AccountJSON.html delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/resources/web/style.css delete mode 100644 branches/sca-java-20080910/demos/bigbank/src/main/resources/wsdl/AccountService.wsdl (limited to 'branches/sca-java-20080910/demos/bigbank/src/main') diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/AccountService.java b/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/AccountService.java deleted file mode 100644 index 2cb8027874..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/AccountService.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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. - */ -package bigbank.account; - -import org.osoa.sca.annotations.Remotable; - -/** - * @version $$Rev$$ $$Date$$ - */ - -@Remotable -public interface AccountService { - - public double getAccountReport(String customerID); - -} diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/AccountServiceImpl.java b/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/AccountServiceImpl.java deleted file mode 100644 index 4f0e3879dc..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/AccountServiceImpl.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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. - */ -package bigbank.account; - -import org.osoa.sca.annotations.Property; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import stockquote.StockQuoteService; -import bigbank.account.checking.CheckingAccountDetails; -import bigbank.account.checking.CheckingAccountService; -import bigbank.account.savings.SavingsAccountDetails; -import bigbank.account.savings.SavingsAccountService; -import bigbank.account.stock.StockAccountDetails; -import bigbank.account.stock.StockAccountService; -import calculator.CalculatorService; - -/** - * @version $$Rev$$ $$Date$$ - */ - -@Service(AccountService.class) -public class AccountServiceImpl implements AccountService { - - @Reference - protected SavingsAccountService savingsAcService; - - @Reference - protected CheckingAccountService checkingAcService; - - @Reference - protected StockAccountService stockAcService; - - @Reference - protected StockQuoteService stockQuoteService; - - @Reference - protected CalculatorService calculatorService; - - @Property - protected String currency; - - public double getAccountReport(String customerID) { - - // Get the checking, savings and stock accounts from the AccountData - // service component - CheckingAccountDetails checking = null; - try { - checking = checkingAcService.getAccountDetails(customerID); - System.out.println("Checking account: " + checking); - - SavingsAccountDetails savings = savingsAcService.getAccountDetails(customerID); - System.out.println("Savings account: " + savings); - - StockAccountDetails stock = stockAcService.getAccountDetails(customerID); - System.out.println("Stock account: " + stock); - - // Get the stock price in USD - double price = stockQuoteService.getQuote(stock.getSymbol()); - System.out.println("Stock price for " + stock.getSymbol() + ": " + price); - - // Convert to the configured currency - if (currency.equals("EURO")) { - - // Use our fancy calculator service to convert to the target currency - price = calculatorService.multiply(price, 0.70); - - System.out.println("Converted to " + currency + ": " + price); - } - - // Calculate the value of the stock account - double stockValue = price * stock.getQuantity(); - - // Calculate the total balance of all accounts and return it - double balance = checking.getBalance() + savings.getBalance() + stockValue; - - return balance; - } catch ( Throwable e ) { - e.printStackTrace(); - return 0; - } - } -} diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/feed/AccountFeedImpl.java b/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/feed/AccountFeedImpl.java deleted file mode 100644 index 13d79a9c33..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/account/feed/AccountFeedImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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. - */ -package bigbank.account.feed; - -import org.apache.tuscany.sca.data.collection.Collection; -import org.apache.tuscany.sca.data.collection.Entry; -import org.apache.tuscany.sca.data.collection.NotFoundException; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import bigbank.account.AccountService; - -/** - * @version $$Rev$$ $$Date$$ - */ - -@Service(Collection.class) -public class AccountFeedImpl implements Collection { - - @Reference - protected AccountService accountService; - - public Entry[] getAll() { - - // Add the Account report entry - String report = get("1234"); - Entry entry = new Entry("1234", report); - - return new Entry[] { entry } ; - } - - public String get(String id) { - - // Get the account report for the specified customer ID - double balance = accountService.getAccountReport(id); - String report = Double.toString(balance); - - return report; - } - - public void delete(String key) throws NotFoundException { - } - - public String post(String key, String item) { - return null; - } - - public void put(String key, String item) throws NotFoundException { - } - - public Entry[] query(String queryString) { - return null; - } -} diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/client/BigBankClient.java b/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/client/BigBankClient.java deleted file mode 100644 index a7fa5ecc22..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/client/BigBankClient.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -package bigbank.client; - -import org.apache.tuscany.sca.host.embedded.SCADomain; - -import bigbank.account.AccountService; - -/** - * This client program shows how to create an SCA runtime, start it, - * and locate and invoke a SCA component - */ -public class BigBankClient { - - public static void main(String[] args) throws Exception { - - SCADomain domain = SCADomain.newInstance("BigBank.composite"); - - AccountService accountService = domain.getService(AccountService.class, "AccountServiceComponent"); - - String customerID = "1234"; - - System.out.println("Calling account service for customer: " + customerID); - System.out.println(); - double balance = accountService.getAccountReport(customerID); - - System.out.println(); - System.out.println("Balance: " + balance); - - domain.close(); - } - -} diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/demo/BigBankServer.java b/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/demo/BigBankServer.java deleted file mode 100644 index 05360e07a5..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/demo/BigBankServer.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * 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. - */ - -package bigbank.demo; - -import java.net.MalformedURLException; -import java.net.URL; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.service.ContributionService; -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; - -import bigbank.account.savings.SavingsAccountService; - - - -/** - * This client program shows how to create an SCA runtime, start it, - * and locate and invoke a SCA component - */ -public class BigBankServer { - - public static void main(String[] args) throws Exception { - long timeout = -1L; - if (args.length > 0) { - timeout = Long.parseLong(args[0]); - } - - System.out.println("Starting the Sample SCA BigBank server..."); - ClassLoader cl = BigBankServer.class.getClassLoader(); - EmbeddedSCADomain domain = new EmbeddedSCADomain(cl, "http://localhost"); - - //Start the domain - domain.start(); - - // Contribute the SCA contribution - ContributionService contributionService = domain.getContributionService(); - - URL javaContribURL = getContributionURL(SavingsAccountService.class); - Contribution bigbankAcContribution = contributionService.contribute("http://bigbank-account", javaContribURL, false); - for (Composite deployable : bigbankAcContribution.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.buildComposite(deployable); - } - - URL bigbankContribUrl = getContributionURL(BigBankServer.class); - Contribution bigbankContribution = contributionService.contribute("http://bigbank", bigbankContribUrl, false); - for (Composite deployable : bigbankContribution.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.buildComposite(deployable); - } - - - //Start Components from composite - for (Composite deployable : bigbankAcContribution.getDeployables()) { - domain.getCompositeActivator().activate(deployable); - domain.getCompositeActivator().start(deployable); - } - - for (Composite deployable : bigbankContribution.getDeployables()) { - domain.getCompositeActivator().activate(deployable); - domain.getCompositeActivator().start(deployable); - } - - if (timeout < 0) { - System.out.println("Press Enter to Exit..."); - System.in.read(); - } else { - Thread.sleep(timeout); - } - - contributionService.remove("http://bigbank-account"); - contributionService.remove("http://bigbank"); - - // Stop Components from composite - for (Composite deployable : bigbankContribution.getDeployables()) { - domain.getCompositeActivator().stop(deployable); - domain.getCompositeActivator().deactivate(deployable); - } - - domain.stop(); - - domain.close(); - - - /*SCADomain domain = SCADomain.newInstance("BigBank.composite"); - - if (timeout < 0) { - System.out.println("Press Enter to Exit..."); - System.in.read(); - } else { - Thread.sleep(timeout); - } - - domain.close();*/ - - System.out.println("Bye"); - } - - private static URL getContributionURL(Class cls) throws MalformedURLException { - String flag = "/" + cls.getName().replace('.', '/') + ".class"; - URL url = cls.getResource(flag); - String root = url.toExternalForm(); - root = root.substring(0, root.length() - flag.length() + 1); - if (root.startsWith("jar:") && root.endsWith("!/")) { - root = root.substring(4, root.length() - 2); - } - url = new URL(root); - return url; - } - -} diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/security/BigbankPasswordCallbackHandler.java b/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/security/BigbankPasswordCallbackHandler.java deleted file mode 100644 index 6d3b547939..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/java/bigbank/security/BigbankPasswordCallbackHandler.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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. - */ -package bigbank.security; - -import java.io.IOException; - -import javax.security.auth.callback.Callback; -import javax.security.auth.callback.CallbackHandler; -import javax.security.auth.callback.UnsupportedCallbackException; - -import org.apache.ws.security.WSPasswordCallback; - -/** - * Sample userid passwd generation class - */ -public class BigbankPasswordCallbackHandler implements CallbackHandler { - - public void handle(Callback[] callbacks) throws IOException, - UnsupportedCallbackException { - for (int i = 0; i < callbacks.length; i++) { - WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i]; - //System.out.println("*** Getting password for user ...." + pwcb.getIdentifer() + " & " + pwcb.getKey()); - if ( pwcb.getUsage() == WSPasswordCallback.SIGNATURE ) { - System.out.println("*** Calling BIG-BANK Passwd Handler for SIGNING...." ); - pwcb.setPassword("bbservice"); - } else if ( pwcb.getUsage() == WSPasswordCallback.USERNAME_TOKEN ) { - if ( pwcb.getIdentifer().equals("bbaservice")) { - System.out.println("*** Calling BIG-BANK Passwd Handler for setting AUTHENTICATION password...." ); - pwcb.setPassword("bbaservice"); - } - } - } - } - -} diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/java/calculator/CalculatorService.java b/branches/sca-java-20080910/demos/bigbank/src/main/java/calculator/CalculatorService.java deleted file mode 100644 index c89043276e..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/java/calculator/CalculatorService.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. - */ -package calculator; - -/** - * The Calculator service interface. - */ -public interface CalculatorService { - - double add(double n1, double n2); - - double subtract(double n1, double n2); - - double multiply(double n1, double n2); - - double divide(double n1, double n2); - -} diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/java/stockquote/StockQuoteService.java b/branches/sca-java-20080910/demos/bigbank/src/main/java/stockquote/StockQuoteService.java deleted file mode 100644 index 749b8ee2f4..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/java/stockquote/StockQuoteService.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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. - */ -package stockquote; - -import org.osoa.sca.annotations.Remotable; - -/** - * This is the business interface of the StockQuote service. - */ -@Remotable -public interface StockQuoteService { - public double getQuote(String symbol); -} diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/resources/BigBank.composite b/branches/sca-java-20080910/demos/bigbank/src/main/resources/BigBank.composite deleted file mode 100644 index 11591308b4..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/resources/BigBank.composite +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - EURO - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/resources/META-INF/sca-contribution.xml b/branches/sca-java-20080910/demos/bigbank/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 154992c843..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/resources/bigbank.jks b/branches/sca-java-20080910/demos/bigbank/src/main/resources/bigbank.jks deleted file mode 100644 index e6294d85f7..0000000000 Binary files a/branches/sca-java-20080910/demos/bigbank/src/main/resources/bigbank.jks and /dev/null differ diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/resources/definitions.xml b/branches/sca-java-20080910/demos/bigbank/src/main/resources/definitions.xml deleted file mode 100644 index 8654151d82..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/resources/definitions.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - Timestamp Signature - security.properties - - - - - Timestamp Signature - bbservice - security.properties - bigbank.security.BigbankPasswordCallbackHandler - DirectReference - - - - - - - - - - UsernameToken - bbaservice - bigbank.security.BigbankPasswordCallbackHandler - PasswordText - - - - - \ No newline at end of file diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/resources/security.properties b/branches/sca-java-20080910/demos/bigbank/src/main/resources/security.properties deleted file mode 100644 index 762d0523d9..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/resources/security.properties +++ /dev/null @@ -1,4 +0,0 @@ -org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin -org.apache.ws.security.crypto.merlin.keystore.type=jks -org.apache.ws.security.crypto.merlin.keystore.password=bbakeystore -org.apache.ws.security.crypto.merlin.file=bigbank.jks \ No newline at end of file diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/resources/web/AccountJSON.html b/branches/sca-java-20080910/demos/bigbank/src/main/resources/web/AccountJSON.html deleted file mode 100644 index 9f4368443f..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/resources/web/AccountJSON.html +++ /dev/null @@ -1,92 +0,0 @@ - - - -Tuscany JSON-RPC BigBank Client - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Tuscany JSON-RPC BigBank Client
-

This example uses the Dojo - Toolkit to create a JavaScript object accountService for - the service at http://localhost:8080/AccountJSONService using Dojo's - RPC classes and providing them with http://localhost:8080/AccountJSONService?smd - for Simple Method Description - (SMD) input.

-

It then creates a Dojo button that will envoke the getAccountReport - method of the accountService object.

-
RequestResponse

- -
-
-
None Yet.
-
-
Dojo Debug:
-
- - - - - diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/resources/web/style.css b/branches/sca-java-20080910/demos/bigbank/src/main/resources/web/style.css deleted file mode 100644 index 1071583264..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/resources/web/style.css +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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. - */ -* { font-family: arial; } - -table, th, td { border: 2px solid blue; border-collapse: collapse; } -th { color: white; background-color: blue; } diff --git a/branches/sca-java-20080910/demos/bigbank/src/main/resources/wsdl/AccountService.wsdl b/branches/sca-java-20080910/demos/bigbank/src/main/resources/wsdl/AccountService.wsdl deleted file mode 100644 index ac4d987a57..0000000000 --- a/branches/sca-java-20080910/demos/bigbank/src/main/resources/wsdl/AccountService.wsdl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3