From e982b4ef38fd043c15e89bdd60763b10434a087e Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sun, 28 Feb 2010 19:40:06 +0000 Subject: Moving old inactive code to a branch as it's confusing code assist, searches and indexing in trunk. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@917273 13f79535-47bb-0310-9956-ffa450edef68 --- .../contrib/samples/RubyBigBank/Makefile.am | 21 ++ .../cpp-contrib/contrib/samples/RubyBigBank/README | 21 ++ .../contrib/samples/RubyBigBank/README.html | 312 +++++++++++++++++++++ .../bigbank.account/AccountDataServiceImpl.rb | 72 +++++ .../bigbank.account/AccountService.wsdl | 126 +++++++++ .../bigbank.account/AccountServiceImpl.rb | 82 ++++++ .../RubyBigBank/bigbank.account/Makefile.am | 24 ++ .../bigbank.account/StockQuoteServiceImpl.rb | 52 ++++ .../bigbank.account/StockQuoteTypes.xsd | 40 +++ .../bigbank.account/StockQuoteWebService.wsdl | 165 +++++++++++ .../bigbank.account/bigbank.account.composite | 53 ++++ .../RubyBigBank/bigbank.account/runwsserver.bat | 51 ++++ .../RubyBigBank/bigbank.account/runwsserver.sh | 46 +++ .../samples/RubyBigBank/bigbank.app.composite | 33 +++ .../RubyBigBank/bigbank.client/AccountClient.rb | 40 +++ .../samples/RubyBigBank/bigbank.client/Makefile.am | 23 ++ .../RubyBigBank/bigbank.client/runclient.bat | 51 ++++ .../RubyBigBank/bigbank.client/runclient.sh | 48 ++++ .../bigbank.wsclient/AccountService.wsdl | 126 +++++++++ .../bigbank.wsclient/AccountWSClient.rb | 40 +++ .../RubyBigBank/bigbank.wsclient/Makefile.am | 23 ++ .../bigbank.wsclient/bigbank.wsclient.composite | 29 ++ .../RubyBigBank/bigbank.wsclient/runwsclient.bat | 51 ++++ .../RubyBigBank/bigbank.wsclient/runwsclient.sh | 48 ++++ 24 files changed, 1577 insertions(+) create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/Makefile.am create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/README create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/README.html create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountDataServiceImpl.rb create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountService.wsdl create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountServiceImpl.rb create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/Makefile.am create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteServiceImpl.rb create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteTypes.xsd create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteWebService.wsdl create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/bigbank.account.composite create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/runwsserver.bat create mode 100755 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/runwsserver.sh create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.app.composite create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/AccountClient.rb create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/Makefile.am create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/runclient.bat create mode 100755 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/runclient.sh create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/AccountService.wsdl create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/AccountWSClient.rb create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/Makefile.am create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/bigbank.wsclient.composite create mode 100644 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/runwsclient.bat create mode 100755 sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/runwsclient.sh (limited to 'sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank') diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/Makefile.am b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/Makefile.am new file mode 100644 index 0000000000..ae0b4958f1 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/Makefile.am @@ -0,0 +1,21 @@ +# 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. + +deploydir=$(prefix)/RubyBigBank/deploy +SUBDIRS = bigbank.account bigbank.client bigbank.wsclient +EXTRA_DIST = *.composite README.html +deploy_DATA = *.composite diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/README b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/README new file mode 100644 index 0000000000..6b2dba4206 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/README @@ -0,0 +1,21 @@ +Tuscany SCA for C++ Samples - Ruby BigBank Sample +=============================================== + +This sample implements the "Simplified BigBank" scenario. A whitepaper +describing the scenario based on the SCA 0.9 Assembly specification can be +found here. This sample uses multiple Ruby components, calls out to an +external Web Service via a reference, exposes the service as a Web Service +and also provides a PHP based client. + +There are two sub projects in this workspace: + - bigbank.account + This contains the source code and SCDL artifacts for the SCA BigBank + composite implementing the account services. + + - bigbank.client + A sample client which does a local call to the BigBank service. + +Additionally, there is the bigbank.app.composite file. This describes the +configuration of the SCA BigBank composite deployed to the SCA runtime. + +See the README.html file for instructions to build and run this sample diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/README.html b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/README.html new file mode 100644 index 0000000000..6eeb377d6f --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/README.html @@ -0,0 +1,312 @@ + + + + + + + + + + + + Tuscany SCA Native Samples - Ruby BigBank Sample + + + +
+
+
+

