Added: incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop.sln
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop.sln?view=auto&rev=450083
==============================================================================
--- incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop.sln 
(added)
+++ incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop.sln 
Tue Sep 26 08:28:00 2006
@@ -0,0 +1,30 @@
+Microsoft Visual Studio Solution File, Format Version 8.00

+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ws.service.interop", 
"ws.service.interop\ws.service.interop.vcproj", 
"{25B65303-B2E2-47AF-968C-89D9E58611F8}"

+       ProjectSection(ProjectDependencies) = postProject

+       EndProjectSection

+EndProject

+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = 
"ws.service.interop.client", 
"ws.service.interop.client\ws.service.interop.client.vcproj", 
"{136C4966-3073-4EB0-9259-BC5E3B987D19}"

+       ProjectSection(ProjectDependencies) = postProject

+               {25B65303-B2E2-47AF-968C-89D9E58611F8} = 
{25B65303-B2E2-47AF-968C-89D9E58611F8}

+       EndProjectSection

+EndProject

+Global

+       GlobalSection(SolutionConfiguration) = preSolution

+               Debug = Debug

+               Release = Release

+       EndGlobalSection

+       GlobalSection(ProjectConfiguration) = postSolution

+               {25B65303-B2E2-47AF-968C-89D9E58611F8}.Debug.ActiveCfg = 
Debug|Win32

+               {25B65303-B2E2-47AF-968C-89D9E58611F8}.Debug.Build.0 = 
Debug|Win32

+               {25B65303-B2E2-47AF-968C-89D9E58611F8}.Release.ActiveCfg = 
Release|Win32

+               {25B65303-B2E2-47AF-968C-89D9E58611F8}.Release.Build.0 = 
Release|Win32

+               {136C4966-3073-4EB0-9259-BC5E3B987D19}.Debug.ActiveCfg = 
Debug|Win32

+               {136C4966-3073-4EB0-9259-BC5E3B987D19}.Debug.Build.0 = 
Debug|Win32

+               {136C4966-3073-4EB0-9259-BC5E3B987D19}.Release.ActiveCfg = 
Release|Win32

+               {136C4966-3073-4EB0-9259-BC5E3B987D19}.Release.Build.0 = 
Release|Win32

+       EndGlobalSection

+       GlobalSection(ExtensibilityGlobals) = postSolution

+       EndGlobalSection

+       GlobalSection(ExtensibilityAddIns) = postSolution

+       EndGlobalSection

+EndGlobal


