summaryrefslogtreecommitdiffstats
path: root/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator
diff options
context:
space:
mode:
Diffstat (limited to 'tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator')
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.componentType29
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.h34
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.php32
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.componentType43
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.h34
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.php97
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.wsdl161
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl.componentType31
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl.cpp90
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl.h41
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.cpp98
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.h44
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.cpp135
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.h43
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.cpp65
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.h41
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Divide.componentType41
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Divide.h34
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Divide.php71
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl.componentType27
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl.cpp48
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl.h39
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.cpp65
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.h41
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.cpp84
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.h43
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.componentType25
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.h34
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.php36
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Makefile.am56
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.componentType28
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.h34
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.php33
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.componentType29
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.h34
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.php30
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/runwsserver.bat0
-rwxr-xr-xtags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/runwsserver.sh45
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/sample.calculator.composite81
-rw-r--r--tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/sample.calculator.composite.back0
40 files changed, 0 insertions, 1976 deletions
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.componentType b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.componentType
deleted file mode 100644
index aca0b2a6e4..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.componentType
+++ /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.
--->
-
-<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
- <service name="AddService">
- <interface.cpp header="Add.h"/>
- </service>
-
- <reference name="log_service">
- <interface.cpp header="Log.h"/>
- </reference>
-</componentType>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.h
deleted file mode 100644
index 4abfe9af6b..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.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_add_h
-#define sample_add_h
-
-class Add
-{
- public:
- virtual float add(float num1, float num2) = 0;
-};
-
-#endif // sample_add_h
-
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.php b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.php
deleted file mode 100644
index 4b5747e10f..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Add.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-# 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 'SCA/SCA.php';
-
-$num1 = $_REQUEST[0];
-$num2 = $_REQUEST[1];
-
-$result = $num1 + $num2;
-
-$log_proxy = SCA::getService("log_service");
-$log_proxy->log_message($result);
-
-echo $result;
-?>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.componentType b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.componentType
deleted file mode 100644
index 7767c663bf..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.componentType
+++ /dev/null
@@ -1,43 +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="add_service">
- <interface.cpp header="Add.h"/>
- </reference>
-
- <reference name="sub_service">
- <interface.cpp header="Subtract.h"/>
- </reference>
-
- <reference name="mul_service">
- <interface.cpp header="Multiply.h"/>
- </reference>
-
- <reference name="div_service">
- <interface.cpp header="Divide.h"/>
- </reference>
-
-</componentType>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.h
deleted file mode 100644
index 90e97b5319..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.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_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/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.php b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.php
deleted file mode 100644
index ce8f7899da..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-# 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.
-#
-#
-include 'SCA/SCA.php';
-
-/**
- * @service
- * @binding.ws
- */
-class Calculator {
-
- /**
- * @reference
- * @binding.php Add.php
- */
- public $add_service;
-
- /**
- * @reference
- * @binding.php Subtract.php
- */
- public $sub_service;
-
- /**
- * @reference
- * @binding.php Multiply.php
- */
- public $mul_service;
-
- /**
- * @reference
- * @binding.ws Divide.wsdl
- */
- public $div_service;
-
- /**
- * Addition
- *
- * @param float $num1 (the first number)
- * @param float $num2 (the second number)
- * @return float The result
- */
- function add($num1, $num2) {
- return $this->mul_service->add($num1, $num2);
- }
-
- /**
- * Subtraction
- *
- * @param float $num1 (the first number)
- * @param float $num2 (the second number)
- * @return float The result
- */
- function sub($num1, $num2) {
- return $this->mul_service->sub($num1, $num2);
- }
-
- /**
- * Multiplication
- *
- * @param float $num1 (the first number)
- * @param float $num2 (the second number)
- * @return float The result
- */
- function mul($num1, $num2) {
- return $this->mul_service->mul($num1, $num2);
- }
-
- /**
- * Division
- *
- * @param float $num1 (the first number)
- * @param float $num2 (the second number)
- * @return float The result
- */
- function div($num1, $num2) {
- return $this->div_service->div($num1, $num2);
- }
-}
-
-?>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.wsdl b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Calculator.wsdl
deleted file mode 100644
index 331b996ba2..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/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/sample.calculator.CalculatorComponent/CalculatorService" />
- </port>
- </service>
-</definitions>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl.componentType b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl.componentType
deleted file mode 100644
index e2799af955..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/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>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl.cpp b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl.cpp
deleted file mode 100644
index 2d880de72d..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl.cpp
+++ /dev/null
@@ -1,90 +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 <stdio.h>
-
-#include "osoa/sca/ComponentContext.h"
-#include "osoa/sca/ServiceRuntimeException.h"
-
-#include "CalculatorImpl.h"
-#include "Divide.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->div(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/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl.h
deleted file mode 100644
index af8a5eeab1..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/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/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.cpp b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.cpp
deleted file mode 100644
index 084e6fbf2f..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.cpp
+++ /dev/null
@@ -1,98 +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.
- */
-
-#include "CalculatorImpl_CalculatorService_Proxy.h"
-
-#include "osoa/sca/sca.h"
-
-extern "C"
-{
-
- #if defined(WIN32) || defined(_WINDOWS)
- __declspec(dllexport)
- #endif
- CalculatorImpl_CalculatorService_Proxy* CalculatorImpl_CalculatorService_Proxy_Factory(tuscany::sca::ServiceWrapper* target)
- {
- return new CalculatorImpl_CalculatorService_Proxy(target);
- }
-
- #if defined(WIN32) || defined(_WINDOWS)
- __declspec(dllexport)
- #endif
- void CalculatorImpl_CalculatorService_Proxy_Destructor(void* proxy)
- {
- delete (CalculatorImpl_CalculatorService_Proxy*)proxy;
- }
-}
-
-CalculatorImpl_CalculatorService_Proxy::CalculatorImpl_CalculatorService_Proxy(tuscany::sca::ServiceWrapper* targ) : target(targ)
-{
-}
-
-CalculatorImpl_CalculatorService_Proxy::~CalculatorImpl_CalculatorService_Proxy()
-{
- if (target)
- delete target;
-}
-
-float CalculatorImpl_CalculatorService_Proxy::add( float arg0, float arg1)
-{
- tuscany::sca::Operation operation("add");
- operation.addParameter("arg1", &arg0);
- operation.addParameter("arg2", &arg1);
- float ret;
- operation.setReturnValue(&ret);
- target->invoke(operation);
- return *(float*)operation.getReturnValue();
-}
-
-float CalculatorImpl_CalculatorService_Proxy::sub( float arg0, float arg1)
-{
- tuscany::sca::Operation operation("sub");
- operation.addParameter("arg1", &arg0);
- operation.addParameter("arg2", &arg1);
- float ret;
- operation.setReturnValue(&ret);
- target->invoke(operation);
- return *(float*)operation.getReturnValue();
-}
-
-float CalculatorImpl_CalculatorService_Proxy::mul( float arg0, float arg1)
-{
- tuscany::sca::Operation operation("mul");
- operation.addParameter("arg1", &arg0);
- operation.addParameter("arg2", &arg1);
- float ret;
- operation.setReturnValue(&ret);
- target->invoke(operation);
- return *(float*)operation.getReturnValue();
-}
-
-float CalculatorImpl_CalculatorService_Proxy::div( float arg0, float arg1)
-{
- tuscany::sca::Operation operation("div");
- operation.addParameter("arg1", &arg0);
- operation.addParameter("arg2", &arg1);
- float ret;
- operation.setReturnValue(&ret);
- target->invoke(operation);
- return *(float*)operation.getReturnValue();
-}
-
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.h
deleted file mode 100644
index 700a060636..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Proxy.h
+++ /dev/null
@@ -1,44 +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.
- */
-
-#ifndef CalculatorImpl_CalculatorService_Proxy_h
-#define CalculatorImpl_CalculatorService_Proxy_h
-
-#if defined(WIN32) || defined (_WINDOWS)
-#pragma warning(disable: 4786)
-#endif
-
-#include "Calculator.h"
-#include "tuscany/sca/core/ServiceWrapper.h"
-
-class CalculatorImpl_CalculatorService_Proxy : public Calculator
-{
-public:
- CalculatorImpl_CalculatorService_Proxy(tuscany::sca::ServiceWrapper*);
- virtual ~CalculatorImpl_CalculatorService_Proxy();
- 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);
-private:
- tuscany::sca::ServiceWrapper* target;
-};
-
-#endif // CalculatorImpl_CalculatorService_Proxy_h
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.cpp b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.cpp
deleted file mode 100644
index 82114b4d6d..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.cpp
+++ /dev/null
@@ -1,135 +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.
- */
-
-#include "CalculatorImpl_CalculatorService_Wrapper.h"
-
-#include "osoa/sca/sca.h"
-
-
-
-extern "C"
-{
-
- #if defined(WIN32) || defined(_WINDOWS)
- __declspec(dllexport)
- #endif
- CalculatorImpl_CalculatorService_Wrapper* CalculatorImpl_CalculatorService_Wrapper_Factory(tuscany::sca::model::Service* target)
- {
- return new CalculatorImpl_CalculatorService_Wrapper(target);
- }
-}
-
-CalculatorImpl_CalculatorService_Wrapper::CalculatorImpl_CalculatorService_Wrapper(tuscany::sca::model::Service* target) : tuscany::sca::cpp::CPPServiceWrapper(target)
-{
- impl = (CalculatorImpl*)getImplementation();
-}
-
-CalculatorImpl_CalculatorService_Wrapper::~CalculatorImpl_CalculatorService_Wrapper()
-{
- releaseImplementation();
-}
-
-void* CalculatorImpl_CalculatorService_Wrapper::newImplementation()
-{
- return new CalculatorImpl;
-}
-
-void CalculatorImpl_CalculatorService_Wrapper::deleteImplementation()
-{
- delete impl;
-}
-
-void CalculatorImpl_CalculatorService_Wrapper::invokeService(tuscany::sca::Operation& operation)
-{
- const std::string& operationName = operation.getName();
-
- if (operationName == "add")
- {
- float& p0 = *( float*)operation.getParameterValue(0);
- float& p1 = *( float*)operation.getParameterValue(1);
-
- if(operation.getReturnValue() != NULL)
- {
- *(float*)operation.getReturnValue() = impl->add(p0, p1);
- }
- else
- {
- float* ret = new float;
- *ret = impl->add(p0, p1);
- operation.setReturnValue((const float*)ret);
- }
- return;
- }
- if (operationName == "sub")
- {
- float& p0 = *( float*)operation.getParameterValue(0);
- float& p1 = *( float*)operation.getParameterValue(1);
-
- if(operation.getReturnValue() != NULL)
- {
- *(float*)operation.getReturnValue() = impl->sub(p0, p1);
- }
- else
- {
- float* ret = new float;
- *ret = impl->sub(p0, p1);
- operation.setReturnValue((const float*)ret);
- }
- return;
- }
- if (operationName == "mul")
- {
- float& p0 = *( float*)operation.getParameterValue(0);
- float& p1 = *( float*)operation.getParameterValue(1);
-
- if(operation.getReturnValue() != NULL)
- {
- *(float*)operation.getReturnValue() = impl->mul(p0, p1);
- }
- else
- {
- float* ret = new float;
- *ret = impl->mul(p0, p1);
- operation.setReturnValue((const float*)ret);
- }
- return;
- }
- if (operationName == "div")
- {
- float& p0 = *( float*)operation.getParameterValue(0);
- float& p1 = *( float*)operation.getParameterValue(1);
-
- if(operation.getReturnValue() != NULL)
- {
- *(float*)operation.getReturnValue() = impl->div(p0, p1);
- }
- else
- {
- float* ret = new float;
- *ret = impl->div(p0, p1);
- operation.setReturnValue((const float*)ret);
- }
- return;
- }
-
-
- throw osoa::sca::ServiceRuntimeException("Invalid operation");
-
-}
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.h
deleted file mode 100644
index 63bae2f75c..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_CalculatorService_Wrapper.h
+++ /dev/null
@@ -1,43 +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.
- */
-
-#ifndef CalculatorImpl_CalculatorService_Wrapper_h
-#define CalculatorImpl_CalculatorService_Wrapper_h
-
-#if defined(WIN32) || defined (_WINDOWS)
-#pragma warning(disable: 4786)
-#endif
-
-#include "CalculatorImpl.h"
-#include "tuscany/sca/cpp/CPPServiceWrapper.h"
-
-class CalculatorImpl_CalculatorService_Wrapper : public tuscany::sca::cpp::CPPServiceWrapper
-{
-public:
- CalculatorImpl_CalculatorService_Wrapper(tuscany::sca::model::Service* target);
- virtual ~CalculatorImpl_CalculatorService_Wrapper();
- virtual void invokeService(tuscany::sca::Operation& operation);
- virtual void* newImplementation();
- virtual void deleteImplementation();
-private:
- CalculatorImpl* impl;
-};
-
-#endif // CalculatorImpl_CalculatorService_Wrapper_h
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.cpp b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.cpp
deleted file mode 100644
index 510069c331..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.cpp
+++ /dev/null
@@ -1,65 +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.
- */
-
-#include "CalculatorImpl_divideService_Proxy.h"
-
-#include "osoa/sca/sca.h"
-
-extern "C"
-{
-
- #if defined(WIN32) || defined(_WINDOWS)
- __declspec(dllexport)
- #endif
- CalculatorImpl_divideService_Proxy* CalculatorImpl_divideService_Proxy_Factory(tuscany::sca::ServiceWrapper* target)
- {
- return new CalculatorImpl_divideService_Proxy(target);
- }
-
- #if defined(WIN32) || defined(_WINDOWS)
- __declspec(dllexport)
- #endif
- void CalculatorImpl_divideService_Proxy_Destructor(void* proxy)
- {
- delete (CalculatorImpl_divideService_Proxy*)proxy;
- }
-}
-
-CalculatorImpl_divideService_Proxy::CalculatorImpl_divideService_Proxy(tuscany::sca::ServiceWrapper* targ) : target(targ)
-{
-}
-
-CalculatorImpl_divideService_Proxy::~CalculatorImpl_divideService_Proxy()
-{
- if (target)
- delete target;
-}
-
-float CalculatorImpl_divideService_Proxy::div( float arg0, float arg1)
-{
- tuscany::sca::Operation operation("div");
- operation.addParameter("num1", &arg0);
- operation.addParameter("num2", &arg1);
- float ret;
- operation.setReturnValue(&ret);
- target->invoke(operation);
- return *(float*)operation.getReturnValue();
-}
-
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.h
deleted file mode 100644
index 0459e70f33..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/CalculatorImpl_divideService_Proxy.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.
- */
-
-#ifndef CalculatorImpl_divideService_Proxy_h
-#define CalculatorImpl_divideService_Proxy_h
-
-#if defined(WIN32) || defined (_WINDOWS)
-#pragma warning(disable: 4786)
-#endif
-
-#include "Divide.h"
-#include "tuscany/sca/core/ServiceWrapper.h"
-
-class CalculatorImpl_divideService_Proxy : public Divide
-{
-public:
- CalculatorImpl_divideService_Proxy(tuscany::sca::ServiceWrapper*);
- virtual ~CalculatorImpl_divideService_Proxy();
- virtual float div( float num1, float num2);
-private:
- tuscany::sca::ServiceWrapper* target;
-};
-
-#endif // CalculatorImpl_divideService_Proxy_h
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Divide.componentType b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Divide.componentType
deleted file mode 100644
index 428d19f8bc..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Divide.componentType
+++ /dev/null
@@ -1,41 +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>
-
- <reference name="cppDivideService">
- <interface.cpp header="Divide.h"/>
- </reference>
-
- <reference name="add_service">
- <interface.cpp header="Add.h"/>
- </reference>
-
- <reference name="subtract_service">
- <interface.cpp header="Subtract.h"/>
- </reference>
-
- <reference name="multiply_service">
- <interface.cpp header="Multiply.h"/>
- </reference>
-</componentType>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Divide.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Divide.h
deleted file mode 100644
index c2ab3b816c..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/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 div(float num1, float num2) = 0;
-};
-
-#endif // sample_divide_h
-
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Divide.php b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Divide.php
deleted file mode 100644
index c2e9adda70..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Divide.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-# 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.
-#
-#
-
-/**
- * @service
- * @binding.ws
- */
-class Divide {
-
- /**
- * @reference
- * @binding.tuscany cppDivideService
- */
- public $another_divide;
-
- /**
- * @reference
- * @binding.tuscany add_service
- */
- public $add_service;
-
- /**
- * @reference
- * @binding.tuscany subtract_service
- */
- public $subtract_service;
-
- /**
- * @reference
- * @binding.tuscany multiply_service
- */
- public $multiply_service;
-
- /**
- * Division
- *
- * @param float $num1 (the first number)
- * @param float $num2 (the second number)
- * @return float The result
- */
- function div($num1, $num2) {
-
- //$this->add_service->add(12.0, 27.0);
- //$this->subtract_service->sub(12.0, 27.0);
- $this->multiply_service->mul(12.0, 27.0);
-
- $result = $this->another_divide->div($num1, $num2);
-
- return $result;
- }
-
-}
-
-?>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl.componentType b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl.componentType
deleted file mode 100644
index d7369e3ff0..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/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/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl.cpp b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl.cpp
deleted file mode 100644
index 88b9065171..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl.cpp
+++ /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.
- */
-
-/* $Rev$ $Date$ */
-
-#include <stdio.h>
-
-#include "DivideImpl.h"
-
-DivideImpl::DivideImpl()
-{
-}
-
-DivideImpl::~DivideImpl()
-{
-}
-
-// Divide interface
-float DivideImpl::div(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/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl.h
deleted file mode 100644
index 42cf47b1d4..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/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 div(float arg1, float arg2);
-};
-
-#endif // sample_divideimpl_h
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.cpp b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.cpp
deleted file mode 100644
index e8dbeb2e0d..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.cpp
+++ /dev/null
@@ -1,65 +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.
- */
-
-#include "DivideImpl_DivideService_Proxy.h"
-
-#include "osoa/sca/sca.h"
-
-extern "C"
-{
-
- #if defined(WIN32) || defined(_WINDOWS)
- __declspec(dllexport)
- #endif
- DivideImpl_DivideService_Proxy* DivideImpl_DivideService_Proxy_Factory(tuscany::sca::ServiceWrapper* target)
- {
- return new DivideImpl_DivideService_Proxy(target);
- }
-
- #if defined(WIN32) || defined(_WINDOWS)
- __declspec(dllexport)
- #endif
- void DivideImpl_DivideService_Proxy_Destructor(void* proxy)
- {
- delete (DivideImpl_DivideService_Proxy*)proxy;
- }
-}
-
-DivideImpl_DivideService_Proxy::DivideImpl_DivideService_Proxy(tuscany::sca::ServiceWrapper* targ) : target(targ)
-{
-}
-
-DivideImpl_DivideService_Proxy::~DivideImpl_DivideService_Proxy()
-{
- if (target)
- delete target;
-}
-
-float DivideImpl_DivideService_Proxy::div( float arg0, float arg1)
-{
- tuscany::sca::Operation operation("div");
- operation.addParameter("num1", &arg0);
- operation.addParameter("num2", &arg1);
- float ret;
- operation.setReturnValue(&ret);
- target->invoke(operation);
- return *(float*)operation.getReturnValue();
-}
-
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.h
deleted file mode 100644
index d66cde1c06..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Proxy.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.
- */
-
-#ifndef DivideImpl_DivideService_Proxy_h
-#define DivideImpl_DivideService_Proxy_h
-
-#if defined(WIN32) || defined (_WINDOWS)
-#pragma warning(disable: 4786)
-#endif
-
-#include "Divide.h"
-#include "tuscany/sca/core/ServiceWrapper.h"
-
-class DivideImpl_DivideService_Proxy : public Divide
-{
-public:
- DivideImpl_DivideService_Proxy(tuscany::sca::ServiceWrapper*);
- virtual ~DivideImpl_DivideService_Proxy();
- virtual float div( float num1, float num2);
-private:
- tuscany::sca::ServiceWrapper* target;
-};
-
-#endif // DivideImpl_DivideService_Proxy_h
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.cpp b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.cpp
deleted file mode 100644
index 9c6f2101fe..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.cpp
+++ /dev/null
@@ -1,84 +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.
- */
-
-#include "DivideImpl_DivideService_Wrapper.h"
-
-#include "osoa/sca/sca.h"
-
-
-
-extern "C"
-{
-
- #if defined(WIN32) || defined(_WINDOWS)
- __declspec(dllexport)
- #endif
- DivideImpl_DivideService_Wrapper* DivideImpl_DivideService_Wrapper_Factory(tuscany::sca::model::Service* target)
- {
- return new DivideImpl_DivideService_Wrapper(target);
- }
-}
-
-DivideImpl_DivideService_Wrapper::DivideImpl_DivideService_Wrapper(tuscany::sca::model::Service* target) : tuscany::sca::cpp::CPPServiceWrapper(target)
-{
- impl = (DivideImpl*)getImplementation();
-}
-
-DivideImpl_DivideService_Wrapper::~DivideImpl_DivideService_Wrapper()
-{
- releaseImplementation();
-}
-
-void* DivideImpl_DivideService_Wrapper::newImplementation()
-{
- return new DivideImpl;
-}
-
-void DivideImpl_DivideService_Wrapper::deleteImplementation()
-{
- delete impl;
-}
-
-void DivideImpl_DivideService_Wrapper::invokeService(tuscany::sca::Operation& operation)
-{
- const std::string& operationName = operation.getName();
-
- if (operationName == "div")
- {
- float& p0 = *( float*)operation.getParameterValue(0);
- float& p1 = *( float*)operation.getParameterValue(1);
-
- if(operation.getReturnValue() != NULL)
- {
- *(float*)operation.getReturnValue() = impl->div(p0, p1);
- }
- else
- {
- float* ret = new float;
- *ret = impl->div(p0, p1);
- operation.setReturnValue((const float*)ret);
- }
- return;
- }
-
-
- throw osoa::sca::ServiceRuntimeException("Invalid operation");
-
-}
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.h
deleted file mode 100644
index 5cd10f5188..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/DivideImpl_DivideService_Wrapper.h
+++ /dev/null
@@ -1,43 +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.
- */
-
-#ifndef DivideImpl_DivideService_Wrapper_h
-#define DivideImpl_DivideService_Wrapper_h
-
-#if defined(WIN32) || defined (_WINDOWS)
-#pragma warning(disable: 4786)
-#endif
-
-#include "DivideImpl.h"
-#include "tuscany/sca/cpp/CPPServiceWrapper.h"
-
-class DivideImpl_DivideService_Wrapper : public tuscany::sca::cpp::CPPServiceWrapper
-{
-public:
- DivideImpl_DivideService_Wrapper(tuscany::sca::model::Service* target);
- virtual ~DivideImpl_DivideService_Wrapper();
- virtual void invokeService(tuscany::sca::Operation& operation);
- virtual void* newImplementation();
- virtual void deleteImplementation();
-private:
- DivideImpl* impl;
-};
-
-#endif // DivideImpl_DivideService_Wrapper_h
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.componentType b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.componentType
deleted file mode 100644
index 0b4423300d..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.componentType
+++ /dev/null
@@ -1,25 +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="LogService">
- <interface.cpp header="Log.h"/>
- </service>
-</componentType>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.h
deleted file mode 100644
index c21da1bddf..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.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_log_h
-#define sample_log_h
-
-class Log
-{
- public:
- virtual void div(char *message) = 0;
-};
-
-#endif // sample_log_h
-
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.php b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.php
deleted file mode 100644
index 0a955f36d3..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Log.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-# 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.
-#
-#
-
-/**
- * @service
- */
-class Log {
-
- /**
- * Log
- *
- * @param string $message (the message to be logged)
- */
- function log_message($message) {
- SCA::$logger->toLog('>>> ' . $message);
- }
-}
-
-?>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Makefile.am b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Makefile.am
deleted file mode 100644
index f2151933fd..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Makefile.am
+++ /dev/null
@@ -1,56 +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/PHPCalculator/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 *.php
-EXTRA_DIST = *.composite *.componentType *.wsdl *.php 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/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.componentType b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.componentType
deleted file mode 100644
index af1631518a..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.componentType
+++ /dev/null
@@ -1,28 +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="MultiplyService">
- <interface.cpp header="Multiply.h"/>
- </service>
- <reference name="log_service">
- <interface.cpp header="Log.h"/>
- </reference>
-</componentType>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.h
deleted file mode 100644
index 94de825f62..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.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_multiply_h
-#define sample_multiply_h
-
-class Multiply
-{
- public:
- virtual float mul(float num1, float num2) = 0;
-};
-
-#endif // sample_multiply_h
-
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.php b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.php
deleted file mode 100644
index 8ffe02675d..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Multiply.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-# 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 'SCA/SCA.php';
-
-class Multiply {
- function mul($num1, $num2) {
- $result = $num1 * $num2;
-
- $log_proxy = SCA::getService("log_service");
- $log_proxy->log_message($result);
-
- return $result;
- }
-}
-
-?>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.componentType b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.componentType
deleted file mode 100644
index 35dab8bb9b..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.componentType
+++ /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.
--->
-
-<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0">
- <service name="SubtractService">
- <interface.cpp header="Subtract.h"/>
- </service>
-
- <reference name="log_service">
- <interface.cpp header="Log.h"/>
- </reference>
-</componentType>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.h b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.h
deleted file mode 100644
index a50b79ccc6..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.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_subtract_h
-#define sample_subtract_h
-
-class Subtract
-{
- public:
- virtual float sub(float num1, float num2) = 0;
-};
-
-#endif // sample_subtract_h
-
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.php b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.php
deleted file mode 100644
index 8d3a1b3ddf..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/Subtract.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-# 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 'SCA/SCA.php';
-
-function sub($num1, $num2){
- $result = $num1 - $num2;
-
- $log_proxy = SCA::getService("log_service");
- $log_proxy->log_message($result);
-
- return $result;
-}
-?>
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/runwsserver.bat b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/runwsserver.bat
deleted file mode 100644
index e69de29bb2..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/runwsserver.bat
+++ /dev/null
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/runwsserver.sh b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/runwsserver.sh
deleted file mode 100755
index 069d734fea..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/runwsserver.sh
+++ /dev/null
@@ -1,45 +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"
-
-export LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH
-
-export TUSCANY_SCACPP_ROOT=$APFULLDIR/../
-
-cd $AXIS2C_HOME/bin
-./axis2_http_server
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/sample.calculator.composite b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/sample.calculator.composite
deleted file mode 100644
index 09b7070fb8..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/sample.calculator.composite
+++ /dev/null
@@ -1,81 +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>CalculatorCPPComponent</reference>
- </service>
--->
-
- <component name="CalculatorCPPComponent">
- <implementation.cpp library="Calculator" header="CalculatorImpl.h"/>
- <reference name="divideService">DivideComponent/DivideService</reference>
- </component>
-
- <component name="CalculatorPHPComponent">
- <implementation.php module="Calculator" scope="composite"/>
- <reference name="add_service">AddComponent</reference>
- <reference name="sub_service">SubtractComponent</reference>
- <reference name="mul_service">MultiplyComponent</reference>
- <reference name="div_service">DivideComponent</reference>
- </component>
-
- <component name="AddComponent">
- <implementation.php module="Add" scope="composite"/>
- <reference name="log_service">LogComponent</reference>
- </component>
-
- <component name="SubtractComponent">
- <implementation.php module="Subtract" scope="composite"/>
- <reference name="log_service">LogComponent</reference>
- </component>
-
- <component name="MultiplyComponent">
- <implementation.php module="Multiply" class="Multiply" scope="composite"/>
- <reference name="log_service">LogComponent</reference>
- </component>
-
- <component name="DivideComponent">
- <implementation.php module="Divide" class="Divide" scope="composite"/>
- <reference name="cppDivideService">DivideCPPComponent/DivideService</reference>
- <reference name="add_service">AddComponent</reference>
- <reference name="multiply_service">MultiplyComponent</reference>
- <reference name="subtract_service">SubtractComponent</reference>
- <reference name="add_service">AddComponent</reference>
- </component>
-
- <component name="DivideCPPComponent">
- <implementation.cpp library="Calculator" header="DivideImpl.h"/>
- </component>
-
- <component name="LogComponent">
- <implementation.php module="Log" class="Log" scope="composite"/>
- </component>
-
-
-
-
-
-</composite>
-
diff --git a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/sample.calculator.composite.back b/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/sample.calculator.composite.back
deleted file mode 100644
index e69de29bb2..0000000000
--- a/tags/native-sca-1.0.incubating-M3-RC1/samples/PHPCalculator/sample.calculator/sample.calculator.composite.back
+++ /dev/null