Tuscany SCA Native Samples - Ruby BigBank Sample

+ +

This sample implements the "Simplified BigBank" scenario. A whitepaper describing + the scenario based on the SCA 0.9 Assembly specification can be found + here. + This sample uses multiple Ruby components, calls out to an external Web Service via a reference + and exposes the service as a Web Service. +

+

The Ruby BigBank sample requires the following extensions: +

+ Please follow the documentation to ensure you have these extensions built and installed + on your system +

+

There are three sub projects in this workspace:

+
    +
  • bigbank.account
    + This contains the source code and SCDL artifacts for the SCA Ruby BigBank + composite implementing the account services. +
  • +
  • bigbank.client
    + A sample client which does a local call to the BigBank service. +
  • +
  • bigbank.wsclient
    + A sample client which uses an SCA Web Service reference to make a remote + call to the BigBank service. +
  • +
+

Additionally, there is the bigbank.app.composite file. This + describes the configuration of the SCA BigBank composite deployed to the SCA + runtime. +

+
+ + + + +
+

Building the Ruby BigBank sample on Linux and Mac OS X

+

If using the binary distribution the samples are built and installed in + <tuscany_sca_install_dir>/samples - go directly to Running the samples on Linux and Mac OS X.

+
    +
  1. The following environment variables are required: +
      +
    • TUSCANY_SCACPP=<path to installed Tuscany SCA> +
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO> +
  2. + +
  3. As the Ruby BigBank sample is based on Ruby scripts, a specific compilation step is not necessary - + only deployment is required. Deploy the Ruby samples only with the following command sequence: +
      +
    • cd <tuscany_sca_install_dir>/samples
    • +
    • ./configure --enable-ruby --enable-cpp=no --prefix=$TUSCANY_SCACPP/samples
    • +
    • make install
    • +
    + NOTE: If you don't provide the --prefix configure option, it will by default install into + /usr/local/tuscany/sca/samples/RubyBigBank +
  4. +
+
+ +
+

Running the Ruby BigBank sample on Linux and Mac OS X

+

BigBank with basic client

+
    +
  1. The Ruby BigBank sample requires the following extensions: + + Please follow the documentation to ensure you have these extensions built and installed + on your system +
  2. +
  3. The following environment variables are required: +
      +
    • TUSCANY_SCACPP=<path to installed Tuscany SCA>
    • +
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
    • +
    +
  4. +
  5. Run the sample with the following commands: +
      +
    • cd <tuscany_sca_install_dir>/samples/RubyBigBank/deploy/bigbank.client
    • +
    • ./runclient.sh
    • +
    +
  6. +
+

BigBank with Web Service clients

