summaryrefslogtreecommitdiffstats
path: root/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/CalculatorClient.cpp160
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/Makefile.am55
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/runclient.bat48
-rwxr-xr-xtags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/runclient.sh47
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.solution.composite29
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/CalculatorWSClient.cpp186
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/Makefile.am48
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/axis2_Calculator_stub.cpp178
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/axis2_Calculator_stub.h85
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/runwsclient.bat32
-rwxr-xr-xtags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/runwsclient.sh30
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Calculator.h36
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Calculator.wsdl161
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.componentType31
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.cpp89
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.h41
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Divide.h34
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.componentType27
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.cpp47
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.h39
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Makefile.am55
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/runwsserver.bat49
-rwxr-xr-xtags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/runwsserver.sh48
-rw-r--r--tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/sample.calculator.composite39
24 files changed, 0 insertions, 1594 deletions
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/CalculatorClient.cpp b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/CalculatorClient.cpp
deleted file mode 100644
index 9ec8b04bd1..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/CalculatorClient.cpp
+++ /dev/null
@@ -1,160 +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.
- */
-
-/* $Rev$ $Date$ */
-
-#include "Calculator.h"
-
-#include "osoa/sca/sca.h"
-using namespace osoa::sca;
-
-#include "tuscany/sca/core/TuscanyRuntime.h"
-using namespace tuscany::sca;
-
-#include <iostream>
-#include <stdlib.h>
-using namespace std;
-
-
-void usage();
-bool IsNumber(const char *p);
-
-int main(int argc, char* argv[])
-{
- const char *operation;
- float arg1 = 0;
- float arg2 = 0;
-
- if (argc == 4)
- {
- operation = argv[1];
-
- if (!IsNumber(argv[2]))
- {
- cout << "calculator_client: Argument 1 is not a number" << endl;
- usage();
- }
- else
- {
- arg1 = atof(argv[2]);
- }
-
- if (!IsNumber(argv[3]))
- {
- cout << "calculator_client: Argument 2 is not a number" << endl;
- usage();
- }
- else
- {
- arg2 = atof(argv[3]);
- }
- }
- else
- {
- usage();
- }
-
- try
- {
- // Locate a service
- CompositeContext myContext = CompositeContext::getCurrent();
- Calculator *calcService = (Calculator*) myContext.locateService("CalculatorComponent/CalculatorService");
- if (calcService == 0)
- {
- cout << "calculator_client: Unable to find Calculator service" << endl;
- }
- else
- {
- try
- {
- float result = 0;
- if (strcmp(operation, "add") == 0)
- {
- result = calcService->add(arg1, arg2);
- cout << "calculator_client: add(" << arg1 << "," << arg2 << ") = " << result << endl;
- }
- else
- if (strcmp(operation, "sub") == 0)
- {
- result = calcService->sub(arg1, arg2);
- cout << "calculator_client: sub(" << arg1 << "," << arg2 << ") = " << result << endl;
- }
- else
- if (strcmp(operation, "mul") == 0)
- {
- result = calcService->mul(arg1, arg2);
- cout << "calculator_client: mul(" << arg1 << "," << arg2 << ") = " << result << endl;
- }
- else
- if (strcmp(operation, "div") == 0)
- {
- result = calcService->div(arg1, arg2);
- cout << "calculator_client: div(" << arg1 << "," << arg2 << ") = " << result << endl;
- }
- else
- {
- cout << "calculator_client: Unrecognized operation: " << operation << endl;
- }
- }
- catch (char* x)
- {
- cout << "calculator_client: exception caught: " << x << endl;
- }
- }
-
- }
- catch (ServiceRuntimeException& ex)
- {
- cout << ex << endl;
- }
- return 0;
-}
-
-void usage()
-{
- cout << "Usage: calculator_client add|sub|mul|div arg1 arg2" << endl;
- exit(1);
-}
-
-bool IsNumber (const char *p)
-{
- int len = strlen(p);
- int pointcount = 0;
-
- if (!isdigit (p[0]) && p[0] != '-' && p[0] != '+')
- {
- return false;
- }
- for (int i = 1; i < len; i++)
- {
- if (!isdigit (p[i]))
- {
- if (p[i] == '.')
- {
- if (pointcount > 0) return false;
- pointcount++;
- }
- else
- {
- return false;
- }
- }
- }
- return true;
-}
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/Makefile.am b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/Makefile.am
deleted file mode 100644
index ced28cf042..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/Makefile.am
+++ /dev/null
@@ -1,55 +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.
-
-deploydir=$(prefix)/samples/Calculator/deploy
-clientdir=$(deploydir)/sample.calculator.client
-
-client_PROGRAMS = calculator_client
-client_SCRIPTS = runclient.sh
-EXTRA_DIST = runclient.sh
-
-AM_CPPFLAGS = $(CPPFLAGS)
-calculator_client_SOURCES = \
-CalculatorClient.cpp
-
-calculator_client_LDADD = \
--L${TUSCANY_SCACPP}/lib \
- -ltuscany_sca \
--L${TUSCANY_SCACPP}/extensions/cpp/lib \
- -ltuscany_sca_cpp \
--L${TUSCANY_SDOCPP}/lib \
- -ltuscany_sdo \
- -ltuscany_sdo_axiom \
--L$(AXIS2C_HOME)/lib \
- -laxis2_util \
- -laxis2_axiom \
- -laxis2_wsdl \
- -laxis2_engine \
- -lwoden \
- -lwoden_wsdl \
- -laxis2_xml_schema \
- -laxis2_parser \
- -laxis2_minizip \
- -lpthread \
- -laxis2_http_sender \
- -laxis2_http_receiver
-
-INCLUDES = \
--I$(TUSCANY_SCACPP)/extensions/cpp/include \
--I${TUSCANY_SCACPP}/include \
--I${TUSCANY_SDOCPP}/include \
--I../sample.calculator
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/runclient.bat b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/runclient.bat
deleted file mode 100644
index f4308ff739..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/runclient.bat
+++ /dev/null
@@ -1,48 +0,0 @@
-@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 TUSCANY_SCACPP_SYSTEM_ROOT=%~d0%~p0\..\
-set TUSCANY_SCACPP_DEFAULT_COMPONENT=sample.calculator.CalculatorComponent
-
-set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SCACPP%\extensions\cpp\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH%
-
-.\calculator_client.exe div 5 2
-
-:end
-endlocal
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/runclient.sh b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/runclient.sh
deleted file mode 100755
index ec4b3bb643..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.client/runclient.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/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"
-
-TEST_SYSTEM=$APFULLDIR/../
-
-export LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH
-
-export TUSCANY_SCACPP_SYSTEM_ROOT=$TEST_SYSTEM
-export TUSCANY_SCACPP_DEFAULT_COMPONENT=sample.calculator.CalculatorComponent
-
-./calculator_client div 5 2
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.solution.composite b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.solution.composite
deleted file mode 100644
index 0445d645e4..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.solution.composite
+++ /dev/null
@@ -1,29 +0,0 @@
-<?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.
--->
-
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- name="sample.calculator.solution">
-
- <component name="sample.calculator.CalculatorComponent">
- <implementation.composite name="sample.calculator" />
- </component>
-
-</composite>
-
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/CalculatorWSClient.cpp b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/CalculatorWSClient.cpp
deleted file mode 100644
index 267baf1722..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/CalculatorWSClient.cpp
+++ /dev/null
@@ -1,186 +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.
- */
-
-/* $Rev$ $Date$ */
-
-#include "axis2_Calculator_stub.h"
-#include <stdio.h>
-#include <axiom.h>
-#include <axis2_util.h>
-#include <axiom_soap.h>
-#include <axis2_client.h>
-
-axiom_node_t *
-build_om_programatically(const axis2_env_t *env,
- const axis2_char_t *operation,
- const axis2_char_t *param1,
- const axis2_char_t *param2);
-
-int main(int argc, char** argv)
-{
- axis2_stub_t *stub = NULL;
- axiom_node_t *node = NULL;
- axis2_status_t status = AXIS2_FAILURE;
- const axis2_env_t *env = NULL;
- const axis2_char_t *address = NULL;
- const axis2_char_t *client_home = NULL;
- axiom_node_t *ret_node = NULL;
-
- const axis2_char_t *operation = "add";
- const axis2_char_t *param1 = "40";
- const axis2_char_t *param2 = "8";
-
- env = axis2_env_create_all( "CalculatorService_blocking.log", AXIS2_LOG_LEVEL_TRACE);
-
- client_home = AXIS2_GETENV("AXIS2C_HOME");
- if (!client_home)
- client_home = "../../deploy";
-
- address = "http://localhost:9090/axis2/services/CalculatorService";
- if (argc > 1 )
- operation = argv[1];
- if (AXIS2_STRCMP(operation, "-h") == 0)
- {
- printf("Usage : %s [operation] [param1] [param2] [endpoint_url]\n", argv[0]);
- printf("use -h for help\n");
- printf("default operation add\n");
- printf("default param1 %s\n", param1);
- printf("default param2 %s\n", param2);
- printf("default endpoint_url %s\n", address);
- printf("NOTE: command line arguments must appear in given order, with trailing ones being optional\n");
- return 0;
- }
- if (argc > 2 )
- param1 = argv[2];
- if (argc > 3 )
- param2 = argv[3];
- if (argc > 4 )
- address = argv[4];
-
- printf ("Using endpoint : %s\n", address);
- printf ("\nInvoking operation %s with params %s and %s\n", operation, param1, param2);
-
- node = build_om_programatically(env, operation, param1, param2);
- stub =
- axis2_Calculator_stub_create_with_endpoint_uri_and_client_home(env, address, client_home);
- /* create node and invoke Calculator */
- ret_node = axis2_Calculator_stub_add(stub, env, node);
- if(ret_node)
- {
- axis2_char_t *om_str = NULL;
- om_str = AXIOM_NODE_TO_STRING(ret_node, env);
- if(om_str)
- {
- printf("\nOM returned = %s\n", om_str);
- }
-
- if (AXIOM_NODE_GET_NODE_TYPE(ret_node, env) == AXIOM_ELEMENT)
- {
- axis2_char_t *result = NULL;
- axiom_node_t *result_node = (axiom_node_t*)AXIOM_NODE_GET_FIRST_CHILD(ret_node, env);
- axiom_element_t *data_ele = (axiom_element_t*)AXIOM_NODE_GET_DATA_ELEMENT(result_node, env);
-
- result = AXIOM_ELEMENT_GET_TEXT(data_ele, env, result_node);
- printf( "\nResult = %s\n", result);
- }
- else
- {
- axiom_xml_writer_t *writer = NULL;
- axiom_output_t *om_output = NULL;
- axis2_char_t *buffer = NULL;
- writer = axiom_xml_writer_create_for_memory(env, NULL, AXIS2_TRUE, 0,
- AXIS2_XML_PARSER_TYPE_BUFFER);
- om_output = axiom_output_create (env, writer);
-
- AXIOM_NODE_SERIALIZE (ret_node, env, om_output);
- buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(writer, env);
- printf ("\nReceived invalid OM as result : %s\n", buffer);
- if(NULL != buffer)
- {
- AXIS2_FREE(env->allocator, buffer);
- buffer = NULL;
- }
- if(NULL != om_output)
- {
- AXIOM_OUTPUT_FREE(om_output, env);
- om_output = NULL;
- }
- }
- }
- else
- {
- AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
- AXIS2_ERROR_GET_MESSAGE(env->error));
- printf("Calculator stub invoke FAILED!\n");
- }
- if (stub)
- {
- AXIS2_STUB_FREE(stub, env);
- }
- return status;
-}
-
-axiom_node_t *
-build_om_programatically(const axis2_env_t *env,
- const axis2_char_t *operation,
- const axis2_char_t *param1,
- const axis2_char_t *param2)
-{
- axiom_node_t *Calculator_om_node = NULL;
- axiom_element_t* Calculator_om_ele = NULL;
- axiom_node_t* text_om_node = NULL;
- axiom_element_t * text_om_ele = NULL;
- axiom_namespace_t *ns1 = NULL;
-
-
- axiom_xml_writer_t *xml_writer = NULL;
- axiom_output_t *om_output = NULL;
- axis2_char_t *buffer = NULL;
-
- ns1 = axiom_namespace_create (env, "http://sample/calculator", "ns1");
-
- Calculator_om_ele = axiom_element_create(env, NULL, operation, ns1, &Calculator_om_node);
-
- text_om_ele = axiom_element_create(env, Calculator_om_node, "param1", NULL, &text_om_node);
- AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, param1, text_om_node);
-
- text_om_ele = axiom_element_create(env, Calculator_om_node, "param2", NULL, &text_om_node);
- AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, param2, text_om_node);
-
- xml_writer = axiom_xml_writer_create_for_memory(env, NULL, AXIS2_FALSE, AXIS2_FALSE,
- AXIS2_XML_PARSER_TYPE_BUFFER);
- om_output = axiom_output_create( env, xml_writer);
-
- AXIOM_NODE_SERIALIZE(Calculator_om_node, env, om_output);
- buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(xml_writer, env);
- AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "\nSending OM node in XML : %s \n", buffer);
- if(NULL != buffer)
- {
- AXIS2_FREE(env->allocator, buffer);
- buffer = NULL;
- }
- if(NULL != om_output)
- {
- AXIOM_OUTPUT_FREE(om_output, env);
- om_output = NULL;
- }
-
- return Calculator_om_node;
-}
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/Makefile.am b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/Makefile.am
deleted file mode 100644
index 5d0af5df1f..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/Makefile.am
+++ /dev/null
@@ -1,48 +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.
-
-deploydir=$(prefix)/samples/Calculator/deploy
-wsclientdir=$(deploydir)/sample.calculator.wsclient
-
-wsclient_PROGRAMS = calculator_wsclient
-wsclient_SCRIPTS = runwsclient.sh
-EXTRA_DIST = runwsclient.sh
-
-AM_CPPFLAGS = $(CPPFLAGS)
-
-calculator_wsclient_SOURCES = \
-axis2_Calculator_stub.cpp \
-CalculatorWSClient.cpp
-
-noinst_HEADERS = *.h
-
-calculator_wsclient_LDADD = \
--L$(AXIS2C_HOME)/lib \
- -laxis2_util \
- -laxis2_axiom \
- -laxis2_wsdl \
- -laxis2_engine \
- -lwoden \
- -lwoden_wsdl \
- -laxis2_xml_schema \
- -laxis2_parser \
- -laxis2_minizip \
- -lpthread \
- -laxis2_http_sender \
- -laxis2_http_receiver
-
-INCLUDES = -I${AXIS2C_HOME}/include
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/axis2_Calculator_stub.cpp b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/axis2_Calculator_stub.cpp
deleted file mode 100644
index a24a3c9ed6..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/axis2_Calculator_stub.cpp
+++ /dev/null
@@ -1,178 +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.
- */
-
-/* $Rev$ $Date$ */
-
-#include "axis2_Calculator_stub.h"
-
-
-axis2_stub_t *
-axis2_Calculator_stub_create_with_endpoint_ref_and_client_home(const axis2_env_t *env,
- axis2_endpoint_ref_t *endpoint_ref,
- axis2_char_t *client_home)
-{
- axis2_stub_t *stub = NULL;
-
- AXIS2_ENV_CHECK(env, NULL);
-
- stub = (axis2_stub_t *)
- axis2_stub_create_with_endpoint_ref_and_client_home(env, endpoint_ref,
- client_home);
- if(NULL == stub)
- {
- AXIS2_ERROR_SET(env->error,
- AXIS2_ERROR_NO_MEMORY, (axis2_status_codes)AXIS2_FAILURE);
- return NULL;
- }
- axis2_populate_axis_service( stub, env);
- return stub;
-}
-
-void axis2_populate_axis_service( axis2_stub_t* stub, const axis2_env_t *env)
-{
- axis2_svc_client_t* svc_client = NULL;
- axis2_qname_t *op_qname = NULL;
- axis2_svc_t* svc = NULL;
- axis2_op_t* op = NULL;
-
- /*Modifying the Service*/
- svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env );
- svc = (axis2_svc_t*)AXIS2_SVC_CLIENT_GET_AXIS_SERVICE ( svc_client, env );
-
- /*creating the operations*/
-
- op_qname = axis2_qname_create(env,"add" , "", NULL);
- op = axis2_op_create_with_qname(env, op_qname);
- AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
- AXIS2_SVC_ADD_OP(svc, env, op);
-
- op_qname = axis2_qname_create(env,"sub" , "", NULL);
- op = axis2_op_create_with_qname(env, op_qname);
- AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
- AXIS2_SVC_ADD_OP(svc, env, op);
-
- op_qname = axis2_qname_create(env,"mul" , "", NULL);
- op = axis2_op_create_with_qname(env, op_qname);
- AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
- AXIS2_SVC_ADD_OP(svc, env, op);
-
- op_qname = axis2_qname_create(env,"div" , "", NULL);
- op = axis2_op_create_with_qname(env, op_qname);
- AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
- AXIS2_SVC_ADD_OP(svc, env, op);
-}
-
-axis2_stub_t *
-axis2_Calculator_stub_create_with_endpoint_uri_and_client_home(const axis2_env_t *env,
- const axis2_char_t *endpoint_uri,
- const axis2_char_t *client_home)
-{
- axis2_stub_t *stub = NULL;
-
- AXIS2_ENV_CHECK(env, NULL);
-
- stub = (axis2_stub_t *)
- axis2_stub_create_with_endpoint_uri_and_client_home(env, endpoint_uri,
- client_home);
- if(NULL == stub)
- {
- AXIS2_ERROR_SET(env->error,
- AXIS2_ERROR_NO_MEMORY, (axis2_status_codes)AXIS2_FAILURE);
- return NULL;
- }
-
- axis2_populate_axis_service( stub, env);
-
- return stub;
-}
-
-/***************************Function implementation****************************/
-
-axiom_node_t *
-axis2_Calculator_stub_add(axis2_stub_t *stub,
- const axis2_env_t *env,
- axiom_node_t *node)
-{
- axis2_svc_client_t *svc_client = NULL;
- axiom_node_t *ret_node = NULL;
- axis2_qname_t *op_qname = NULL;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-
- svc_client = AXIS2_STUB_GET_SVC_CLIENT(stub, env);
- op_qname = axis2_qname_create(env, "add" , "", NULL);
- ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, node);
-
- return ret_node;
-}
-
-axiom_node_t *
-axis2_Calculator_stub_sub(axis2_stub_t *stub,
- const axis2_env_t *env,
- axiom_node_t *node)
-{
- axis2_svc_client_t *svc_client = NULL;
- axiom_node_t *ret_node = NULL;
- axis2_qname_t *op_qname = NULL;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-
- svc_client = AXIS2_STUB_GET_SVC_CLIENT(stub, env);
- op_qname = axis2_qname_create(env, "sub" , "", NULL);
- ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, node);
-
- return ret_node;
-}
-
-axiom_node_t *
-axis2_Calculator_stub_mul(axis2_stub_t *stub,
- const axis2_env_t *env,
- axiom_node_t *node)
-{
- axis2_svc_client_t *svc_client = NULL;
- axiom_node_t *ret_node = NULL;
- axis2_qname_t *op_qname = NULL;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-
- svc_client = AXIS2_STUB_GET_SVC_CLIENT(stub, env);
- op_qname = axis2_qname_create(env, "mul" , "", NULL);
- ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, node);
-
- return ret_node;
-}
-
-axiom_node_t *
-axis2_Calculator_stub_div(axis2_stub_t *stub,
- const axis2_env_t *env,
- axiom_node_t *node)
-{
- axis2_svc_client_t *svc_client = NULL;
- axiom_node_t *ret_node = NULL;
- axis2_qname_t *op_qname = NULL;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-
- svc_client = AXIS2_STUB_GET_SVC_CLIENT(stub, env);
- op_qname = axis2_qname_create(env, "div" , "", NULL);
- ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, node);
-
- return ret_node;
-}
-
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/axis2_Calculator_stub.h b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/axis2_Calculator_stub.h
deleted file mode 100644
index 833c6f85c6..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/axis2_Calculator_stub.h
+++ /dev/null
@@ -1,85 +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.
- */
-
-/* $Rev$ $Date$ */
-
-#ifndef AXIS2_ECHO_STUB_H
-#define AXIS2_ECHO_STUB_H
-
-/**
- * @file axis2_Calculator_stub.h
- * @brief axis2 Calculator stub interface
- */
-
-#include <axis2_stub.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-axiom_node_t *
-axis2_Calculator_stub_add(axis2_stub_t *stub,
- const axis2_env_t *env,
- axiom_node_t *node);
-
-axiom_node_t *
-axis2_Calculator_stub_sub(axis2_stub_t *stub,
- const axis2_env_t *env,
- axiom_node_t *node);
-
-axiom_node_t *
-axis2_Calculator_stub_mul(axis2_stub_t *stub,
- const axis2_env_t *env,
- axiom_node_t *node);
-
-axiom_node_t *
-axis2_Calculator_stub_div(axis2_stub_t *stub,
- const axis2_env_t *env,
- axiom_node_t *node);
-/**
- * populate services
- */
-void axis2_populate_axis_service( axis2_stub_t* stub, const axis2_env_t *env);
-
-/**
- * Creates axis2_stub struct
- * @param endpoint reference
- * @return pointer to newly created axis2_stub struct
- */
-axis2_stub_t *
-axis2_Calculator_stub_create_with_endpoint_ref_and_client_home(const axis2_env_t *env,
- axis2_endpoint_ref_t *endpoint_ref,
- axis2_char_t *client_home);
-
-/**
- * Creates axis2_stub struct
- * @param endpoint uri
- * @return pointer to newly created axis2_stub struct
- */
-axis2_stub_t *
-axis2_Calculator_stub_create_with_endpoint_uri_and_client_home(const axis2_env_t *env,
- const axis2_char_t *endpoint_uri,
- const axis2_char_t *client_home);
-/** @} */
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* AXIS2_ECHO_STUB_H */
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/runwsclient.bat b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/runwsclient.bat
deleted file mode 100644
index 6d50f23370..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/runwsclient.bat
+++ /dev/null
@@ -1,32 +0,0 @@
-@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 "%AXIS2C_HOME%" == "" (
-echo "AXIS2C_HOME not set"
-goto end
-)
-echo Using Axis2C installed at %AXIS2C_HOME%"
-
-rem Run the client
-.\calculator_wsclient.exe div 5 2
-
-:end
-endlocal
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/runwsclient.sh b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/runwsclient.sh
deleted file mode 100755
index 51d8dbac22..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator.wsclient/runwsclient.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/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$AXIS2C_HOME = x ]; then
-echo "AXIS2C_HOME not set"
-exit;
-fi
-echo "Using Axis2C installed at $AXIS2C_HOME"
-
-export LD_LIBRARY_PATH=$AXIS2C_HOME/lib:$LD_LIBRARY_PATH
-
-./calculator_wsclient div 5 2
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Calculator.h b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Calculator.h
deleted file mode 100644
index 1a88c9cb67..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Calculator.h
+++ /dev/null
@@ -1,36 +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.
- */
-
-/* $Rev$ $Date$ */
-
-#ifndef sample_calculator_h
-#define sample_calculator_h
-
-class Calculator
-{
-public:
- virtual float add(float arg1, float arg2) = 0;
- virtual float sub(float arg1, float arg2) = 0;
- virtual float mul(float arg1, float arg2) = 0;
- virtual float div(float arg1, float arg2) = 0;
-};
-
-#endif // sample_calculator_h
-
-
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Calculator.wsdl b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Calculator.wsdl
deleted file mode 100644
index 37529c06c5..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Calculator.wsdl
+++ /dev/null
@@ -1,161 +0,0 @@
-<?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.
--->
-
-<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:tns="http://sample/calculator"
- targetNamespace="http://sample/calculator">
- <types>
- <xs:schema targetNamespace="http://sample/calculator"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:tns="http://sample/calculator" elementFormDefault="qualified">
-
- <xs:element name="add">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="param1" type="xs:float"/>
- <xs:element name="param2" type="xs:float"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="sub">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="param1" type="xs:float"/>
- <xs:element name="param2" type="xs:float"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="mul">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="param1" type="xs:float"/>
- <xs:element name="param2" type="xs:float"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="div">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="param1" type="xs:float"/>
- <xs:element name="param2" type="xs:float"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="result">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="data" type="xs:float"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- </xs:schema>
- </types>
-
- <message name="addRequestMsg">
- <part name="body" element="tns:add" />
- </message>
- <message name="subRequestMsg">
- <part name="body" element="tns:sub" />
- </message>
- <message name="mulRequestMsg">
- <part name="body" element="tns:mul" />
- </message>
- <message name="divRequestMsg">
- <part name="body" element="tns:div" />
- </message>
-
- <message name="calculatorResponseMsg">
- <part name="body" element="tns:result" />
- </message>
-
- <portType name="Calculator">
- <operation name="add">
- <input message="tns:addRequestMsg" />
- <output message="tns:calculatorResponseMsg" />
- </operation>
- <operation name="sub">
- <input message="tns:subRequestMsg" />
- <output message="tns:calculatorResponseMsg" />
- </operation>
- <operation name="mul">
- <input message="tns:mulRequestMsg" />
- <output message="tns:calculatorResponseMsg" />
- </operation>
- <operation name="div">
- <input message="tns:divRequestMsg" />
- <output message="tns:calculatorResponseMsg" />
- </operation>
- </portType>
-
- <binding name="CalculatorBinding"
- type="tns:Calculator">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="add">
- <soap:operation soapAction="CalculatorService#add" />
- <input>
- <soap:body use="literal" />
- </input>
- <output>
- <soap:body use="literal" />
- </output>
- </operation>
- <operation name="sub">
- <soap:operation soapAction="CalculatorService#sub" />
- <input>
- <soap:body use="literal" />
- </input>
- <output>
- <soap:body use="literal" />
- </output>
- </operation>
- <operation name="mul">
- <soap:operation soapAction="CalculatorService#mul" />
- <input>
- <soap:body use="literal" />
- </input>
- <output>
- <soap:body use="literal" />
- </output>
- </operation>
- <operation name="div">
- <soap:operation soapAction="CalculatorService#div" />
- <input>
- <soap:body use="literal" />
- </input>
- <output>
- <soap:body use="literal" />
- </output>
- </operation>
- </binding>
-
- <service name="CalculatorService">
- <port name="CalculatorPort"
- binding="tns:CalculatorBinding">
- <soap:address location="http://localhost:9090/axis2/services/CalculatorService" />
- </port>
- </service>
-</definitions>
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.componentType b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.componentType
deleted file mode 100644
index 72fe9842e8..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.componentType
+++ /dev/null
@@ -1,31 +0,0 @@
-<?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.
--->
-
-<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
-
- <service name="CalculatorService">
- <interface.cpp header="Calculator.h"/>
- </service>
-
- <reference name="divideService">
- <interface.cpp header="Divide.h"/>
- </reference>
-
-</componentType> \ No newline at end of file
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.cpp b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.cpp
deleted file mode 100644
index 73abf2f1df..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.cpp
+++ /dev/null
@@ -1,89 +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.
- */
-
-/* $Rev$ $Date$ */
-
-#include "CalculatorImpl.h"
-#include <stdio.h>
-
-#include "Divide.h"
-#include "osoa/sca/ComponentContext.h"
-#include "osoa/sca/ServiceRuntimeException.h"
-
-CalculatorImpl::CalculatorImpl()
-{
-}
-
-CalculatorImpl::~CalculatorImpl()
-{
-}
-
-// Calculator interface
-float CalculatorImpl::add(float arg1, float arg2)
-{
- float result = arg1 + arg2;
-
- printf("CalculatorImpl::add %f + %f = %f\n", arg1, arg2, result);
- return result;
-}
-
-float CalculatorImpl::sub(float arg1, float arg2)
-{
- float result = arg1 - arg2;
- printf("CalculatorImpl::sub %f - %f = %f\n", arg1, arg2, result);
- return result;
-}
-
-float CalculatorImpl::mul(float arg1, float arg2)
-{
- float result = arg1 * arg2;
- printf("CalculatorImpl::mul %f * %f = %f\n", arg1, arg2, result);
- return result;
-}
-
-float CalculatorImpl::div(float arg1, float arg2)
-{
- float result = 0;
-
- // This method shows how to invoke a service on a different component from within a component
-
- // First, get the current ComponentContext
- osoa::sca::ComponentContext myContext = osoa::sca::ComponentContext::getCurrent();
-
- try
- {
- // Find the required service, as referenced in CalculatorImpl.componentType
- Divide* divideService = (Divide*)myContext.getService("divideService");
-
- // Finally, invoke the service
- result = divideService->divide(arg1, arg2);
-
- printf("CalculatorImpl::div Divide returned result: %f\n", result);
-
- }
- catch (osoa::sca::ServiceRuntimeException& e)
- {
- // Print out error message and carry on
- printf("CalculatorImpl::div Error whilst invoking Divide: %s", e.getMessageText());
- }
-
- return result;
-}
-
-
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.h b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.h
deleted file mode 100644
index af8a5eeab1..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/CalculatorImpl.h
+++ /dev/null
@@ -1,41 +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.
- */
-
-/* $Rev$ $Date$ */
-
-#ifndef sample_calculatorimpl_h
-#define sample_calculatorimpl_h
-
-#include "Calculator.h"
-
-class CalculatorImpl : public Calculator
-{
-public:
- CalculatorImpl();
- virtual ~CalculatorImpl();
-
- // Calculator interface
- virtual float add(float arg1, float arg2);
- virtual float sub(float arg1, float arg2);
- virtual float mul(float arg1, float arg2);
- virtual float div(float arg1, float arg2);
-};
-
-#endif // sample_calculatorimpl_h
-
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Divide.h b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Divide.h
deleted file mode 100644
index 6e171ed733..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Divide.h
+++ /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.
- */
-
-/* $Rev$ $Date$ */
-
-
-#ifndef sample_divide_h
-#define sample_divide_h
-
-class Divide
-{
-public:
- virtual float divide(float arg1, float arg2) = 0;
-};
-
-#endif // sample_divide_h
-
-
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.componentType b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.componentType
deleted file mode 100644
index d7369e3ff0..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.componentType
+++ /dev/null
@@ -1,27 +0,0 @@
-<?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.
--->
-
-<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
-
- <service name="DivideService">
- <interface.cpp header="Divide.h"/>
- </service>
-
-</componentType>
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.cpp b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.cpp
deleted file mode 100644
index 8b9db46ecb..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.cpp
+++ /dev/null
@@ -1,47 +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.
- */
-
-/* $Rev$ $Date$ */
-
-#include "DivideImpl.h"
-#include <stdio.h>
-
-DivideImpl::DivideImpl()
-{
-}
-
-DivideImpl::~DivideImpl()
-{
-}
-
-// Divide interface
-float DivideImpl::divide(float arg1, float arg2)
-{
- if(arg2 == 0.0)
- {
- printf("DivideImpl::div %f / %f !! Cannot divide by zero, so returning 0\n", arg1, arg2);
- return 0;
- }
-
- float result = arg1 / arg2;
- printf("DivideImpl::div %f / %f = %f\n", arg1, arg2, result);
- return result;
-}
-
-
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.h b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.h
deleted file mode 100644
index 64045f1899..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/DivideImpl.h
+++ /dev/null
@@ -1,39 +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.
- */
-
-/* $Rev$ $Date$ */
-
-
-#ifndef sample_divideimpl_h
-#define sample_divideimpl_h
-
-#include "Divide.h"
-
-class DivideImpl : public Divide
-{
-public:
- DivideImpl();
- virtual ~DivideImpl();
-
- // Divide interface
- virtual float divide(float arg1, float arg2);
-};
-
-#endif // sample_divideimpl_h
-
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Makefile.am b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Makefile.am
deleted file mode 100644
index c57d0c9fe5..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/Makefile.am
+++ /dev/null
@@ -1,55 +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.
-
-deploydir=$(prefix)/samples/Calculator/deploy
-compositedir=$(deploydir)/sample.calculator
-
-BUILT_SOURCES = scagen
-
-noinst_HEADERS = *.h
-
-scagen:
- java -jar $(TUSCANY_SCACPP)/bin/scagen.jar -dir . -output .
-
-composite_SCRIPTS = runwsserver.sh
-
-composite_LTLIBRARIES = libCalculator.la
-composite_DATA = *.composite *.componentType *.wsdl
-EXTRA_DIST = *.composite *.componentType *.wsdl runwsserver.sh
-
-dist_libCalculator_la_SOURCES = \
-CalculatorImpl.cpp \
-DivideImpl.cpp
-
-nodist_libCalculator_la_SOURCES = \
-CalculatorImpl_CalculatorService_Proxy.cpp \
-CalculatorImpl_CalculatorService_Wrapper.cpp \
-CalculatorImpl_divideService_Proxy.cpp \
-DivideImpl_DivideService_Proxy.cpp \
-DivideImpl_DivideService_Wrapper.cpp
-
-libCalculator_la_LIBADD = \
--L${TUSCANY_SCACPP}/lib \
- -ltuscany_sca \
--L${TUSCANY_SCACPP}/extensions/cpp/lib \
- -ltuscany_sca_cpp
-
-INCLUDES = \
--I$(TUSCANY_SCACPP)/extensions/cpp/include \
--I$(TUSCANY_SCACPP)/include \
--I${TUSCANY_SDOCPP}/include
-
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/runwsserver.bat b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/runwsserver.bat
deleted file mode 100644
index 160152e6a9..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/runwsserver.bat
+++ /dev/null
@@ -1,49 +0,0 @@
-@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 TUSCANY_SCACPP_SYSTEM_ROOT=%~d0%~p0\..\
-set TUSCANY_SCACPP_DEFAULT_COMPONENT=sample.calculator.CalculatorComponent
-
-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/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/runwsserver.sh b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/runwsserver.sh
deleted file mode 100755
index b94d841d66..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/runwsserver.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/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"
-
-TEST_SYSTEM=$APFULLDIR/../
-
-export LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH
-
-export TUSCANY_SCACPP_SYSTEM_ROOT=$TEST_SYSTEM
-export TUSCANY_SCACPP_DEFAULT_COMPONENT=sample.calculator.CalculatorComponent
-
-cd $AXIS2C_HOME/bin
-./axis2_http_server
diff --git a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/sample.calculator.composite b/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/sample.calculator.composite
deleted file mode 100644
index ae4657b366..0000000000
--- a/tags/cpp-1.0-incubating-M2-RC3/sca/samples/Calculator/sample.calculator/sample.calculator.composite
+++ /dev/null
@@ -1,39 +0,0 @@
-<?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.
--->
-
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- name="sample.calculator">
-
- <service name="CalculatorService">
- <interface.wsdl interface="http://sample/calculator#wsdl.interface(Calculator)"/>
- <binding.ws/>
- <reference>CalculatorComponent/CalculatorService</reference>
- </service>
-
- <component name="CalculatorComponent">
- <implementation.cpp library="Calculator" header="CalculatorImpl.h"/>
- <reference name="divideService">DivideComponent/DivideService</reference>
- </component>
-
- <component name="DivideComponent">
- <implementation.cpp library="Calculator" header="DivideImpl.h"/>
- </component>
-
-</composite> \ No newline at end of file