Added: 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/Test.h
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/Test.h?view=auto&rev=450083
==============================================================================
--- incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/Test.h 
(added)
+++ incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/Test.h 
Tue Sep 26 08:28:00 2006
@@ -0,0 +1,82 @@
+/* 

++----------------------------------------------------------------------+ 

+|                                                                      | 

+| 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>

+#include <string>

+using std::string;

+

+class Test  

+{

+public:

+    virtual DataObjectPtr Interop01(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop02(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop03(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop04(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop05(DataObjectPtr arg1) = 0;

+    virtual string Interop06(string arg1) = 0;

+    virtual DataObjectPtr Interop07(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop08(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop09(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop10(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop11(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop12(DataObjectPtr arg1) = 0;

+    //virtual DataObjectPtr Interop13(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop14(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop15(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop16(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop17(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop18(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop19(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop20(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop21(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop22(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop23(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop24(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop25(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop26(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop27(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop28(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop29(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop30(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop31(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop32(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop33(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop34(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop35(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop36(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop37(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop38(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop39(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop40(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop41(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop42(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop43(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop44(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop45(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop46(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop47(DataObjectPtr arg1) = 0;

+    //virtual DataObjectPtr Interop48(DataObjectPtr arg1) = 0;

+    //virtual DataObjectPtr Interop49(DataObjectPtr arg1) = 0;

+    virtual DataObjectPtr Interop50(DataObjectPtr arg1) = 0;

+};

+

+#endif

+

+


Added: 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.componentType
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.componentType?view=auto&rev=450083
==============================================================================
--- 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.componentType
 (added)
+++ 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.componentType
 Tue Sep 26 08:28:00 2006
@@ -0,0 +1,8 @@
+<?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>

Added: 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.cpp
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.cpp?view=auto&rev=450083
==============================================================================
--- 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.cpp
 (added)
+++ 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.cpp
 Tue Sep 26 08:28:00 2006
@@ -0,0 +1,522 @@
+/* 

++----------------------------------------------------------------------+

+| (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 <axiom.h>

+#include <axis2_util.h>

+

+#include <tuscany/sca/util/Utils.h>

+#include <tuscany/sca/core/SCARuntime.h>

+#include <tuscany/sca/model/Component.h>

+#include <tuscany/sca/model/Composite.h>

+using namespace tuscany::sca;

+#include <commonj/sdo/SDO.h>

+using namespace commonj::sdo;

+#include <sdo_axiom.h>

+using namespace commonj::sdo_axiom;

+

+#include <stdio.h>

+

+#include <string>

+using std::string;

+

+TestImpl::TestImpl()

+{

+}

+    

+TestImpl::~TestImpl()

+{

+}

+

+bool TestImpl::compareWithFile(DataObjectPtr suppliedDO, string test)

+{

+    Composite* composite = 
SCARuntime::getInstance()->getCurrentComponent()->getComposite();

+    string rootPath = composite->getRoot();

+    string xmlFileName = rootPath+"/"+test+"-in.xml";

+

+    XMLHelperPtr helper = composite->getXMLHelper();

+    XMLDocumentPtr expectedDoc = helper->loadFile(xmlFileName.c_str());

+    DataObjectPtr expectedDO = expectedDoc->getRootDataObject();

+

+    printf( "Comparing supplied DataObject against expected DataObject\n");

+

+    string diff = "";

+    bool result = Utils::compareDataObjects(suppliedDO, expectedDO, diff);

+    if(!result)

+    {

+        printf("Supplied DO differs from expected DO:\n%s\nSupplied DO:\n", 
diff.c_str() );

+        Utils::printDO(suppliedDO);

+        printf("Expected DO:\n");

+        Utils::printDO(expectedDO);

+    }

+    else

+    {

+        printf("DataObjects match!\n");

+    }

+

+    return result;

+}

+

+DataObjectPtr TestImpl::Interop01(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop01 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop01"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop02(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop02 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop02"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop03(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop03 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop03"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop04(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop04 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop04"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop05(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop05 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop05"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+string TestImpl::Interop06(string arg1)

+{

+    printf("TestImpl::Interop06 %s\n", arg1.c_str());    

+    return arg1;

+}

+DataObjectPtr TestImpl::Interop07(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop07 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop07"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop08(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop08 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop08"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop09(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop09 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop09"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop10(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop10 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop10"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop11(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop11 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop11"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop12(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop12 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop12"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+// DataObjectPtr TestImpl::Interop13(DataObjectPtr arg1)

+// {

+//     printf("TestImpl::Interop13 %s\n", arg1->getType().getURI());

+//     Utils::printDO(arg1);

+//     return arg1;

+// }

+DataObjectPtr TestImpl::Interop14(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop14 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop14"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop15(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop15 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop15"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop16(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop16 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop16"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop17(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop17 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop17"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop18(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop18 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop18"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop19(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop19 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop19"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop20(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop20 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop20"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop21(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop21 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop21"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop22(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop22 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop22"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop23(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop23 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop23"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop24(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop24 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop24"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop25(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop25 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop25"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop26(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop26 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop26"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop27(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop27 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop27"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop28(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop28 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop28"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop29(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop29 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop29"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop30(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop30 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop30"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop31(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop31 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop31"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop32(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop32 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop32"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop33(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop33 %s\n", arg1->getType().getURI());

+    bool result = true;

+    try

+    {

+

+        result = compareWithFile(arg1, "Interop33");

+    }

+    catch(...)

+    {

+        cout<<"Caught exception"<<endl;

+    }

+    if(result)

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop34(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop34 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop34"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop35(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop35 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop35"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop36(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop36 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop36"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop37(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop37 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop37"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop38(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop38 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop38"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop39(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop39 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop39"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop40(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop40 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop40"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop41(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop41 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop41"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop42(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop42 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop42"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop43(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop43 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop43"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop44(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop44 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop44"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop45(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop45 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop45"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop46(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop46 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop46"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+DataObjectPtr TestImpl::Interop47(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop47 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop47"))

+    {

+        return arg1;

+    }

+    return NULL;

+}

+// DataObjectPtr TestImpl::Interop48(DataObjectPtr arg1)

+// {

+//     printf("TestImpl::Interop48 %s\n", arg1->getType().getURI());

+//     Utils::printDO(arg1);

+//     return arg1;

+// }

+// DataObjectPtr TestImpl::Interop49(DataObjectPtr arg1)

+// {

+//     printf("TestImpl::Interop49 %s\n", arg1->getType().getURI());

+//     Utils::printDO(arg1);

+//     return arg1;

+// }

+DataObjectPtr TestImpl::Interop50(DataObjectPtr arg1)

+{

+    printf("TestImpl::Interop50 %s\n", arg1->getType().getURI());

+    if(compareWithFile(arg1, "Interop50"))

+    {

+        return arg1;

+    }

+    return NULL;

+}


Added: 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.h
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.h?view=auto&rev=450083
==============================================================================
--- 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.h 
(added)
+++ 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/TestImpl.h 
Tue Sep 26 08:28:00 2006
@@ -0,0 +1,84 @@
+/* 

++----------------------------------------------------------------------+ 

+|                                                                      | 

+| 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();

+

+    // Test interface                

+    virtual DataObjectPtr Interop01(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop02(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop03(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop04(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop05(DataObjectPtr arg1);

+    virtual string Interop06(string arg1);

+    virtual DataObjectPtr Interop07(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop08(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop09(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop10(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop11(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop12(DataObjectPtr arg1);

+    //virtual DataObjectPtr Interop13(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop14(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop15(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop16(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop17(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop18(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop19(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop20(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop21(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop22(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop23(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop24(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop25(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop26(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop27(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop28(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop29(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop30(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop31(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop32(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop33(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop34(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop35(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop36(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop37(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop38(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop39(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop40(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop41(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop42(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop43(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop44(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop45(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop46(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop47(DataObjectPtr arg1);

+    //virtual DataObjectPtr Interop48(DataObjectPtr arg1);

+    //virtual DataObjectPtr Interop49(DataObjectPtr arg1);

+    virtual DataObjectPtr Interop50(DataObjectPtr arg1);

+private:

+    virtual bool compareWithFile(DataObjectPtr arg1, string test);

+};

+

+#endif

+


Added: 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/runwsserver.bat
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/runwsserver.bat?view=auto&rev=450083
==============================================================================
--- 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/runwsserver.bat
 (added)
+++ 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/runwsserver.bat
 Tue Sep 26 08:28:00 2006
@@ -0,0 +1,46 @@
[EMAIL PROTECTED] off
+
[EMAIL PROTECTED]  Copyright 2006 The Apache Software Foundation or its 
licensors, as applicable.
[EMAIL PROTECTED]
[EMAIL PROTECTED]  Licensed under the Apache License, Version 2.0 (the 
"License");
[EMAIL PROTECTED]  you may not use this file except in compliance with the 
License.
[EMAIL PROTECTED]  You may obtain a copy of the License at
[EMAIL PROTECTED]
[EMAIL PROTECTED]     http://www.apache.org/licenses/LICENSE-2.0
[EMAIL PROTECTED]
[EMAIL PROTECTED]  Unless required by applicable law or agreed to in writing, 
software
[EMAIL PROTECTED]  distributed under the License is distributed on an "AS IS" 
BASIS,
[EMAIL PROTECTED]  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 
or implied.
[EMAIL PROTECTED]  See the License for the specific language governing 
permissions and
[EMAIL PROTECTED]  limitations under the License.
+
+setlocal
+
+if "%TUSCANY_SCACPP%" == "" (
+echo "TUSCANY_SCACPP not set"
+goto end
+)
+echo using SCA installed at %TUSCANY_SCACPP%
+
+if "%TUSCANY_SDOCPP%" == "" (
+echo "TUSCANY_SDOCPP not set"
+goto end
+)
+echo using SDO installed at %TUSCANY_SDOCPP%
+
+if "%AXIS2C_HOME%" == "" (
+echo "AXIS2C_HOME not set"
+goto end
+)
+echo using Axis2C installed at %AXIS2C_HOME%
+
+set TUSCANY_SCACPP_SYSTEM_ROOT=%~d0%~p0\..\
+set TUSCANY_SCACPP_DEFAULT_COMPONENT=ws.service.interop.solution.component
+
+set 
PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SCACPP%\extensions\cpp\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH%
+
+cd %AXIS2C_HOME%\bin
+.\axis2_http_server.exe
+
+:end
+endlocal

Added: 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/runwsserver.sh
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/runwsserver.sh?view=auto&rev=450083
==============================================================================
--- 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/runwsserver.sh
 (added)
+++ 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/runwsserver.sh
 Tue Sep 26 08:28:00 2006
@@ -0,0 +1,45 @@
+#!/bin/sh

+

+#  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.

+

+APFULLDIR=`pwd`

+

+if [ x$TUSCANY_SCACPP = x ]; then

+echo "TUSCANY_SCACPP not set"

+exit;

+fi

+echo "Using SCA installed at $TUSCANY_SCACPP"

+

+if [ x$TUSCANY_SDOCPP = x ]; then

+echo "TUSCANY_SDOCPP not set"

+exit;

+fi

+echo "Using SDO installed at $TUSCANY_SDOCPP"

+

+if [ x$AXIS2C_HOME = x ]; then

+echo "AXIS2C_HOME not set"

+exit;

+fi

+echo "Using Axis2C installed at $AXIS2C_HOME"

+

+TEST_SYSTEM=$APFULLDIR/../

+

+export 
LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SCACPP/extensions/cpp/lib:$TUSCANY_SDOCPP/lib:$AXIS2C_HOME/lib:$LD_LIBRARY_PATH

+

+export TUSCANY_SCACPP_SYSTEM_ROOT=$TEST_SYSTEM

+export TUSCANY_SCACPP_DEFAULT_COMPONENT=ws.service.interop.solution.component

+

+cd $AXIS2C_HOME/bin

+./axis2_http_server


Added: 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.composite
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.composite?view=auto&rev=450083
==============================================================================
--- 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.composite
 (added)
+++ 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.composite
 Tue Sep 26 08:28:00 2006
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"; 
+       name="ws.service.interop">
+
+       <!-- Expose as a web service -->
+       <service name="ws.service">
+               <interface.wsdl 
interface="http://www.apache.org/tuscany/interop#wsdl.interface(interop)"/>
+               <binding.ws/>
+               <reference>ws.service.interop.component/TestService</reference>
+       </service>
+
+
+       <component name="ws.service.interop.component">
+               <implementation.cpp library="ws.service.interop" 
header="TestImpl.h"/>
+       </component>
+</composite>

Added: 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.solution.composite
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.solution.composite?view=auto&rev=450083
==============================================================================
--- 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.solution.composite
 (added)
+++ 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.solution.composite
 Tue Sep 26 08:28:00 2006
@@ -0,0 +1,26 @@
+<?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.service.interop.solution">

+       

+        <component name="ws.service.interop.solution.component">

+               <implementation.composite name="ws.service.interop" />

+               </component>

+

+</composite>

+


Added: 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.vcproj
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.vcproj?view=auto&rev=450083
==============================================================================
--- 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.vcproj
 (added)
+++ 
incubator/tuscany/cpp/sca/test/ws.service.interop/ws.service.interop/ws.service.interop.vcproj
 Tue Sep 26 08:28:00 2006
@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="Windows-1252"?>

+<VisualStudioProject

+       ProjectType="Visual C++"

+       Version="7.10"

+       Name="ws.service.interop"

+       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="3"

+                               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 axiom.lib tuscany_sdo_axiom.lib 
axis2_util.lib"

+                               OutputFile="$(OutDir)/ws.service.interop.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="FALSE"/>

+                       <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=".\runwsserver.bat">

+                       </File>

+                       <File

+                               RelativePath=".\runwsserver.sh">

+                       </File>

+                       <File

+                               RelativePath=".\TestImpl.componentType">

+                       </File>

+                       <File

+                               RelativePath=".\ws.service.interop.composite">

+                       </File>

+                       <File

+                               
RelativePath=".\ws.service.interop.solution.composite">

+                       </File>

+               </Filter>

+       </Files>

+       <Globals>

+       </Globals>

+</VisualStudioProject>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to