+
    +
  1. The Ruby BigBank sample requires the following extensions: + + Please follow the documentation to ensure you have these extensions built and installed + on your system +
  2. +
  3. Ensure you have enabled Axis2/C to run Tuscany SCA services. Follow the instructions + found here. +
  4. +
  5. Start the Axis2/C simple http server: +
      +
    1. The following environment variables are required: +
        +
      • TUSCANY_SCACPP=<path to installed Tuscany SCA>
      • +
      • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
      • +
      • AXIS2C_HOME=<path to Axis2/C version 0.96>
      • +
      +
    2. +
    3. cd <tuscany_sca_install_dir>/samples/RubyBigBank/deploy/bigbank.account
    4. +
    5. ./runwsserver.sh
    6. +
    +
  6. +
  7. Now run the Web Service client: +
      +
    1. The following environment variables are required: +
        +
      • TUSCANY_SCACPP=<path to installed Tuscany SCA>
      • +
      • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
      • +
      • AXIS2C_HOME=<path to Axis2/C version 0.96>
      • +
      +
    2. +
    3. Run the sample with the following commands: +
        +
      • cd <tuscany_sca_install_dir>/samples/RubyBigBank/deploy/bigbank.wsclient
      • +
      • ./runwsclient.sh
      • +
      +
    4. +
    +
  8. +
  9. The PHP web client detailed in the + CppBigBank sample can also be used + with the Ruby BigBank service that is served by the Axis2/C http server started above. +
  10. +
+
+ +
+

Building the Ruby BigBank sample on Windows

+

If using the binary distribution the samples are built and installed in + <tuscany_sca_install_dir>\samples - go directly to Running the samples on Windows.

+
    +
  1. The following environment variables are required: +
      +
    • TUSCANY_SCACPP=<path to installed Tuscany SCA> +
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO> +
  2. + +
  3. As this sample is based on Ruby scripts, a specific compilation step is not necessary - + only deployment is required. Deploy the sample with the following commands: +
      +
    • cd <tuscany_sca_install_dir>\samples\RubyBigBank
    • +
    • deploy.bat
    • +
    +
  4. +
+
+ +
+

Running the Ruby BigBank sample on Windows

+

BigBank with basic client

+
    +
  1. The Ruby BigBank sample requires the following extensions: + + Please follow the documentation to ensure you have these extensions built and installed + on your system +
  2. +
  3. The following environment variables are required: +
      +
    • TUSCANY_SCACPP=<path to installed Tuscany SCA>
    • +
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
    • +
    +
  4. +
  5. Run the sample with the following commands: +
      +
    • cd <tuscany_sca_install_dir>\samples\RubyBigBank\deploy\bigbank.client
    • +
    • runclient.bat
    • +
    +
  6. +
+

BigBank with Web Service clients

+
    +
  1. The Ruby BigBank sample requires the following extensions: + + Please follow the documentation to ensure you have these extensions built and installed + on your system +
  2. +
  3. Ensure you have enabled Axis2/C to run Tuscany SCA services. Follow the instructions + found here. +
  4. +
  5. Start the Axis2/C simple http server: +
      +
    1. The following environment variables are required: +
        +
      • TUSCANY_SCACPP=<path to installed Tuscany SCA>
      • +
      • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
      • +
      • AXIS2C_HOME=<path to Axis2/C version 0.96>
      • +
      +
    2. +
    3. cd <tuscany_sca_install_dir>\samples\RubyBigBank\deploy\bigbank.account +
    4. +
    5. runwsserver.bat
    6. +
    +
  6. +
  7. Now run the Web Service client: +
      +
    1. The following environment variables are required: +
        +
      • TUSCANY_SCACPP=<path to installed Tuscany SCA>
      • +
      • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
      • +
      • AXIS2C_HOME=<path to Axis2/C version 0.96>
      • +
      +
    2. +
    3. Run the sample with the following commands: +
        +
      • cd <tuscany_sca_install_dir>/samples/RubyBigBank/deploy/bigbank.wsclient
      • +
      • ./runwsclient.bat
      • +
      +
    4. +
    +
  8. +
  9. The PHP web client detailed in the + CppBigBank sample can also be used + with the Ruby BigBank service that is served by the Axis2/C http server started above. +
  10. +
+
+ + + +
+

Getting Help

+ +

The first place to look is at the Tuscany SCA FAQ at + http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ

+ +

Any problem with this release can be reported to the Tuscany + mailing lists or create a JIRA issue at http://issues.apache.org/jira/browse/Tuscany.

