diff options
Diffstat (limited to 'tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service')
9 files changed, 0 insertions, 1076 deletions
diff --git a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/Test.h b/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/Test.h deleted file mode 100644 index aaff35a6cc..0000000000 --- a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/Test.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -+----------------------------------------------------------------------+ -| | -| Licensed 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 TEST_H -#define TEST_H - -#include <commonj/sdo/SDO.h> -#include <stdio.h> - -class Test -{ -public: - virtual char* doChars(char* arg1) = 0; - virtual long doLong(long arg1) = 0; - virtual int doInt(int arg1) = 0; - virtual float doFloat(float arg1) = 0; - virtual long double doLongDouble(long double arg1) = 0; - virtual double doDouble(double arg1) = 0; - virtual bool doBool(bool arg1) = 0; - virtual short doShort(short arg1) = 0; - virtual char* doBytes(char* arg1) = 0; - virtual char doByte(char arg1) = 0; - virtual DataObjectPtr doMixed(char* arg1, long arg2, DataObjectPtr arg3, bool arg4, double arg5) = 0; - virtual DataObjectPtr doDataObject(DataObjectPtr arg1) = 0; - virtual DataObjectPtr doAny(DataObjectPtr arg1) = 0; -// These don't work because they are passing pointers around -// virtual int[] doIntArray(int[] arg1, int arg2); -// virtual string doString(string arg1); -// This doesn't work because there is no mapping from XSD types to SDO CharacterType -// virtual wchar_t doWChar(wchar_t arg1); -// This doesn't work because Operation does not support int64_t yet -// virtual int64_t doInt64(int64_t arg1); -}; - -#endif - - diff --git a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/Test.wsdl b/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/Test.wsdl deleted file mode 100644 index 23ab8b08e4..0000000000 --- a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/Test.wsdl +++ /dev/null @@ -1,531 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:tns="http://test/ws.binding.service/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - name="ws.binding.service" - targetNamespace="http://test/ws.binding.service/"> - <wsdl:types> - <xsd:schema targetNamespace="http://test/ws.binding.service/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - - <xsd:element name="doChars"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:string" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doCharsResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:string" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doString"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:string" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doLong"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:int" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doLongResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:int" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doInt"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:int" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doIntResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:int" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doFloat"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:float" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doFloatResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:float" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doLongDouble"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:double" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doLongDoubleResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:double" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doDouble"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:double" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doDoubleResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:double" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doBool"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:boolean" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doBoolResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:boolean" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doShort"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:short" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doShortResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:short" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doBytes"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:hexBinary" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doBytesResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:hexBinary" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doByte"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:byte" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doByteResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:byte" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - - - <xsd:element name="doMixed"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="arg1" type="xsd:string" minOccurs="1"/> - <xsd:element name="arg2" type="xsd:int" minOccurs="1"/> - <xsd:element name="arg3" type="dataObjectData" minOccurs="1"/> - <xsd:element name="arg4" type="xsd:boolean" minOccurs="1"/> - <xsd:element name="arg5" type="xsd:float" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doMixedResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="dataObjectData" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doDataObject"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="dataObjectData" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doDataObjectResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="dataObjectData" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:complexType name="dataObjectData"> - <xsd:sequence> - <xsd:element name="someStringData" type="xsd:string" minOccurs="1"/> - <xsd:element name="someIntData" type="xsd:int" minOccurs="1"/> - <xsd:element name="someFloatData" type="xsd:float" minOccurs="1"/> - <xsd:element name="someDateData" type="xsd:date" minOccurs="1"/> - <xsd:element name="someListData" type="tns:listData" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="listData"> - <xsd:sequence> - <xsd:element name="listItem" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> - </xsd:sequence> - </xsd:complexType> - - <xsd:element name="doAny"> - <xsd:complexType> - <xsd:sequence> - <xsd:any minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="doAnyResponse"> - <xsd:complexType> - <xsd:sequence> - <xsd:any minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <!-- Can't do wchar - no mapping from XSD type to SDO:Character type - - <xsd:element name="doWChar"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" minOccurs="1"> - <xsd:simpleType> - <xsd:restriction base="xsd:string"> - <xsd:length value="1"/> - </xsd:restriction> - </xsd:simpleType> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doWChar"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" minOccurs="1"> - <xsd:simpleType> - <xsd:restriction base="xsd:string"> - <xsd:length value="1"/> - </xsd:restriction> - </xsd:simpleType> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - --> - - <!-- Int64 not yet supported - see Jira TUSCANY-439 - <xsd:element name="doInt64"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:long" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="doInt64Response"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="someData" type="xsd:long" minOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - --> - - <!-- Can't do doIntArray --> - </xsd:schema> - </wsdl:types> - - <wsdl:message name="doDataObjectRequestMsg"> - <wsdl:part element="tns:doDataObject" name="doDataObjectRequestPart"/> - </wsdl:message> - <wsdl:message name="doDataObjectResponseMsg"> - <wsdl:part element="tns:doDataObjectResponse" name="doDataObjectResponsePart"/> - </wsdl:message> - - <wsdl:message name="doCharsRequestMsg"> - <wsdl:part element="tns:doChars" name="doCharsRequestPart"/> - </wsdl:message> - <wsdl:message name="doCharsResponseMsg"> - <wsdl:part element="tns:doCharsResponse" name="doCharsResponsePart"/> - </wsdl:message> - - <wsdl:message name="doStringRequestMsg"> - <wsdl:part element="tns:doString" name="doStringRequestPart"/> - </wsdl:message> - <wsdl:message name="doStringResponseMsg"> - <wsdl:part element="tns:doCharsResponse" name="doStringResponsePart"/> - </wsdl:message> - - <wsdl:message name="doLongRequestMsg"> - <wsdl:part element="tns:doLong" name="doLongRequestPart"/> - </wsdl:message> - <wsdl:message name="doLongResponseMsg"> - <wsdl:part element="tns:doLongResponse" name="doLongResponsePart"/> - </wsdl:message> - - <wsdl:message name="doIntRequestMsg"> - <wsdl:part element="tns:doInt" name="doIntRequestPart"/> - </wsdl:message> - <wsdl:message name="doIntResponseMsg"> - <wsdl:part element="tns:doIntResponse" name="doIntResponsePart"/> - </wsdl:message> - - <wsdl:message name="doFloatRequestMsg"> - <wsdl:part element="tns:doFloat" name="doFloatRequestPart"/> - </wsdl:message> - <wsdl:message name="doFloatResponseMsg"> - <wsdl:part element="tns:doFloatResponse" name="doFloatResponsePart"/> - </wsdl:message> - - <wsdl:message name="doLongDoubleRequestMsg"> - <wsdl:part element="tns:doLongDouble" name="doLongDoubleRequestPart"/> - </wsdl:message> - <wsdl:message name="doLongDoubleResponseMsg"> - <wsdl:part element="tns:doLongDoubleResponse" name="doLongDoubleResponsePart"/> - </wsdl:message> - - <wsdl:message name="doDoubleRequestMsg"> - <wsdl:part element="tns:doDouble" name="doDoubleRequestPart"/> - </wsdl:message> - <wsdl:message name="doDoubleResponseMsg"> - <wsdl:part element="tns:doDoubleResponse" name="doDoubleResponsePart"/> - </wsdl:message> - - <wsdl:message name="doBoolRequestMsg"> - <wsdl:part element="tns:doBool" name="doBoolRequestPart"/> - </wsdl:message> - <wsdl:message name="doBoolResponseMsg"> - <wsdl:part element="tns:doBoolResponse" name="doBoolResponsePart"/> - </wsdl:message> - - <wsdl:message name="doShortRequestMsg"> - <wsdl:part element="tns:doShort" name="doShortRequestPart"/> - </wsdl:message> - <wsdl:message name="doShortResponseMsg"> - <wsdl:part element="tns:doShortResponse" name="doShortResponsePart"/> - </wsdl:message> - - <wsdl:message name="doBytesRequestMsg"> - <wsdl:part element="tns:doBytes" name="doBytesRequestPart"/> - </wsdl:message> - <wsdl:message name="doBytesResponseMsg"> - <wsdl:part element="tns:doBytesResponse" name="doBytesResponsePart"/> - </wsdl:message> - - <wsdl:message name="doByteRequestMsg"> - <wsdl:part element="tns:doByte" name="doByteRequestPart"/> - </wsdl:message> - <wsdl:message name="doByteResponseMsg"> - <wsdl:part element="tns:doByteResponse" name="doByteResponsePart"/> - </wsdl:message> - - <wsdl:message name="doMixedRequestMsg"> - <wsdl:part element="tns:doMixed" name="doMixedRequestPart"/> - </wsdl:message> - <wsdl:message name="doMixedResponseMsg"> - <wsdl:part element="tns:doMixedResponse" name="doMixedResponsePart"/> - </wsdl:message> - - <wsdl:message name="doAnyRequestMsg"> - <wsdl:part element="tns:doAny" name="doAnyRequestPart"/> - </wsdl:message> - <wsdl:message name="doAnyResponseMsg"> - <wsdl:part element="tns:doAnyResponse" name="doAnyResponsePart"/> - </wsdl:message> - - - <wsdl:portType name="ws.binding.service"> - <wsdl:operation name="doDataObject"> - <wsdl:input message="tns:doDataObjectRequestMsg"/> - <wsdl:output message="tns:doDataObjectResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doChars"> - <wsdl:input message="tns:doCharsRequestMsg"/> - <wsdl:output message="tns:doCharsResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doString"> - <wsdl:input message="tns:doStringRequestMsg"/> - <wsdl:output message="tns:doStringResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doLong"> - <wsdl:input message="tns:doLongRequestMsg"/> - <wsdl:output message="tns:doLongResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doInt"> - <wsdl:input message="tns:doIntRequestMsg"/> - <wsdl:output message="tns:doIntResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doFloat"> - <wsdl:input message="tns:doFloatRequestMsg"/> - <wsdl:output message="tns:doFloatResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doLongDouble"> - <wsdl:input message="tns:doLongDoubleRequestMsg"/> - <wsdl:output message="tns:doLongDoubleResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doDouble"> - <wsdl:input message="tns:doDoubleRequestMsg"/> - <wsdl:output message="tns:doDoubleResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doBool"> - <wsdl:input message="tns:doBoolRequestMsg"/> - <wsdl:output message="tns:doBoolResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doShort"> - <wsdl:input message="tns:doShortRequestMsg"/> - <wsdl:output message="tns:doShortResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doBytes"> - <wsdl:input message="tns:doBytesRequestMsg"/> - <wsdl:output message="tns:doBytesResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doByte"> - <wsdl:input message="tns:doByteRequestMsg"/> - <wsdl:output message="tns:doByteResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doMixed"> - <wsdl:input message="tns:doMixedRequestMsg"/> - <wsdl:output message="tns:doMixedResponseMsg"/> - </wsdl:operation> - <wsdl:operation name="doAny"> - <wsdl:input message="tns:doAnyRequestMsg"/> - <wsdl:output message="tns:doAnyResponseMsg"/> - </wsdl:operation> - </wsdl:portType> - - - <wsdl:binding name="ws.binding.serviceSOAP" type="tns:ws.binding.service"> - <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> - <wsdl:operation name="doDataObject"> - <soap:operation soapAction="ws.binding.service/doDataObject"/> - <wsdl:input> - <soap:body use="literal"/> - </wsdl:input> - <wsdl:output> - <soap:body use="literal"/> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="doChars"> - <soap:operation soapAction="ws.binding.service/doChars"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doString"> - <soap:operation soapAction="ws.binding.service/doString"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doLong"> - <soap:operation soapAction="ws.binding.service/doLong"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doInt"> - <soap:operation soapAction="ws.binding.service/doInt"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doFloat"> - <soap:operation soapAction="ws.binding.service/doFloat"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doLongDouble"> - <soap:operation soapAction="ws.binding.service/doLongDouble"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doDouble"> - <soap:operation soapAction="ws.binding.service/doDouble"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doBool"> - <soap:operation soapAction="ws.binding.service/doBool"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doShort"> - <soap:operation soapAction="ws.binding.service/doShort"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doBytes"> - <soap:operation soapAction="ws.binding.service/doBytes"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doByte"> - <soap:operation soapAction="ws.binding.service/doByte"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doMixed"> - <soap:operation soapAction="ws.binding.service/doMixed"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - <wsdl:operation name="doAny"> - <soap:operation soapAction="ws.binding.service/doAny"/> - <wsdl:input><soap:body use="literal"/></wsdl:input> - <wsdl:output><soap:body use="literal"/></wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:service name="ws.binding.service"> - <wsdl:port binding="tns:ws.binding.serviceSOAP" name="ws.binding.serviceSOAP"> - <soap:address location="http://localhost:9090/axis2/services/ws.binding.service"/> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> diff --git a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/TestImpl.componentType b/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/TestImpl.componentType deleted file mode 100644 index d0cca1882d..0000000000 --- a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/TestImpl.componentType +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?> -<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"> - - <service name="TestService"> - <interface.cpp header="Test.h"/> - </service> - -</componentType> diff --git a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/TestImpl.cpp b/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/TestImpl.cpp deleted file mode 100644 index e24534701d..0000000000 --- a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/TestImpl.cpp +++ /dev/null @@ -1,158 +0,0 @@ -/* -+----------------------------------------------------------------------+ -| (c) Copyright IBM Corporation 2005. | -| All Rights Reserved. | -+----------------------------------------------------------------------+ -| | -| Licensed 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 "TestImpl.h" -#include <stdio.h> -#include <tuscany/sca/util/Utils.h> -using namespace tuscany::sca; -#include <commonj/sdo/SDO.h> -#include <sdo_axiom.h> -using namespace commonj::sdo; -using namespace commonj::sdo_axiom; - -TestImpl::TestImpl() -{ -} - -TestImpl::~TestImpl() -{ -} - -char* TestImpl::doChars(char* arg1) -{ - printf("TestImpl::doChars %s\n", arg1); - return arg1; -} - - -long TestImpl::doLong(long arg1) -{ - printf("TestImpl::doLong %d\n", arg1); - return arg1; -} - -int TestImpl::doInt(int arg1) -{ - printf("TestImpl::doInt %d\n", arg1); - return arg1; -} - -float TestImpl::doFloat(float arg1) -{ - printf("TestImpl::doFloat %f\n", arg1); - return arg1; -} - -long double TestImpl::doLongDouble(long double arg1) -{ - printf("TestImpl::doLongDouble %f\n", arg1); - return arg1; -} - -double TestImpl::doDouble(double arg1) -{ - printf("TestImpl::doDouble %f\n", arg1); - return arg1; -} - - -bool TestImpl::doBool(bool arg1) -{ - printf("TestImpl::doBool %d\n", arg1); - return arg1; -} - -short TestImpl::doShort(short arg1) -{ - printf("TestImpl::doShort %d\n", arg1); - return arg1; -} - -char* TestImpl::doBytes(char* arg1) -{ - printf("TestImpl::doBytes %s\n", arg1); - return arg1; -} - -char TestImpl::doByte(char arg1) -{ - printf("TestImpl::doByte %c\n", arg1); - return arg1; -} - -DataObjectPtr TestImpl::doMixed(char* arg1, long arg2, DataObjectPtr arg3, bool arg4, double arg5) -{ - printf("TestImpl::doMixed %s %d %s %d %d\n", arg1, arg2, arg3->getType().getURI(), arg4, arg5); - Utils::printDO(arg3); - return arg3; -} - -DataObjectPtr TestImpl::doDataObject(DataObjectPtr arg1) -{ - printf("TestImpl::doDataObject %s\n", arg1->getType().getURI()); - Utils::printDO(arg1); - return arg1; -} - -DataObjectPtr TestImpl::doAny(DataObjectPtr arg1) -{ - printf("TestImpl::doAny %s#%s\n", arg1->getType().getURI(), arg1->getType().getName()); - Utils::printDO(arg1); - //return arg1; - - DataFactoryPtr factory = arg1->getDataFactory(); - DataObjectPtr data = factory->create(Type::SDOTypeNamespaceURI, "OpenDataObject"); - data->setCString("stringData", "Here is some string data"); - data->setBoolean("boolData", true); - DataObjectList& list = data->getList("intDataList"); - list.append((long)123456789); - list.append((long)111111111); - list.append((long)222222222); - Utils::printDO(data); - return data; -} - -//int[] TestImpl::doIntArray(int[] arg1, int arg2) -//{ -// printf("TestImpl::doIntArray with length %d\n", arg2); -// for(int i=0; i<arg2; i++) -// { -// printf("%d\n", arg1[i]); -// } -// return arg1; -//} -// -//string TestImpl::doString(string arg1) -//{ -// printf("TestImpl::doString %s\n", arg1.c_str()); -// return arg1; -//} -// -//wchar_t TestImpl::doWChar(wchar_t arg1) -//{ -// printf("TestImpl::doWChar %s\n", arg1); -// return arg1; -//} -// -//int64_t TestImpl::doInt64(int64_t arg1) -//{ -// printf("TestImpl::doInt64 %d\n", arg1); -// return arg1; -//} - diff --git a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/TestImpl.h b/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/TestImpl.h deleted file mode 100644 index 3026d4c7aa..0000000000 --- a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/TestImpl.h +++ /dev/null @@ -1,54 +0,0 @@ -/* -+----------------------------------------------------------------------+ -| | -| Licensed 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 TESTIMPL_H -#define TESTIMPL_H - -#include "Test.h" - -class TestImpl : public Test -{ -public: - TestImpl(); - virtual ~TestImpl(); - - // WSCompositeServiceTest interface - virtual char* doChars(char* arg1); - virtual long doLong(long arg1); - virtual int doInt(int arg1); - virtual float doFloat(float arg1); - virtual long double doLongDouble(long double arg1); - virtual double doDouble(double arg1); - virtual bool doBool(bool arg1); - virtual short doShort(short arg1); - virtual char* doBytes(char* arg1); - virtual char doByte(char arg1); - virtual DataObjectPtr doMixed(char* arg1, long arg2, DataObjectPtr arg3, bool arg4, double arg5); - virtual DataObjectPtr doDataObject(DataObjectPtr arg1); - virtual DataObjectPtr doAny(DataObjectPtr arg1); - -// These don't work because they are passing pointers around -// virtual int[] doIntArray(int[] arg1, int arg2); -// virtual string doString(string arg1); -// This doesn't work because there is no mapping from XSD types to SDO CharacterType -// virtual wchar_t doWChar(wchar_t arg1); -// This doesn't work because Operation does not support int64_t yet -// virtual int64_t doInt64(int64_t arg1); - -}; - -#endif - diff --git a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/services.xml b/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/services.xml deleted file mode 100644 index b223a53dad..0000000000 --- a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/services.xml +++ /dev/null @@ -1,62 +0,0 @@ - -<!-- - Copyright 2006 The Apache Software Foundation or its licensors, as applicable. - - Licensed 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 name="ws.binding.service"> - <parameter name="ServiceClass" locked="xsd:false">tuscany_sca_ws_service</parameter> - <parameter name="TuscanySystemRoot" locked="xsd:false">D:/tuscany/cpp/sca/test/ws.binding.service/deploy</parameter> - <parameter name="TuscanyService" locked="xsd:false">ws.binding.service.solution.component/ws.binding.service</parameter> - - <description> - This is a testing service , to test the system is working or not - </description> - - <operation name="doChars"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - <operation name="doLong"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - <operation name="doInt"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - <operation name="doFloat"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - <operation name="doLongDouble"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - <operation name="doDouble"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - <operation name="doBool"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - <operation name="doShort"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - <operation name="doBytes"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - <operation name="doMixed"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - <operation name="doDataObject"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> - <operation name="doAny"> - <!--messageReceiver class="axis2_receivers" /--> - </operation> -</service> diff --git a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/ws.binding.service.composite b/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/ws.binding.service.composite deleted file mode 100644 index 98393813f3..0000000000 --- a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/ws.binding.service.composite +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - name="ws.binding.service"> - - <!-- Expose as a web service --> - <service name="ws.binding.service"> - <interface.wsdl interface="Test.wsdl"/> - <binding.ws port="http://test/ws.binding.service/#wsdl.endpoint(ws.binding.service/ws.binding.serviceSOAP)"/> - <reference>ws.binding.service.component/TestService</reference> - </service> - - - <component name="ws.binding.service.component"> - <implementation.cpp library="ws.binding.service" header="TestImpl.h"/> - </component> -</composite> diff --git a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/ws.binding.service.solution.composite b/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/ws.binding.service.solution.composite deleted file mode 100644 index e1e402454b..0000000000 --- a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/ws.binding.service.solution.composite +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - - Licensed 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="ws.binding.service.solution"> - - - <component name="ws.binding.service.solution.component"> - <implementation.composite name="ws.binding.service" /> - </component> - -</composite> - diff --git a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/ws.binding.service.vcproj b/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/ws.binding.service.vcproj deleted file mode 100644 index 22c601b695..0000000000 --- a/tags/cpp-1.0-incubating-M2-RC2/sca/test/ws.binding.service/ws.binding.service/ws.binding.service.vcproj +++ /dev/null @@ -1,170 +0,0 @@ -<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="7.10"
- Name="ws.binding.service"
- ProjectGUID="{25B65303-B2E2-47AF-968C-89D9E58611F8}"
- Keyword="Win32Proj">
- <Platforms>
- <Platform
- Name="Win32"/>
- </Platforms>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Debug"
- IntermediateDirectory="Debug"
- ConfigurationType="2"
- CharacterSet="2">
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(TUSCANY_SCACPP)/include,$(TUSCANY_SCACPP)/extensions/cpp/include,$(TUSCANY_SDOCPP)/include,$(AXIS2C_HOME)/include"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
- MinimalRebuild="TRUE"
- BasicRuntimeChecks="3"
- RuntimeLibrary="5"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- Detect64BitPortabilityProblems="TRUE"
- DebugInformationFormat="4"/>
- <Tool
- Name="VCCustomBuildTool"/>
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="tuscany_sca.lib tuscany_sdo.lib tuscany_sca_cpp.lib"
- OutputFile="$(OutDir)/ws.binding.service.dll"
- LinkIncremental="2"
- AdditionalLibraryDirectories="$(TUSCANY_SCACPP)/lib,$(TUSCANY_SCACPP)/extensions/cpp/lib,$(TUSCANY_SDOCPP)/lib,$(AXIS2C_HOME)/lib"
- GenerateDebugInformation="TRUE"
- ProgramDatabaseFile="$(OutDir)/service.ws.binding.pdb"
- SubSystem="1"
- TargetMachine="1"/>
- <Tool
- Name="VCMIDLTool"/>
- <Tool
- Name="VCPostBuildEventTool"/>
- <Tool
- Name="VCPreBuildEventTool"
- CommandLine="$(TUSCANY_SCACPP)/bin/scagen.cmd -dir . -output . -verbose"
- ExcludedFromBuild="TRUE"/>
- <Tool
- Name="VCPreLinkEventTool"/>
- <Tool
- Name="VCResourceCompilerTool"/>
- <Tool
- Name="VCWebServiceProxyGeneratorTool"/>
- <Tool
- Name="VCXMLDataGeneratorTool"/>
- <Tool
- Name="VCWebDeploymentTool"/>
- <Tool
- Name="VCManagedWrapperGeneratorTool"/>
- <Tool
- Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Release"
- IntermediateDirectory="Release"
- ConfigurationType="1"
- CharacterSet="2">
- <Tool
- Name="VCCLCompilerTool"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
- RuntimeLibrary="4"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- Detect64BitPortabilityProblems="TRUE"
- DebugInformationFormat="3"/>
- <Tool
- Name="VCCustomBuildTool"/>
- <Tool
- Name="VCLinkerTool"
- OutputFile="$(OutDir)/service.ws.binding.exe"
- LinkIncremental="1"
- GenerateDebugInformation="TRUE"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"/>
- <Tool
- Name="VCMIDLTool"/>
- <Tool
- Name="VCPostBuildEventTool"/>
- <Tool
- Name="VCPreBuildEventTool"/>
- <Tool
- Name="VCPreLinkEventTool"/>
- <Tool
- Name="VCResourceCompilerTool"/>
- <Tool
- Name="VCWebServiceProxyGeneratorTool"/>
- <Tool
- Name="VCXMLDataGeneratorTool"/>
- <Tool
- Name="VCWebDeploymentTool"/>
- <Tool
- Name="VCManagedWrapperGeneratorTool"/>
- <Tool
- Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
- <File
- RelativePath=".\TestImpl.cpp">
- </File>
- <File
- RelativePath=".\TestImpl_TestService_Proxy.cpp">
- </File>
- <File
- RelativePath=".\TestImpl_TestService_Wrapper.cpp">
- </File>
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hpp;hxx;hm;inl;inc;xsd"
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
- <File
- RelativePath=".\Test.h">
- </File>
- <File
- RelativePath=".\TestImpl.h">
- </File>
- <File
- RelativePath=".\TestImpl_TestService_Proxy.h">
- </File>
- <File
- RelativePath=".\TestImpl_TestService_Wrapper.h">
- </File>
- </Filter>
- <Filter
- Name="Resource Files"
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
- <File
- RelativePath=".\services.xml">
- </File>
- <File
- RelativePath=".\Test.wsdl">
- </File>
- <File
- RelativePath=".\TestImpl.componentType">
- </File>
- <File
- RelativePath=".\ws.binding.service.composite">
- </File>
- <File
- RelativePath=".\ws.binding.service.solution.composite">
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
|