+ +
+
+
+ + + + diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountDataServiceImpl.rb b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountDataServiceImpl.rb new file mode 100644 index 0000000000..8ae0e23bab --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountDataServiceImpl.rb @@ -0,0 +1,72 @@ +# 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. +# + +require "rexml/document" +include REXML + +class AccountDataServiceImpl + + def initialize() + print "Ruby - AccountDataServiceImpl.initialize\n" + end + + def getCheckingAccount(id) + print "Ruby - AccountDataServiceImpl.getCheckingAccount ", id, "\n" + + result = Document.new <<-eof + + #{ id.to_s + "_CHA12345"} + 1500.0 + + eof + + return result + end + + def getSavingsAccount(id) + print "Ruby - AccountDataServiceImpl.getSavingsAccount ", id, "\n" + + result = Document.new <<-eof + + #{ id.to_s + "_SAA12345"} + 1500.0 + + eof + + return result + end + + def getStockAccount(id) + print "Ruby - AccountDataServiceImpl.getStockAccount ", id, "\n" + + result = Document.new <<-eof + + #{ id.to_s + "_STA12345"} + IBM + 100 + + + eof + + return result + end + +end diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountService.wsdl b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountService.wsdl new file mode 100644 index 0000000000..b83c453462 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountService.wsdl @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountServiceImpl.rb b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountServiceImpl.rb new file mode 100644 index 0000000000..aab789ca13 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/AccountServiceImpl.rb @@ -0,0 +1,82 @@ +# 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. +# + +require "rexml/document" +include REXML + +class AccountServiceImpl + + attr_writer :accountDataService + attr_writer :stockQuoteService + attr_writer :currency + + def initialize() + print "Ruby - AccountServiceImpl.initialize\n" + end + + def getAccountReport(customerID) + + # Get the checking account info + checking = @accountDataService.getCheckingAccount(customerID) + + # Get the savings account info + savings = @accountDataService.getSavingsAccount(customerID) + + # Get the stocks account info + stock = @accountDataService.getStockAccount(customerID); + symbol = stock.root.elements["symbol"].text + quantity = stock.root.elements["quantity"].text + + # Get the stock price + price = @stockQuoteService.getQuote(symbol); + + # Convert to the configured currency + price = price.to_f * 0.80 if @currency == "EUR" + + # Calculate the balance + balance = price.to_f * quantity.to_f + + # Form the AccountReport document + report = Document.new <<-eof + + + + #{ checking.root.elements["accountNumber"].text } + #{ checking.root.elements["balance"].text } + + + + #{ savings.root.elements["accountNumber"].text } + #{ savings.root.elements["balance"].text } + + + + #{ stock.root.elements["accountNumber"].text } + #{ symbol } + #{ quantity } + #{ balance } + + + + eof + + return report + end + +end diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/Makefile.am b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/Makefile.am new file mode 100644 index 0000000000..6e5ec38414 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/Makefile.am @@ -0,0 +1,24 @@ +# 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. + +deploydir=$(prefix)/RubyBigBank/deploy +compositedir=$(deploydir)/bigbank.account + +composite_SCRIPTS = runwsserver.sh + +composite_DATA = *.composite *.wsdl *.xsd *.rb +EXTRA_DIST = *.composite *.wsdl *.xsd runwsserver.sh *.rb diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteServiceImpl.rb b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteServiceImpl.rb new file mode 100644 index 0000000000..7f8634072c --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteServiceImpl.rb @@ -0,0 +1,52 @@ +# 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. +# + +require "rexml/document" +include REXML + +class StockQuoteServiceImpl + + attr_writer :webService + + def initialize() + print "Ruby - StockQuoteServiceImpl.initialize\n" + end + + def getQuote(symbol) + print "Ruby - StockQuoteServiceImpl.getQuote ", symbol, "\n" + + price = 0 + catch (:RuntimeError) do + begin + + result = @webService.GetQuote(symbol) + doc = Document.new(result) + price = doc.root.elements["Stock"].elements["Last"].text; + + rescue + # offline or StockQuote web service is down + price = 95.0 + end + end + + print "Ruby - stock price = ", price, "\n" + + return price.to_f + end + +end \ No newline at end of file diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteTypes.xsd b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteTypes.xsd new file mode 100644 index 0000000000..2f7012b5fb --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteTypes.xsd @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteWebService.wsdl b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteWebService.wsdl new file mode 100644 index 0000000000..c14f97c87b --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/StockQuoteWebService.wsdl @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get Stock quote for a company Symbol + + + + + + + + + + Get Stock quote for a company Symbol + + + + + + + + + + Get Stock quote for a company Symbol + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/bigbank.account.composite b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/bigbank.account.composite new file mode 100644 index 0000000000..8fff8425a1 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/bigbank.account.composite @@ -0,0 +1,53 @@ + + + + + + + + + + + AccountServiceComponent + + + + + AccountDataServiceComponent + StockQuoteServiceComponent + USD + + + + + + + + + StockQuoteWebService + + + + + + + + diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/runwsserver.bat b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/runwsserver.bat new file mode 100644 index 0000000000..3ab4275436 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/runwsserver.bat @@ -0,0 +1,51 @@ +@echo off + +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. + +setlocal + +if "%TUSCANY_SCACPP%" == "" ( +echo "TUSCANY_SCACPP not set" +goto end +) +echo Using SCA installed at %TUSCANY_SCACPP% + +if "%TUSCANY_SDOCPP%" == "" ( +echo "TUSCANY_SDOCPP not set" +goto end +) +echo Using SDO installed at %TUSCANY_SDOCPP% + +if "%AXIS2C_HOME%" == "" ( +echo "AXIS2C_HOME not set" +goto end +) +echo Using Axis2C installed at %AXIS2C_HOME% + +set APFULLDIR=%~d0%~p0 +set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ +set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 + +rem Run the server +set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SCACPP%\extensions\cpp\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH% + +cd %AXIS2C_HOME%\bin +.\axis2_http_server.exe + +:end +endlocal diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/runwsserver.sh b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/runwsserver.sh new file mode 100755 index 0000000000..e3bbca46c6 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.account/runwsserver.sh @@ -0,0 +1,46 @@ +#!/bin/sh + +# 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. + +APFULLDIR=`pwd` + +if [ x$TUSCANY_SCACPP = x ]; then +echo "TUSCANY_SCACPP not set" +exit; +fi +echo "Using SCA installed at $TUSCANY_SCACPP" + +if [ x$TUSCANY_SDOCPP = x ]; then +echo "TUSCANY_SDOCPP not set" +exit; +fi +echo "Using SDO installed at $TUSCANY_SDOCPP" + +if [ x$AXIS2C_HOME = x ]; then +echo "AXIS2C_HOME not set" +exit; +fi +echo "Using Axis2C installed at $AXIS2C_HOME" + +export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH + +export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ +export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 + +cd $AXIS2C_HOME/bin +./axis2_http_server diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.app.composite b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.app.composite new file mode 100644 index 0000000000..dd94e61e5b --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.app.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + bigbank.AccountManagementComponent/AccountService + + + diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/AccountClient.rb b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/AccountClient.rb new file mode 100644 index 0000000000..31c0acc909 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/AccountClient.rb @@ -0,0 +1,40 @@ +# 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. +# +# + +require("tuscany_sca_ruby") + +accountService = SCA::locateService("AccountServiceComponent") + +report = accountService.getAccountReport(1234) + +checking = report.root.elements["checking"] +savings = report.root.elements["savings"] +stocks = report.root.elements["stocks"] + +print "\n" +print "Checking account: ", checking.elements["accountNumber"].text.strip, "\n" +print "Balance: ", checking.elements["balance"].text.strip, "\n" + +print "Savings account: ", savings.elements["accountNumber"].text.strip, "\n" +print "Balance: ", savings.elements["balance"].text.strip, "\n" + +print "Stocks account:", stocks.elements["accountNumber"].text.strip, "\n" +print "Symbol: ", stocks.elements["symbol"].text.strip, "\n" +print "Quantity: ", stocks.elements["quantity"].text.strip, "\n" +print "Balance: ", stocks.elements["balance"].text.strip, "\n" diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/Makefile.am b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/Makefile.am new file mode 100644 index 0000000000..4e4936746a --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/Makefile.am @@ -0,0 +1,23 @@ +# 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. + +deploydir=$(prefix)/RubyBigBank/deploy +clientdir=$(deploydir)/bigbank.client + +client_DATA = *.rb +client_SCRIPTS = runclient.sh +EXTRA_DIST = runclient.sh *.rb diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/runclient.bat b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/runclient.bat new file mode 100644 index 0000000000..0495237f7f --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/runclient.bat @@ -0,0 +1,51 @@ +@echo off + +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. + +setlocal + +if "%TUSCANY_SCACPP%" == "" ( +echo "TUSCANY_SCACPP not set" +goto end +) +echo Using SCA installed at %TUSCANY_SCACPP% + +if "%TUSCANY_SDOCPP%" == "" ( +echo "TUSCANY_SDOCPP not set" +goto end +) +echo Using SDO installed at %TUSCANY_SDOCPP% + +if "%AXIS2C_HOME%" == "" ( +echo "AXIS2C_HOME not set" +goto end +) +echo Using Axis2C installed at %AXIS2C_HOME% + +rem Run the client +set PATH=%TUSCANY_SCACPP%\extensions\ruby\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH% + +set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ +set TUSCANY_SCACPP_COMPONENT=bigbank.AccountManagementComponent +set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 + +cd %TUSCANY_SCACPP_ROOT%\bigbank.client +ruby -I%TUSCANY_SCACPP%\extensions\ruby\bin AccountClient.rb + +:end +endlocal diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/runclient.sh b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/runclient.sh new file mode 100755 index 0000000000..94d5cd6ff8 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.client/runclient.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +# 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. + + +APFULLDIR=`pwd` + +if [ x$TUSCANY_SCACPP = x ]; then +echo "TUSCANY_SCACPP not set" +exit; +fi +echo "Using SCA installed at $TUSCANY_SCACPP" + +if [ x$TUSCANY_SDOCPP = x ]; then +echo "TUSCANY_SDOCPP not set" +exit; +fi +echo "Using SDO installed at $TUSCANY_SDOCPP" + +if [ x$AXIS2C_HOME = x ]; then +echo "AXIS2C_HOME not set" +exit; +fi +echo "Using Axis2C installed at $AXIS2C_HOME" + +export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/ruby/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH + +export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ +export TUSCANY_SCACPP_COMPONENT=bigbank.AccountManagementComponent +export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 + +cd $TUSCANY_SCACPP_ROOT/bigbank.client +ruby -I$TUSCANY_SCACPP/extensions/ruby/lib AccountClient.rb diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/AccountService.wsdl b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/AccountService.wsdl new file mode 100644 index 0000000000..b83c453462 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/AccountService.wsdl @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/AccountWSClient.rb b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/AccountWSClient.rb new file mode 100644 index 0000000000..6775b80f7a --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/AccountWSClient.rb @@ -0,0 +1,40 @@ +# 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. +# +# + +require("tuscany_sca_ruby") + +accountService = SCA::locateService("AccountService") + +report = accountService.getAccountReport(1234) + +checking = report.root.elements["checking"] +savings = report.root.elements["savings"] +stocks = report.root.elements["stocks"] + +print "\n\n" +print "Checking account #: ", checking.elements["accountNumber"].text.strip, "\n" +print "Balance: ", checking.elements["balance"].text.strip, "\n" + +print "Savings account #: ", savings.elements["accountNumber"].text.strip, "\n" +print "Balance: ", savings.elements["balance"].text.strip, "\n" + +print "Stocks account #:", stocks.elements["accountNumber"].text.strip, "\n" +print "Symbol: ", stocks.elements["symbol"].text.strip, "\n" +print "Quantity: ", stocks.elements["quantity"].text.strip, "\n" +print "Balance: ", stocks.elements["balance"].text.strip, "\n" diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/Makefile.am b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/Makefile.am new file mode 100644 index 0000000000..23f8b55959 --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/Makefile.am @@ -0,0 +1,23 @@ +# 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. + +deploydir=$(prefix)/RubyBigBank/deploy +clientdir=$(deploydir)/bigbank.wsclient + +client_DATA = *.rb *.composite *.wsdl +client_SCRIPTS = runwsclient.sh +EXTRA_DIST = runwsclient.sh *.rb *.composite *.wsdl diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/bigbank.wsclient.composite b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/bigbank.wsclient.composite new file mode 100644 index 0000000000..f484a2fc7c --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/bigbank.wsclient.composite @@ -0,0 +1,29 @@ + + + + + + + + + + + diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/runwsclient.bat b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/runwsclient.bat new file mode 100644 index 0000000000..6e1bb27b4a --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/runwsclient.bat @@ -0,0 +1,51 @@ +@echo off + +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. + +setlocal + +if "%TUSCANY_SCACPP%" == "" ( +echo "TUSCANY_SCACPP not set" +goto end +) +echo Using SCA installed at %TUSCANY_SCACPP% + +if "%TUSCANY_SDOCPP%" == "" ( +echo "TUSCANY_SDOCPP not set" +goto end +) +echo Using SDO installed at %TUSCANY_SDOCPP% + +if "%AXIS2C_HOME%" == "" ( +echo "AXIS2C_HOME not set" +goto end +) +echo Using Axis2C installed at %AXIS2C_HOME% + +rem Run the client +set PATH=%TUSCANY_SCACPP%\extensions\ruby\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH% + +set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\ +set TUSCANY_SCACPP_COMPONENT=bigbank.AccountWSClientComponent +set TUSCANY_SCACPP_BASE_URI=http://localhost:9090 + +cd %TUSCANY_SCACPP_ROOT%\bigbank.wsclient +ruby -I%TUSCANY_SCACPP%\extensions\ruby\bin AccountWSClient.rb + +:end +endlocal diff --git a/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/runwsclient.sh b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/runwsclient.sh new file mode 100755 index 0000000000..d50e6a4b0a --- /dev/null +++ b/sca-cpp/branches/cpp-contrib/contrib/samples/RubyBigBank/bigbank.wsclient/runwsclient.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +# 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. + + +APFULLDIR=`pwd` + +if [ x$TUSCANY_SCACPP = x ]; then +echo "TUSCANY_SCACPP not set" +exit; +fi +echo "Using SCA installed at $TUSCANY_SCACPP" + +if [ x$TUSCANY_SDOCPP = x ]; then +echo "TUSCANY_SDOCPP not set" +exit; +fi +echo "Using SDO installed at $TUSCANY_SDOCPP" + +if [ x$AXIS2C_HOME = x ]; then +echo "AXIS2C_HOME not set" +exit; +fi +echo "Using Axis2C installed at $AXIS2C_HOME" + +export LD_LIBRARY_PATH=$TUSCANY_SCACPP/extensions/ruby/lib:$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH + +export TUSCANY_SCACPP_ROOT=$APFULLDIR/../ +export TUSCANY_SCACPP_COMPONENT=bigbank.AccountWSClientComponent +export TUSCANY_SCACPP_BASE_URI=http://localhost:9090 + +cd $TUSCANY_SCACPP_ROOT/bigbank.wsclient +ruby -I$TUSCANY_SCACPP/extensions/ruby/lib AccountWSClient.rb -- cgit v1.2.3