From c0bef68247bd8a6d0bbbe7c9f07cc927ca2861d2 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 16 Feb 2012 15:41:56 +0000 Subject: Delete old RC tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1245041 13f79535-47bb-0310-9956-ffa450edef68 --- .../tags/2.0-Beta1-RC3/testing/itest/ws/README | 135 ----------- .../testing/itest/ws/authentication-basic/pom.xml | 47 ---- .../binding/ws/axis2/helloworld/HelloWorld.java | 29 --- .../ws/axis2/helloworld/HelloWorldClient.java | 35 --- .../ws/axis2/helloworld/HelloWorldService.java | 45 ---- .../main/resources/META-INF/sca-contribution.xml | 23 -- ....apache.tuscany.sca.definitions.xml.Definitions | 17 -- .../binding/ws/axis2/helloworld/definitions.xml | 46 ---- .../ws/axis2/helloworld/helloworld.composite | 45 ---- .../binding/ws/axis2/helloworld/helloworld.wsdl | 90 -------- .../sca/binding/ws/axis2/HelloworldTestCase.java | 52 ----- .../ws/contribution-callback-forwardspec/pom.xml | 123 ---------- .../apache/tuscany/sca/binding/ws/HelloWorld.java | 32 --- .../tuscany/sca/binding/ws/HelloWorldCallback.java | 31 --- .../sca/binding/ws/HelloWorldCallbackService.java | 34 --- .../binding/ws/HelloWorldCallbackServiceImpl.java | 53 ----- .../tuscany/sca/binding/ws/HelloWorldImpl.java | 84 ------- .../resources/HelloWorldServiceService_schema1.xsd | 70 ------ .../main/resources/META-INF/sca-contribution.xml | 23 -- .../resources/helloworld-external-service.wsdl | 75 ------ .../src/main/resources/helloworld.composite | 45 ---- .../ws/contribution-callback-fullspec/pom.xml | 123 ---------- .../apache/tuscany/sca/binding/ws/HelloWorld.java | 32 --- .../tuscany/sca/binding/ws/HelloWorldCallback.java | 31 --- .../sca/binding/ws/HelloWorldCallbackService.java | 34 --- .../binding/ws/HelloWorldCallbackServiceImpl.java | 53 ----- .../tuscany/sca/binding/ws/HelloWorldImpl.java | 84 ------- .../resources/HelloWorldServiceService_schema1.xsd | 70 ------ .../main/resources/META-INF/sca-contribution.xml | 23 -- .../resources/helloworld-external-service.wsdl | 75 ------ .../src/main/resources/helloworld.composite | 51 ----- .../ws/contribution-callback-promotion/pom.xml | 123 ---------- .../apache/tuscany/sca/binding/ws/HelloWorld.java | 32 --- .../tuscany/sca/binding/ws/HelloWorldCallback.java | 31 --- .../sca/binding/ws/HelloWorldCallbackService.java | 34 --- .../binding/ws/HelloWorldCallbackServiceImpl.java | 53 ----- .../tuscany/sca/binding/ws/HelloWorldImpl.java | 84 ------- .../resources/HelloWorldServiceService_schema1.xsd | 70 ------ .../main/resources/META-INF/sca-contribution.xml | 23 -- .../resources/helloworld-external-service.wsdl | 75 ------ .../src/main/resources/helloworld.composite | 43 ---- .../helloworldcallbackservice-bottom.composite | 34 --- .../resources/helloworldservice-bottom.composite | 40 ---- .../testing/itest/ws/contribution-callback/pom.xml | 123 ---------- .../apache/tuscany/sca/binding/ws/HelloWorld.java | 32 --- .../tuscany/sca/binding/ws/HelloWorldCallback.java | 31 --- .../sca/binding/ws/HelloWorldCallbackService.java | 34 --- .../binding/ws/HelloWorldCallbackServiceImpl.java | 53 ----- .../tuscany/sca/binding/ws/HelloWorldImpl.java | 84 ------- .../resources/HelloWorldServiceService_schema1.xsd | 70 ------ .../main/resources/META-INF/sca-contribution.xml | 23 -- .../resources/helloworld-external-service.wsdl | 75 ------ .../src/main/resources/helloworld.composite | 43 ---- .../itest/ws/contribution-doc-lit-wrapped/pom.xml | 123 ---------- .../apache/tuscany/sca/binding/ws/HelloWorld.java | 32 --- .../tuscany/sca/binding/ws/HelloWorld1Impl.java | 54 ----- .../tuscany/sca/binding/ws/HelloWorld2Impl.java | 55 ----- .../resources/HelloWorldImplService-doclit.wsdl | 109 --------- .../resources/HelloWorldImplService-doclit1.xsd | 83 ------- .../resources/HelloWorldImplService-doclit2.xsd | 40 ---- .../resources/HelloWorldServiceService_schema1.xsd | 70 ------ .../main/resources/META-INF/sca-contribution.xml | 23 -- .../resources/helloworld-external-service.wsdl | 75 ------ .../src/main/resources/helloworld.composite | 44 ---- .../testing/itest/ws/contribution-doc-lit/pom.xml | 123 ---------- .../apache/tuscany/sca/binding/ws/HelloWorld.java | 36 --- .../tuscany/sca/binding/ws/HelloWorld1Impl.java | 55 ----- .../tuscany/sca/binding/ws/HelloWorld2Impl.java | 56 ----- .../tuscany/sca/binding/ws/HelloWorldBare.java | 37 --- .../resources/HelloWorldImplService-doclit.wsdl | 113 --------- .../resources/HelloWorldImplService-doclit1.xsd | 49 ---- .../resources/HelloWorldImplService-doclit2.xsd | 40 ---- .../resources/HelloWorldServiceService_schema1.xsd | 70 ------ .../main/resources/META-INF/sca-contribution.xml | 23 -- .../resources/helloworld-external-service.wsdl | 75 ------ .../src/main/resources/helloworld.composite | 44 ---- .../itest/ws/contribution-java-first/pom.xml | 123 ---------- .../apache/tuscany/sca/binding/ws/HelloWorld.java | 32 --- .../tuscany/sca/binding/ws/HelloWorldImpl.java | 55 ----- .../resources/HelloWorldServiceService_schema1.xsd | 70 ------ .../main/resources/META-INF/sca-contribution.xml | 23 -- .../resources/helloworld-external-service.wsdl | 75 ------ .../src/main/resources/helloworld.composite | 35 --- .../testing/itest/ws/contribution-rpc-lit/README | 254 --------------------- .../testing/itest/ws/contribution-rpc-lit/pom.xml | 123 ---------- .../apache/tuscany/sca/binding/ws/HelloWorld.java | 32 --- .../tuscany/sca/binding/ws/HelloWorld1Impl.java | 54 ----- .../tuscany/sca/binding/ws/HelloWorld2Impl.java | 55 ----- .../resources/HelloWorldImplService-rpclit.wsdl | 110 --------- .../resources/HelloWorldImplService-rpclit1.xsd | 83 ------- .../resources/HelloWorldImplService-rpclit2.xsd | 40 ---- .../resources/HelloWorldServiceService_schema1.xsd | 70 ------ .../main/resources/META-INF/sca-contribution.xml | 23 -- .../resources/helloworld-external-service.wsdl | 75 ------ .../src/main/resources/helloworld.composite | 64 ------ .../itest/ws/contribution-wsdl-first/pom.xml | 125 ---------- .../apache/tuscany/sca/binding/ws/HelloWorld.java | 37 --- .../tuscany/sca/binding/ws/HelloWorldImpl.java | 60 ----- .../src/main/resources/HelloWorldImplService.wsdl | 128 ----------- .../resources/HelloWorldImplService_schema1.xsd | 99 -------- .../resources/HelloWorldImplService_schema2.xsd | 40 ---- .../resources/HelloWorldServiceService_schema1.xsd | 86 ------- .../main/resources/META-INF/sca-contribution.xml | 23 -- .../resources/helloworld-external-service.wsdl | 99 -------- .../src/main/resources/helloworld.composite | 35 --- .../testing/itest/ws/defaults/pom.xml | 47 ---- .../apache/tuscany/sca/binding/ws/axis2/Bar.java | 58 ----- .../apache/tuscany/sca/binding/ws/axis2/Foo.java | 36 --- .../tuscany/sca/binding/ws/axis2/HelloWorld.java | 29 --- .../sca/binding/ws/axis2/HelloWorldClient.java | 40 ---- .../sca/binding/ws/axis2/HelloWorldService.java | 42 ---- .../main/resources/META-INF/sca-contribution.xml | 23 -- .../sca/binding/ws/axis2/helloworld.composite | 41 ---- .../tuscany/sca/binding/ws/axis2/helloworld.wsdl | 90 -------- .../sca/binding/ws/axis2/DefaultsTestCase.java | 74 ------ .../testing/itest/ws/endpoint-references/pom.xml | 47 ---- .../tuscany/sca/binding/ws/axis2/HelloWorld.java | 29 --- .../sca/binding/ws/axis2/HelloWorldComponent.java | 33 --- .../sca/binding/ws/axis2/HelloWorldService.java | 28 --- .../sca/binding/ws/axis2/HelloWorld.composite | 48 ---- .../tuscany/sca/binding/ws/axis2/helloworld.wsdl | 86 ------- .../sca/binding/ws/axis2/HelloWorldTestCase.java | 52 ----- .../testing/itest/ws/endpoints/pom.xml | 47 ---- .../binding/ws/axis2/HelloWorldMultiService.java | 51 ----- .../tuscany/sca/binding/ws/axis2/HelloWorldOM.java | 30 --- .../sca/binding/ws/axis2/HelloWorldOM2.java | 30 --- .../binding/ws/axis2/HelloWorldOMComponent.java | 34 --- .../sca/binding/ws/axis2/HelloWorldOMService.java | 41 ---- .../binding/ws/axis2/DefaultMultiService.composite | 53 ----- .../ws/axis2/DefaultSingleService.composite | 51 ----- .../sca/binding/ws/axis2/WSDLExplicitURI.composite | 50 ---- .../sca/binding/ws/axis2/WSDLRelativeURI.composite | 51 ----- .../ws/axis2/helloworld-om-relative-uri.wsdl | 78 ------- .../sca/binding/ws/axis2/helloworld-om-uri.wsdl | 78 ------- .../sca/binding/ws/axis2/helloworld-om.wsdl | 78 ------- .../ws/axis2/AbstractHelloWorldOMTestCase.java | 68 ------ .../ws/axis2/DefaultMultiServiceTestCase.java | 24 -- .../ws/axis2/DefaultSingleServiceTestCase.java | 24 -- .../binding/ws/axis2/WSDLExplicitURITestCase.java | 24 -- .../binding/ws/axis2/WSDLRelativeURITestCase.java | 24 -- .../testing/itest/ws/external-client/pom.xml | 112 --------- .../external/client/HelloWorldClientLauncher.java | 91 -------- .../src/main/resources/HelloWorldImplService.wsdl | 128 ----------- .../resources/HelloWorldImplService_schema1.xsd | 111 --------- .../testing/itest/ws/external-service/pom.xml | 104 --------- .../sca/binding/ws/jaxws/external/service/Bar.java | 152 ------------ .../sca/binding/ws/jaxws/external/service/Foo.java | 88 ------- .../jaxws/external/service/HelloWorldService.java | 64 ------ .../service/HelloWorldServiceLauncher.java | 49 ---- .../2.0-Beta1-RC3/testing/itest/ws/http-ssl/README | 68 ------ .../testing/itest/ws/http-ssl/pom.xml | 52 ----- .../binding/ws/axis2/helloworld/HelloWorld.java | 29 --- .../ws/axis2/helloworld/HelloWorldClient.java | 35 --- .../ws/axis2/helloworld/HelloWorldService.java | 30 --- .../main/resources/META-INF/sca-contribution.xml | 23 -- ....apache.tuscany.sca.definitions.xml.Definitions | 17 -- .../binding/ws/axis2/helloworld/definitions.xml | 35 --- .../ws/axis2/helloworld/helloworld.composite | 59 ----- .../binding/ws/axis2/helloworld/helloworld.wsdl | 90 -------- .../sca/binding/ws/axis2/helloworld/tuscany.jks | Bin 1378 -> 0 bytes .../sca/binding/ws/axis2/HTTPSTestCase.java | 59 ----- .../testing/itest/ws/launcher-axis2/pom.xml | 67 ------ .../axis2/CallbackForwardSpecTestCase.java | 114 --------- .../launcher/axis2/CallbackFullSpecTestCase.java | 111 --------- .../launcher/axis2/CallbackPromotionTestCase.java | 112 --------- .../ws/launcher/axis2/CallbackTestCase.java | 112 --------- .../binding/ws/launcher/axis2/DocLitTestCase.java | 124 ---------- .../ws/launcher/axis2/DocLitWrappedTestCase.java | 122 ---------- .../ws/launcher/axis2/JavaFirstTestCase.java | 123 ---------- .../binding/ws/launcher/axis2/RpcLitTestCase.java | 122 ---------- .../ws/launcher/axis2/WSDLFirstTestCase.java | 130 ----------- .../testing/itest/ws/launcher-base/pom.xml | 59 ----- .../launcher/base/CallbackForwardSpecTestCase.java | 112 --------- .../ws/launcher/base/CallbackFullSpecTestCase.java | 111 --------- .../launcher/base/CallbackPromotionTestCase.java | 112 --------- .../binding/ws/launcher/base/CallbackTestCase.java | 112 --------- .../ws/launcher/base/DocLitWrappedTestCase.java | 122 ---------- .../ws/launcher/base/JavaFirstTestCase.java | 123 ---------- .../ws/launcher/base/WSDLFirstTestCase.java | 125 ---------- .../tags/2.0-Beta1-RC3/testing/itest/ws/pom.xml | 61 ----- .../2.0-Beta1-RC3/testing/itest/ws/wsdl/pom.xml | 47 ---- .../tuscany/sca/binding/ws/axis2/Account.java | 34 --- .../sca/binding/ws/axis2/AccountService.java | 33 --- .../sca/binding/ws/axis2/CustomerProfileData.java | 113 --------- .../tuscany/sca/binding/ws/axis2/HelloWorld.java | 29 --- .../tuscany/sca/binding/ws/axis2/HelloWorldOM.java | 30 --- .../binding/ws/axis2/HelloWorldOMComponent.java | 34 --- .../sca/binding/ws/axis2/HelloWorldOMService.java | 41 ---- .../sca/binding/ws/axis2/HelloWorldService.java | 28 --- .../tuscany/sca/binding/ws/axis2/package-info.java | 21 -- .../tuscany/sca/binding/ws/axis2/customerdata.xsd | 36 --- .../tuscany/sca/binding/ws/axis2/customerdefs.xsd | 27 --- .../tuscany/sca/binding/ws/axis2/customerinfo.xsd | 31 --- .../ws/axis2/helloworld-om-merged.composite | 43 ---- .../sca/binding/ws/axis2/helloworld-om-merged.wsdl | 59 ----- .../tuscany/sca/binding/ws/axis2/helloworld.wsdl | 86 ------- .../ws/axis2/questionmark-import-nested.wsdl | 70 ------ .../sca/binding/ws/axis2/questionmark-import.wsdl | 49 ---- .../sca/binding/ws/axis2/questionmark-include.wsdl | 90 -------- .../ws/axis2/questionmark-wsdl-import.composite | 31 --- .../ws/axis2/questionmark-wsdl-include.composite | 31 --- .../binding/ws/axis2/questionmark-wsdl.composite | 33 --- .../ws/axis2/HelloWorldWSDLMergedTestCase.java | 62 ----- .../ws/axis2/QuestionMarkWSDLImportTestCase.java | 99 -------- .../ws/axis2/QuestionMarkWSDLIncludeTestCase.java | 98 -------- .../binding/ws/axis2/QuestionMarkWSDLTestCase.java | 126 ---------- 206 files changed, 12967 deletions(-) delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/README delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloworldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/HelloWorldServiceService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/helloworld-external-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/HelloWorldServiceService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/helloworld-external-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/HelloWorldServiceService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworld-external-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworldcallbackservice-bottom.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworldservice-bottom.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/HelloWorldServiceService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/helloworld-external-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit2.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldServiceService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/helloworld-external-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldBare.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit2.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldServiceService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/helloworld-external-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/README delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit2.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldServiceService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/helloworld-external-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService_schema2.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldServiceService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/helloworld-external-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Bar.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Foo.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldComponent.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldMultiService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM2.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiService.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleService.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURI.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURI.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-relative-uri.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-uri.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/AbstractHelloWorldOMTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURITestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURITestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/resources/HelloWorldImplService.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/Bar.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/Foo.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/README delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/tuscany.jks delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackForwardSpecTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackFullSpecTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackPromotionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/DocLitTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/DocLitWrappedTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/JavaFirstTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/RpcLitTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/WSDLFirstTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackForwardSpecTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackFullSpecTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackPromotionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/DocLitWrappedTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/JavaFirstTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/WSDLFirstTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Account.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/AccountService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/CustomerProfileData.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/package-info.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdata.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdefs.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerinfo.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import-nested.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-include.wsdl delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-import.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-include.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl.composite delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLImportTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLIncludeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLTestCase.java (limited to 'sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws') diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/README b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/README deleted file mode 100644 index 0efac242c2..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/README +++ /dev/null @@ -1,135 +0,0 @@ - -Features/Tests -============== - -General Patterns ----------------- -For simple synchronous tests: - -Jaxws client -> (b.ws service) SCA Component (b.ws reference) -> Jaxws Service - /\ /\ | - | use | use | gen - | | \/ -Java Interface<------------------Java Interface<---------gen----------WSDL - - -For message format the external service don't get involved in the varying message formats, -They are still doing doc/lit/wrapped: - -TODO - we could extend testing to include JAXWS edpoints thatunderstand the different formats - -JUnit client -> SCA Component (b.ws reference) -> (b.ws service) SCA component -> Jaxws Service - /\ /\ /\ /\ | - | | config | config | | - | use | | | use | gen - | -----------WSDL------- | | - | | \/ -Java Interface<-------------------------------------------------Java Interface<----gen---WSDL - -For SCA callback or asynchronous tests the external services don't get involved in the -callback or aysnc request: - -JUnit client -> SCA Component (b.ws reference) -> (b.ws service) SCA component -> Jaxws Service - - -Java First ----------- -implemenation.java -interface.java - simple - JAXB - SDO - TODO -?wsdl - gens wsdl - -Java First with JAX-WS annotations ----------------------------------- -WSDL -> wsimport -> implemenation.java -interface.java -?wsdl - re-gens wsdl - -WSDL first ----------- -implemenation.java -> wsgen -> wsdl -interface.wsdl -?wsld - provided wsdl - -Callback --------- -Various combinations of specified callback and default configuration -WSCallback ws policy - TODO - -WSDL Styles ------------ - -rpc-lit - supported - WSDL configuration where - message parts use types - - binding style set to rpc - - body uses literal - - Note the use of a namespace on the body element to set the namespace of the wrapper child of the body element -doc-lit(or bare) - supported (however see note below) - WS-I BP1.1 4.7.6 states that an operation signature is a - "fully qualified name of the child element of SOAP body of the SOAP input message" - to make this true for doc-lit encoding you have to design the WSDL to wrap the parameters - in an appropriate type. Hence doc-literal-wrapped is supported which encompasses this wrapping style. - For bare style interfaces you have to mark the Java service interface as follows - SOAP binding is set to - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - WSDL configuration where - message parts use elements - - the elements are directly implemented by the operation parameter type - binding style set to document - - body uses literal - -doc-lit-wrapped - supported - WSDL configuration where - message parts use elements - - the elements are implemented by wrapper types following the name of the operation - binding style set to document - - body uses literal - -rpc-encoded - not supported - not WS-I compliant -doc-encoded - not supported - not WS-I compliant - -================================== TODO below ========================= - -Policy ------- -ws-policy (aac) - -Java First - WSpolicy from Policy set in definitions.xml - ?wsdl - gens wsdl + policy -WSDL first - WSpolicy from WSDL - ?wsld - uses wsdl + policy - Policy signing - -alternative bindings --------------------- -SOAP/HTTP -SOAP/HTTPS -SOAP/JMS - How to retrieve WSDL for non-http bindings (a SHOULD in the spec) - -asynchInvocation Intent ------------------------ - Service - Client - -noListener Intent ------------------ - ws-makeconnetion? - - -SOAP1.1 intent --------------- - -SOAP1.2 intent --------------- - -MTOM intent --------------- - -Streaming ---------- -Do we need to support? diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/pom.xml deleted file mode 100644 index 116294d87f..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-authentication-basic - Apache Tuscany SCA iTest WS with Authentication Basic - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-Beta1 - pom - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java deleted file mode 100644 index 98eb6e361b..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java +++ /dev/null @@ -1,29 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java deleted file mode 100644 index 2c6c4fc92c..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java +++ /dev/null @@ -1,35 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClient implements HelloWorld { - - @Reference - public HelloWorld helloWorldWS; - - public String getGreetings(String s) { - String response = helloWorldWS.getGreetings(s); - System.out.println("At client: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java deleted file mode 100644 index 885844260a..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java +++ /dev/null @@ -1,45 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -import javax.security.auth.Subject; - -import org.oasisopen.sca.RequestContext; -import org.oasisopen.sca.annotation.Context; - -public class HelloWorldService implements HelloWorld { - - @Context - protected RequestContext requestContext; - - public String getGreetings(String name) { - Subject subject = requestContext.getSecuritySubject(); - String response = "Hello " + name + " "; - - if (subject == null){ - response += "null subject"; - } else { - response += subject.getPrincipals().iterator().next().getName(); - } - - System.out.println("At service: " + response); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7e71dd465f..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions deleted file mode 100644 index 04fe620be4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions +++ /dev/null @@ -1,17 +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. -org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml deleted file mode 100644 index d4e651b271..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - myname - mypassword - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite deleted file mode 100644 index 166565baa0..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - http://localhost:8085/services/HelloWorldWebService1 - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl deleted file mode 100644 index a352696b8e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloworldTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloworldTestCase.java deleted file mode 100644 index 380fc5b0f5..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/authentication-basic/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloworldTestCase.java +++ /dev/null @@ -1,52 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorld; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.Ignore; - -//@Ignore("TUSCANY-3631") -public class HelloworldTestCase extends TestCase { - - private Node node; - private HelloWorld helloWorld; - - public void testCalculator() throws Exception { - assertEquals("Hello fred myname", helloWorld.getGreetings("fred")); - } - - @Override - protected void setUp() throws Exception { - node = NodeFactory.newInstance().createNode(new Contribution("test", "target/classes")); - node.start(); - helloWorld = node.getService(HelloWorld.class, "HelloWorldClient"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/pom.xml deleted file mode 100644 index 6d6d478e8b..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/pom.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-contribution-callback-forwardspec - Apache Tuscany SCA iTest WS Contribution Callback Forward Bindings Specified - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-Beta1 - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsgen1 - process-classes - - wsgen - - - org.apache.tuscany.sca.binding.ws.HelloWorldImpl - true - ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface - ${basedir}/target/classes - - helloworld-external-service.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java deleted file mode 100644 index 6bc67db5fc..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java +++ /dev/null @@ -1,32 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java deleted file mode 100644 index ba117c8cfd..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java +++ /dev/null @@ -1,31 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldCallback { - - String getGreetingsCallback(String s); - Foo getGreetingsComplexCallback(Foo foo); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java deleted file mode 100644 index 3521fa5624..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallback.class) -public interface HelloWorldCallbackService { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java deleted file mode 100644 index 057b884bc9..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java +++ /dev/null @@ -1,53 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -@Service(HelloWorldCallbackService.class) -public class HelloWorldCallbackServiceImpl implements HelloWorldCallbackService { - - @Callback - protected HelloWorldCallback helloWorldCallback; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorldCallbackService.getGreetings: " + s); - String response = helloWorldCallback.getGreetingsCallback(s); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorldCallbackService.getGreetingsException: " + s); - String response = helloWorldCallback.getGreetingsCallback(s); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorldCallbackService.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldCallback.getGreetingsComplexCallback(foo); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java deleted file mode 100644 index 1ff58a29b0..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.HelloWorldService; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorldImpl implements HelloWorld, HelloWorldCallback { - - @Reference - public HelloWorldService helloWorldExternal; - - @Reference - public HelloWorldCallbackService helloWorldCallbackService; - - // HelloWorld operations - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld.getGreetings: " + s); - String response = helloWorldCallbackService.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld.getGreetingsException: " + s); - String response = helloWorldCallbackService.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldCallbackService.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } - - // HelloWorldCallback operations - - public String getGreetingsCallback(String s) { - System.out.println("Entering SCA HelloWorld.getGreetingsCallback: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetingsCallback: " + response); - return response; - } - - public String getGreetingsExceptionCallback(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld.getGreetingsExceptionCallback: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetingsCallback: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplexCallback(Foo foo){ - System.out.println("Entering SCA HelloWorld.getGreetingsComplexCallback: " + foo.getBars().get(0).getS()); - Foo response = helloWorldExternal.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld.getGreetingsComplexCallback: " + foo.getBars().get(0).getS()); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/HelloWorldServiceService_schema1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/HelloWorldServiceService_schema1.xsd deleted file mode 100644 index acdfcaaaa5..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/HelloWorldServiceService_schema1.xsd +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 350ad6be96..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/helloworld-external-service.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/helloworld-external-service.wsdl deleted file mode 100644 index 837bcb059e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/helloworld-external-service.wsdl +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/helloworld.composite deleted file mode 100644 index 2be7fd7315..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-forwardspec/src/main/resources/helloworld.composite +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/pom.xml deleted file mode 100644 index 8903eca986..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/pom.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-contribution-callback-fullspec - Apache Tuscany SCA iTest WS Contribution Callback Fully Specified - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-Beta1 - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsgen1 - process-classes - - wsgen - - - org.apache.tuscany.sca.binding.ws.HelloWorldImpl - true - ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface - ${basedir}/target/classes - - helloworld-external-service.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java deleted file mode 100644 index 6bc67db5fc..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java +++ /dev/null @@ -1,32 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java deleted file mode 100644 index ba117c8cfd..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java +++ /dev/null @@ -1,31 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldCallback { - - String getGreetingsCallback(String s); - Foo getGreetingsComplexCallback(Foo foo); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java deleted file mode 100644 index 3521fa5624..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallback.class) -public interface HelloWorldCallbackService { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java deleted file mode 100644 index 057b884bc9..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java +++ /dev/null @@ -1,53 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -@Service(HelloWorldCallbackService.class) -public class HelloWorldCallbackServiceImpl implements HelloWorldCallbackService { - - @Callback - protected HelloWorldCallback helloWorldCallback; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorldCallbackService.getGreetings: " + s); - String response = helloWorldCallback.getGreetingsCallback(s); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorldCallbackService.getGreetingsException: " + s); - String response = helloWorldCallback.getGreetingsCallback(s); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorldCallbackService.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldCallback.getGreetingsComplexCallback(foo); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java deleted file mode 100644 index 1ff58a29b0..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.HelloWorldService; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorldImpl implements HelloWorld, HelloWorldCallback { - - @Reference - public HelloWorldService helloWorldExternal; - - @Reference - public HelloWorldCallbackService helloWorldCallbackService; - - // HelloWorld operations - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld.getGreetings: " + s); - String response = helloWorldCallbackService.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld.getGreetingsException: " + s); - String response = helloWorldCallbackService.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldCallbackService.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } - - // HelloWorldCallback operations - - public String getGreetingsCallback(String s) { - System.out.println("Entering SCA HelloWorld.getGreetingsCallback: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetingsCallback: " + response); - return response; - } - - public String getGreetingsExceptionCallback(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld.getGreetingsExceptionCallback: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetingsCallback: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplexCallback(Foo foo){ - System.out.println("Entering SCA HelloWorld.getGreetingsComplexCallback: " + foo.getBars().get(0).getS()); - Foo response = helloWorldExternal.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld.getGreetingsComplexCallback: " + foo.getBars().get(0).getS()); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/HelloWorldServiceService_schema1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/HelloWorldServiceService_schema1.xsd deleted file mode 100644 index acdfcaaaa5..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/HelloWorldServiceService_schema1.xsd +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 350ad6be96..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/helloworld-external-service.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/helloworld-external-service.wsdl deleted file mode 100644 index 837bcb059e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/helloworld-external-service.wsdl +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/helloworld.composite deleted file mode 100644 index 31414beb47..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-fullspec/src/main/resources/helloworld.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/pom.xml deleted file mode 100644 index fe11749951..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/pom.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-contribution-callback-promotion - Apache Tuscany SCA iTest WS Contribution Callback Promotion - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-Beta1 - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsgen1 - process-classes - - wsgen - - - org.apache.tuscany.sca.binding.ws.HelloWorldImpl - true - ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface - ${basedir}/target/classes - - helloworld-external-service.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java deleted file mode 100644 index 6bc67db5fc..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java +++ /dev/null @@ -1,32 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java deleted file mode 100644 index ba117c8cfd..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java +++ /dev/null @@ -1,31 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldCallback { - - String getGreetingsCallback(String s); - Foo getGreetingsComplexCallback(Foo foo); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java deleted file mode 100644 index 3521fa5624..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallback.class) -public interface HelloWorldCallbackService { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java deleted file mode 100644 index 057b884bc9..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java +++ /dev/null @@ -1,53 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -@Service(HelloWorldCallbackService.class) -public class HelloWorldCallbackServiceImpl implements HelloWorldCallbackService { - - @Callback - protected HelloWorldCallback helloWorldCallback; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorldCallbackService.getGreetings: " + s); - String response = helloWorldCallback.getGreetingsCallback(s); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorldCallbackService.getGreetingsException: " + s); - String response = helloWorldCallback.getGreetingsCallback(s); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorldCallbackService.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldCallback.getGreetingsComplexCallback(foo); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java deleted file mode 100644 index 1ff58a29b0..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.HelloWorldService; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorldImpl implements HelloWorld, HelloWorldCallback { - - @Reference - public HelloWorldService helloWorldExternal; - - @Reference - public HelloWorldCallbackService helloWorldCallbackService; - - // HelloWorld operations - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld.getGreetings: " + s); - String response = helloWorldCallbackService.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld.getGreetingsException: " + s); - String response = helloWorldCallbackService.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldCallbackService.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } - - // HelloWorldCallback operations - - public String getGreetingsCallback(String s) { - System.out.println("Entering SCA HelloWorld.getGreetingsCallback: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetingsCallback: " + response); - return response; - } - - public String getGreetingsExceptionCallback(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld.getGreetingsExceptionCallback: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetingsCallback: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplexCallback(Foo foo){ - System.out.println("Entering SCA HelloWorld.getGreetingsComplexCallback: " + foo.getBars().get(0).getS()); - Foo response = helloWorldExternal.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld.getGreetingsComplexCallback: " + foo.getBars().get(0).getS()); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/HelloWorldServiceService_schema1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/HelloWorldServiceService_schema1.xsd deleted file mode 100644 index acdfcaaaa5..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/HelloWorldServiceService_schema1.xsd +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 350ad6be96..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworld-external-service.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworld-external-service.wsdl deleted file mode 100644 index 837bcb059e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworld-external-service.wsdl +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworld.composite deleted file mode 100644 index 0d66bb105f..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworld.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworldcallbackservice-bottom.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworldcallbackservice-bottom.composite deleted file mode 100644 index e522c6c151..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworldcallbackservice-bottom.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworldservice-bottom.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworldservice-bottom.composite deleted file mode 100644 index aea84ad56e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback-promotion/src/main/resources/helloworldservice-bottom.composite +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/pom.xml deleted file mode 100644 index a309eb89f4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/pom.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-contribution-callback - Apache Tuscany SCA iTest WS Contribution Callback - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-Beta1 - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsgen1 - process-classes - - wsgen - - - org.apache.tuscany.sca.binding.ws.HelloWorldImpl - true - ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface - ${basedir}/target/classes - - helloworld-external-service.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java deleted file mode 100644 index 6bc67db5fc..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java +++ /dev/null @@ -1,32 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java deleted file mode 100644 index ba117c8cfd..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallback.java +++ /dev/null @@ -1,31 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldCallback { - - String getGreetingsCallback(String s); - Foo getGreetingsComplexCallback(Foo foo); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java deleted file mode 100644 index 3521fa5624..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackService.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallback.class) -public interface HelloWorldCallbackService { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java deleted file mode 100644 index 057b884bc9..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldCallbackServiceImpl.java +++ /dev/null @@ -1,53 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -@Service(HelloWorldCallbackService.class) -public class HelloWorldCallbackServiceImpl implements HelloWorldCallbackService { - - @Callback - protected HelloWorldCallback helloWorldCallback; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorldCallbackService.getGreetings: " + s); - String response = helloWorldCallback.getGreetingsCallback(s); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorldCallbackService.getGreetingsException: " + s); - String response = helloWorldCallback.getGreetingsCallback(s); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorldCallbackService.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldCallback.getGreetingsComplexCallback(foo); - System.out.println("Leaving SCA HelloWorldCallbackService.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java deleted file mode 100644 index 1ff58a29b0..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.HelloWorldService; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorldImpl implements HelloWorld, HelloWorldCallback { - - @Reference - public HelloWorldService helloWorldExternal; - - @Reference - public HelloWorldCallbackService helloWorldCallbackService; - - // HelloWorld operations - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld.getGreetings: " + s); - String response = helloWorldCallbackService.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld.getGreetingsException: " + s); - String response = helloWorldCallbackService.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldCallbackService.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } - - // HelloWorldCallback operations - - public String getGreetingsCallback(String s) { - System.out.println("Entering SCA HelloWorld.getGreetingsCallback: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetingsCallback: " + response); - return response; - } - - public String getGreetingsExceptionCallback(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld.getGreetingsExceptionCallback: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetingsCallback: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplexCallback(Foo foo){ - System.out.println("Entering SCA HelloWorld.getGreetingsComplexCallback: " + foo.getBars().get(0).getS()); - Foo response = helloWorldExternal.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld.getGreetingsComplexCallback: " + foo.getBars().get(0).getS()); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/HelloWorldServiceService_schema1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/HelloWorldServiceService_schema1.xsd deleted file mode 100644 index acdfcaaaa5..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/HelloWorldServiceService_schema1.xsd +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 350ad6be96..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/helloworld-external-service.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/helloworld-external-service.wsdl deleted file mode 100644 index 837bcb059e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/helloworld-external-service.wsdl +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/helloworld.composite deleted file mode 100644 index cb257d22dd..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-callback/src/main/resources/helloworld.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/pom.xml deleted file mode 100644 index 5275f8217e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/pom.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-contribution-doc-lit-wrapped - Apache Tuscany SCA iTest WS Contribution Doc Lit Wrapped - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-Beta1 - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsgen1 - process-classes - - wsgen - - - org.apache.tuscany.sca.binding.ws.HelloWorld1Impl - true - ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface - ${basedir}/target/classes - - helloworld-external-service.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java deleted file mode 100644 index 6bc67db5fc..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java +++ /dev/null @@ -1,32 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java deleted file mode 100644 index 27471f87c6..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java +++ /dev/null @@ -1,54 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorld1Impl implements HelloWorld { - - @Reference - public HelloWorld helloWorld2; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld1.getGreetings: " + s); - String response = helloWorld2.getGreetings(s); - System.out.println("Leaving SCA HelloWorld1.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld1.getGreetingsException: " + s); - String response = helloWorld2.getGreetings(s); - System.out.println("Leaving SCA HelloWorld1.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld1.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorld2.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld1.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java deleted file mode 100644 index 6f3b430d6d..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.HelloWorldService; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorld2Impl implements HelloWorld { - - @Reference - public HelloWorldService helloWorldExternal; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld2.getGreetings: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld2.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld2.getGreetingsException: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld2.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld2.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldExternal.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld2.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit.wsdl deleted file mode 100644 index f5a25b39f8..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit.wsdl +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit1.xsd deleted file mode 100644 index 545820a07d..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit1.xsd +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit2.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit2.xsd deleted file mode 100644 index d955cc2af4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldImplService-doclit2.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldServiceService_schema1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldServiceService_schema1.xsd deleted file mode 100644 index acdfcaaaa5..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/HelloWorldServiceService_schema1.xsd +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 350ad6be96..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/helloworld-external-service.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/helloworld-external-service.wsdl deleted file mode 100644 index 837bcb059e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/helloworld-external-service.wsdl +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/helloworld.composite deleted file mode 100644 index e00e130c32..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit-wrapped/src/main/resources/helloworld.composite +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/pom.xml deleted file mode 100644 index b8d4c86a6f..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/pom.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-contribution-doc-lit - Apache Tuscany SCA iTest WS Contribution Doc Lit(sometimes called Bare) - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-Beta1 - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsgen1 - process-classes - - wsgen - - - org.apache.tuscany.sca.binding.ws.HelloWorld1Impl - true - ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface - ${basedir}/target/classes - - helloworld-external-service.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java deleted file mode 100644 index 9196530db7..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.soap.SOAPBinding; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; -/* TUSCANY-3621 - Foo getGreetingsComplex(Foo foo); -*/ -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java deleted file mode 100644 index c8bad91339..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorld1Impl implements HelloWorld { - - @Reference - public HelloWorldBare helloWorld2; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld1.getGreetings: " + s); - String response = helloWorld2.getGreetings(s); - System.out.println("Leaving SCA HelloWorld1.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld1.getGreetingsException: " + s); - String response = helloWorld2.getGreetings(s); - System.out.println("Leaving SCA HelloWorld1.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } -/* TUSCANY-3621 - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld1.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorld2.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld1.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } -*/ -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java deleted file mode 100644 index deb4dfc09d..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.HelloWorldService; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorld2Impl implements HelloWorldBare { - - @Reference - public HelloWorldService helloWorldExternal; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld2.getGreetings: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld2.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld2.getGreetingsException: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld2.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } -/* TUSCANY-3621 - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld2.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldExternal.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld2.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } -*/ -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldBare.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldBare.java deleted file mode 100644 index e37ff1aef3..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldBare.java +++ /dev/null @@ -1,37 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.soap.SOAPBinding; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) -public interface HelloWorldBare { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; -/* TUSCANY-3621 - Foo getGreetingsComplex(Foo foo); -*/ -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit.wsdl deleted file mode 100644 index 03e0a8c93c..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit.wsdl +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit1.xsd deleted file mode 100644 index 6238bf2f45..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit1.xsd +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit2.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit2.xsd deleted file mode 100644 index d955cc2af4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldImplService-doclit2.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldServiceService_schema1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldServiceService_schema1.xsd deleted file mode 100644 index acdfcaaaa5..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/HelloWorldServiceService_schema1.xsd +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 350ad6be96..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/helloworld-external-service.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/helloworld-external-service.wsdl deleted file mode 100644 index 837bcb059e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/helloworld-external-service.wsdl +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/helloworld.composite deleted file mode 100644 index 5ae9e78823..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-doc-lit/src/main/resources/helloworld.composite +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/pom.xml deleted file mode 100644 index 5dd91bac19..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/pom.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-contribution-java-first - Apache Tuscany SCA iTest WS Contribution Java First - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-Beta1 - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsgen1 - process-classes - - wsgen - - - org.apache.tuscany.sca.binding.ws.HelloWorldImpl - true - ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface - ${basedir}/target/classes - - helloworld-external-service.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java deleted file mode 100644 index 6bc67db5fc..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java +++ /dev/null @@ -1,32 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java deleted file mode 100644 index 8f57680d47..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.HelloWorldService; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorldImpl implements HelloWorld { - - @Reference - public HelloWorldService helloWorldExternal; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld.getGreetings: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld.getGreetingsException: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldExternal.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd deleted file mode 100644 index acdfcaaaa5..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 350ad6be96..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl deleted file mode 100644 index 837bcb059e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/helloworld.composite deleted file mode 100644 index e6cdb94dfb..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-java-first/src/main/resources/helloworld.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/README b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/README deleted file mode 100644 index fe73646e78..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/README +++ /dev/null @@ -1,254 +0,0 @@ -RPC Literal WSDL Style -====================== - -Interface ---------- - -@Remotable -public interface HelloWorld { - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} - -WSDL ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -getGreetings SOAP Request/Response ----------------------------------- - -POST /HelloWorldService/HelloWorld-rpclit-porttype HTTP/1.1 -Content-Type: text/xml; charset=UTF-8 -SOAPAction: "" -User-Agent: Axis2 -Host: localhost:8088 -Content-Length: 480 - - - - - - Fred - - - - - -HTTP/1.1 200 OK -Content-Type: text/xml; charset=utf-8 -Transfer-Encoding: chunked - -1FE - - - - - Hello Fred - - - - - -getGreetingsException SOAP Request/Response -------------------------------------------- - -POST /HelloWorldService/HelloWorld-rpclit-porttype HTTP/1.1 -Content-Type: text/xml; charset=UTF-8 -SOAPAction: "" -User-Agent: Axis2 -Host: localhost:8088 -Content-Length: 507 - - - - - - Fred - - - - - -HTTP/1.1 500 Internal Server Error -Content-Type: text/xml; charset=utf-8 -Transfer-Encoding: chunked - -133C - - - - - soapenv:Server - org.apache.tuscany.sca.interfacedef.util.FaultE - xception cannot be cast to org.apache.axiom.om.OMElement - - ... - - - - - - -TODO - exception is wrong - -getGreetingsComplex SOAP Request/Response ------------------------------------------ - -POST /HelloWorldService/HelloWorld-rpclit-porttype HTTP/1.1 -Content-Type: text/xml; charset=UTF-8 -SOAPAction: "" -User-Agent: Axis2 -Host: localhost:8088 -Content-Length: 570 - - - - - - - - true - petra - 1 - 2 - - - false - beate - 3 - 4 - - - - - - -HTTP/1.1 200 OK -Content-Type: text/xml; charset=utf-8 -Transfer-Encoding: chunked - -281 - - - - - - - true - petra - 1 - 2 - - - false - bea - te - 3 - 4 - - - true - simon - 7 - 8 - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/pom.xml deleted file mode 100644 index adc462d85b..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/pom.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-contribution-rpc-lit - Apache Tuscany SCA iTest WS Contribution RPC Lit - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-Beta1 - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsgen1 - process-classes - - wsgen - - - org.apache.tuscany.sca.binding.ws.HelloWorld1Impl - true - ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface - ${basedir}/target/classes - - helloworld-external-service.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java deleted file mode 100644 index 6bc67db5fc..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java +++ /dev/null @@ -1,32 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java deleted file mode 100644 index 9ee8373468..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld1Impl.java +++ /dev/null @@ -1,54 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorld1Impl implements HelloWorld { - - @Reference - public HelloWorld helloWorld2; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld1.getGreetings: " + s); - String response = helloWorld2.getGreetings(s); - System.out.println("Leaving SCA HelloWorld1.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld1.getGreetingsException: " + s); - String response = helloWorld2.getGreetingsException(s); - System.out.println("Leaving SCA HelloWorld1.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld1.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorld2.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld1.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java deleted file mode 100644 index 6f3b430d6d..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld2Impl.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.HelloWorldService; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorld2Impl implements HelloWorld { - - @Reference - public HelloWorldService helloWorldExternal; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld2.getGreetings: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld2.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld2.getGreetingsException: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld2.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld2.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldExternal.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld2.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit.wsdl deleted file mode 100644 index 0c11e6a8f4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit.wsdl +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit1.xsd deleted file mode 100644 index 8841f0dcf2..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit1.xsd +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit2.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit2.xsd deleted file mode 100644 index d955cc2af4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldImplService-rpclit2.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldServiceService_schema1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldServiceService_schema1.xsd deleted file mode 100644 index acdfcaaaa5..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/HelloWorldServiceService_schema1.xsd +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 350ad6be96..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/helloworld-external-service.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/helloworld-external-service.wsdl deleted file mode 100644 index 837bcb059e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/helloworld-external-service.wsdl +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/helloworld.composite deleted file mode 100644 index 28dedef44c..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-rpc-lit/src/main/resources/helloworld.composite +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/pom.xml deleted file mode 100644 index f00072d57c..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/pom.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-contribution-wsdl-first - Apache Tuscany SCA iTest WS Contribution WSDL First - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-Beta1 - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - - wsimport2 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface - ${basedir}/target/classes - - helloworld-external-service.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport2StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - true - true - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java deleted file mode 100644 index c9c1038ea3..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorld.java +++ /dev/null @@ -1,37 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import javax.jws.WebMethod; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); - - @WebMethod(operationName = "GetGreetingsCaps") - String getGreetingsCaps(String s); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java deleted file mode 100644 index d88a765682..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/HelloWorldImpl.java +++ /dev/null @@ -1,60 +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. - */ - -package org.apache.tuscany.sca.binding.ws; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.Foo; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface.HelloWorldService; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldImpl implements HelloWorld { - - @Reference - public HelloWorldService helloWorldExternal; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld.getGreetings: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld.getGreetingsException: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = helloWorldExternal.getGreetingsComplex(foo); - System.out.println("Leaving SCA HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } - - public String getGreetingsCaps(String s) { - System.out.println("Entering SCA HelloWorld.getGreetingsCaps: " + s); - String response = helloWorldExternal.getGreetingsCaps(s); - System.out.println("Leaving SCA HelloWorld.getGreetingsCaps: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService.wsdl deleted file mode 100644 index 59fce9d849..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService.wsdl +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService_schema1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService_schema1.xsd deleted file mode 100644 index 2d8adf3d73..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService_schema1.xsd +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService_schema2.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService_schema2.xsd deleted file mode 100644 index d955cc2af4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldImplService_schema2.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldServiceService_schema1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldServiceService_schema1.xsd deleted file mode 100644 index 467eeb90c5..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/HelloWorldServiceService_schema1.xsd +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 350ad6be96..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/helloworld-external-service.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/helloworld-external-service.wsdl deleted file mode 100644 index c38f629e4f..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/helloworld-external-service.wsdl +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/helloworld.composite deleted file mode 100644 index 8d0c7bf9ff..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/contribution-wsdl-first/src/main/resources/helloworld.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/pom.xml deleted file mode 100644 index d3e35d6bad..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-defaults - Apache Tuscany SCA iTest WS with Defaults - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-Beta1 - pom - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Bar.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Bar.java deleted file mode 100644 index a1233f6d25..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Bar.java +++ /dev/null @@ -1,58 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import java.io.Serializable; - -public class Bar implements Serializable { - private static final long serialVersionUID = 1249963611910502668L; - - private String s; - private int x; - private Integer y; - - private Boolean b; - - public Boolean getB() { - return b; - } - public void setB(Boolean b) { - this.b = b; - } - public String getS() { - return s; - } - public void setS(String s) { - this.s = s; - } - public int getX() { - return x; - } - public void setX(int x) { - this.x = x; - } - public Integer getY() { - return y; - } - public void setY(Integer y) { - this.y = y; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Foo.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Foo.java deleted file mode 100644 index 0695ace7f4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Foo.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import java.io.Serializable; - -public class Foo implements Serializable { - private static final long serialVersionUID = 4879476066850018458L; - - private Bar[] bars; - - public Bar[] getBars() { - return bars; - } - - public void setBars(Bar[] bars) { - this.bars = bars; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java deleted file mode 100644 index f39566ccbf..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java +++ /dev/null @@ -1,29 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldClient.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldClient.java deleted file mode 100644 index 332f825a51..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldClient.java +++ /dev/null @@ -1,40 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClient implements HelloWorld { - - @Reference - public HelloWorld helloWorldWS; - - public String getGreetings(String s) { - String response = helloWorldWS.getGreetings(s); - System.out.println("At client: " + response); - return response; - } - - public Foo getGreetingsComplex(Foo foo){ - Foo response = helloWorldWS.getGreetingsComplex(foo); - System.out.println("At client: " + response.getBars()[0].getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java deleted file mode 100644 index 3bbf50a728..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java +++ /dev/null @@ -1,42 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -public class HelloWorldService implements HelloWorld { - - public String getGreetings(String s) { - String response = "Hello " + s; - System.out.println("At service: " + response); - return response; - } - - public Foo getGreetingsComplex(Foo foo){ - Foo response = foo; - Bar b3 = new Bar(); - b3.setS("simon"); - b3.setX(4); - b3.setY(new Integer(5)); - b3.setB(Boolean.TRUE); - response.getBars()[1] = b3; - System.out.println("At sevice: " + response.getBars()[0].getS()); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7e71dd465f..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.composite deleted file mode 100644 index cae74697f1..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.composite +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl deleted file mode 100644 index a352696b8e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultsTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultsTestCase.java deleted file mode 100644 index 1e4c1fcbff..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/defaults/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultsTestCase.java +++ /dev/null @@ -1,74 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.binding.ws.axis2.HelloWorld; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public class DefaultsTestCase extends TestCase { - - private Node node; - private HelloWorld helloWorld; - - @Override - protected void setUp() throws Exception { - node = NodeFactory.newInstance().createNode(new Contribution("test", "target/classes")); - node.start(); - helloWorld = node.getService(HelloWorld.class, "HelloWorldClient"); - } - - public void testCalculator() throws Exception { - assertEquals("Hello petra", helloWorld.getGreetings("petra")); - - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.setBars(new Bar[] { b1, b2} ); - - Foo f2 = helloWorld.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars()[0].getS()); - assertEquals(1, f2.getBars()[0].getX()); - assertEquals(2, f2.getBars()[0].getY().intValue()); - assertTrue(f2.getBars()[0].getB().booleanValue()); - assertEquals("simon", f2.getBars()[1].getS()); - assertEquals(4, f2.getBars()[1].getX()); - assertEquals(5, f2.getBars()[1].getY().intValue()); - assertTrue(f2.getBars()[1].getB().booleanValue()); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/pom.xml deleted file mode 100644 index 3d7b44e583..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-endpoint-references - Apache Tuscany SCA iTest WS Endpoint References - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-Beta1 - pom - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java deleted file mode 100644 index d6db1c2d0b..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java +++ /dev/null @@ -1,29 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldComponent.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldComponent.java deleted file mode 100644 index 4ba7e67de2..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldComponent.java +++ /dev/null @@ -1,33 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldComponent implements HelloWorld { - - @Reference - public HelloWorld helloWorldWS; - - public String getGreetings(String s) { - return helloWorldWS.getGreetings(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java deleted file mode 100644 index 052b49ff55..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java +++ /dev/null @@ -1,28 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -public class HelloWorldService implements HelloWorld { - - public String getGreetings(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.composite deleted file mode 100644 index 1b0af55874..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.composite +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - http://localhost:8085/myService - - - - - - - - - - - http://localhost:8085/myService - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl deleted file mode 100644 index 1a2272d7ee..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldTestCase.java deleted file mode 100644 index f1cfe30475..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoint-references/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldTestCase.java +++ /dev/null @@ -1,52 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.binding.ws.axis2.HelloWorld; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public class HelloWorldTestCase extends TestCase { - - private Node node; - private HelloWorld helloWorld; - - public void testCalculator() throws Exception { - assertEquals("Hello petra", helloWorld.getGreetings("petra")); - } - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.composite", new Contribution("test", contribution)); - node.start(); - helloWorld = node.getService(HelloWorld.class, "HelloWorldComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/pom.xml deleted file mode 100644 index b3b8ff2783..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-endpoints - Apache Tuscany SCA iTest WS Endpoints - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-Beta1 - pom - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldMultiService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldMultiService.java deleted file mode 100644 index 8f77c63213..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldMultiService.java +++ /dev/null @@ -1,51 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; - -public class HelloWorldMultiService implements HelloWorldOM, HelloWorldOM2 { - - public OMElement getGreetings(OMElement requestOM) { - String name = requestOM.getFirstElement().getText(); - - OMFactory omFactory = OMAbstractFactory.getOMFactory(); - OMElement responseOM = omFactory.createOMElement("getGreetingsResponse", "http://helloworld-om", "helloworld"); - OMElement param = omFactory.createOMElement("getGreetingsReturn", "http://helloworld-om", "helloworld"); - responseOM.addChild(param); - param.addChild(omFactory.createOMText("Hello " + name)); - - return responseOM; - } - - public OMElement getGreetings2(OMElement requestOM) { - String name = requestOM.getFirstElement().getText(); - - OMFactory omFactory = OMAbstractFactory.getOMFactory(); - OMElement responseOM = omFactory.createOMElement("getGreetingsResponse", "http://helloworld-om", "helloworld"); - OMElement param = omFactory.createOMElement("getGreetingsReturn", "http://helloworld-om", "helloworld"); - responseOM.addChild(param); - param.addChild(omFactory.createOMText("Hello2 " + name)); - - return responseOM; - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java deleted file mode 100644 index e248815805..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java +++ /dev/null @@ -1,30 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMElement; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldOM { - - OMElement getGreetings(OMElement parmE); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM2.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM2.java deleted file mode 100644 index 9d0a4ce5b4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM2.java +++ /dev/null @@ -1,30 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMElement; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldOM2 { - - OMElement getGreetings2(OMElement parmE); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java deleted file mode 100644 index 8439696fa8..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMElement; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldOMComponent implements HelloWorldOM { - - @Reference - public HelloWorldOM helloWorldWS; - - public OMElement getGreetings(OMElement om) { - return helloWorldWS.getGreetings(om); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java deleted file mode 100644 index 5b8578c816..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; - -public class HelloWorldOMService implements HelloWorldOM { - - public OMElement getGreetings(OMElement requestOM) { - System.out.println(" **** getGreetings **** "); - String name = requestOM.getFirstElement().getText(); - - OMFactory omFactory = OMAbstractFactory.getOMFactory(); - OMElement responseOM = omFactory.createOMElement("getGreetingsResponse", "http://helloworld-om", "helloworld"); - OMElement param = omFactory.createOMElement("getGreetingsReturn", "http://helloworld-om", "helloworld"); - responseOM.addChild(param); - param.addChild(omFactory.createOMText("Hello " + name)); - - return responseOM; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiService.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiService.composite deleted file mode 100644 index c7863a5ff8..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiService.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleService.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleService.composite deleted file mode 100644 index 63c6a89cfb..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleService.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURI.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURI.composite deleted file mode 100644 index 9991a415f9..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURI.composite +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURI.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURI.composite deleted file mode 100644 index 1ea7ab5a36..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURI.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-relative-uri.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-relative-uri.wsdl deleted file mode 100644 index fe68755c47..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-relative-uri.wsdl +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-uri.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-uri.wsdl deleted file mode 100644 index baa223f41c..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-uri.wsdl +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om.wsdl deleted file mode 100644 index 73ca02246d..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om.wsdl +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/AbstractHelloWorldOMTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/AbstractHelloWorldOMTestCase.java deleted file mode 100644 index bad94bbbc3..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/AbstractHelloWorldOMTestCase.java +++ /dev/null @@ -1,68 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.Assert; -import junit.framework.TestCase; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; -import org.apache.axiom.om.OMText; -import org.apache.tuscany.sca.binding.ws.axis2.HelloWorldOM; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public abstract class AbstractHelloWorldOMTestCase extends TestCase { - - private Node node; - private HelloWorldOM helloWorld; - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode(getCompositeName(), new Contribution("test", contribution)); - node.start(); - helloWorld = node.getService(HelloWorldOM.class, "HelloWorldComponent"); - } - - public void testCalculator() throws Exception { - OMFactory fac = OMAbstractFactory.getOMFactory(); - OMElement requestOM = fac.createOMElement("getGreetings", "http://helloworld-om", "helloworld"); - OMElement parmE = fac.createOMElement("name", "http://helloworld-om", "helloworld"); - requestOM.addChild(parmE); - parmE.addChild(fac.createOMText("petra")); - OMElement responseOM = helloWorld.getGreetings(requestOM); - OMElement child = (OMElement)responseOM.getFirstElement(); - Assert.assertEquals("Hello petra", ((OMText)child.getFirstOMChild()).getText()); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - protected String getCompositeName() { - String className = this.getClass().getName(); - return className.substring(0, className.length() - 8).replace('.', '/') + ".composite"; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiServiceTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiServiceTestCase.java deleted file mode 100644 index 4ecf016e5a..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiServiceTestCase.java +++ /dev/null @@ -1,24 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -public class DefaultMultiServiceTestCase extends AbstractHelloWorldOMTestCase { - // super class does it all getting composite based on this class name -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleServiceTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleServiceTestCase.java deleted file mode 100644 index 13163d62ab..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleServiceTestCase.java +++ /dev/null @@ -1,24 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -public class DefaultSingleServiceTestCase extends AbstractHelloWorldOMTestCase { - // super class does it all getting composite based on this class name -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURITestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURITestCase.java deleted file mode 100644 index bb492557d4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURITestCase.java +++ /dev/null @@ -1,24 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -public class WSDLExplicitURITestCase extends AbstractHelloWorldOMTestCase { - // super class does it all getting composite based on this class name -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURITestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURITestCase.java deleted file mode 100644 index e038cc3116..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURITestCase.java +++ /dev/null @@ -1,24 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -public class WSDLRelativeURITestCase extends AbstractHelloWorldOMTestCase { - // super class does it all getting composite based on this class name -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/pom.xml deleted file mode 100644 index 3fb19f86b7..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/pom.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-external-client - Apache Tuscany SCA iTest WS External Client - - - - - com.sun.xml.ws - jaxws-rt - 2.1.7 - - - - - - ${artifactId} - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.sca - ${basedir}/target/classes - - HelloWorldImplService.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java deleted file mode 100644 index ccecf5695f..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java +++ /dev/null @@ -1,91 +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. - */ - -package org.apache.tuscany.sca.binding.ws.jaxws.external.client; - -import java.io.File; -import java.net.URL; - -import javax.xml.namespace.QName; -import javax.xml.ws.Service; - -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Exception_Exception; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.HelloWorldImpl; - -public class HelloWorldClientLauncher { - - public HelloWorldImpl wsProxy; - - public HelloWorldClientLauncher(){ - } - - public void createClient() throws Exception{ - System.out.println(">>> Starting external JAXWS client "); - - // default JVM JAXWS support - QName serviceName = new QName("http://ws.binding.sca.tuscany.apache.org/", "HelloWorldImplService"); - QName portName = new QName("http://ws.binding.sca.tuscany.apache.org/", "HelloWorldImplPort"); - //URL wsdlLocation = new File("../external-client/target/classes/helloworld-sca.wsdl").toURL(); - URL wsdlLocation = new File("../external-client/target/classes/HelloWorldImplService.wsdl").toURL(); - javax.xml.ws.Service webService = Service.create(wsdlLocation, serviceName); - wsProxy = (HelloWorldImpl) webService.getPort(portName, HelloWorldImpl.class); - } - - public void destroyClient(){ - System.out.println(">>> Stopping external JAXWS client: "); - // TODO - } - - public String getGreetings(String name){ - System.out.println("Entering External Client HelloWorld.getGreetings: " + name); - String response = wsProxy.getGreetings(name); - System.out.println("Leaving External Client HelloWorld.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String name) throws Exception_Exception { - System.out.println("Entering External Client HelloWorld.getGreetingsException: " + name); - String response = wsProxy.getGreetingsException(name); - System.out.println("Leaving External Client HelloWorld.getGreetingsException: " + response); - return response; - } - - public Foo getGreetingsComplex(Foo f) throws Exception_Exception { - System.out.println("Entering External Client HelloWorld.getGreetingsComplex: " + f.getBars().get(0).getS()); - Foo response = wsProxy.getGreetingsComplex(f); - System.out.println("Leaving External Client HelloWorld.getGreetingsComplex: " + response.getBars().get(0).getS()); - return response; - } - - public String getGreetingsCaps(String s) throws Exception_Exception { - System.out.println("Entering External Client HelloWorld.getGreetingsCaps: " + s); - String response = wsProxy.getGreetingsCaps(s); - System.out.println("Leaving External Client HelloWorld.getGreetingsCaps: " + response); - return response; - } - - public static void main(String[] args) throws Exception { - HelloWorldClientLauncher launcher = new HelloWorldClientLauncher(); - launcher.createClient(); - launcher.getGreetings("Fred"); - launcher.destroyClient(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/resources/HelloWorldImplService.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/resources/HelloWorldImplService.wsdl deleted file mode 100644 index d175589d7b..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/resources/HelloWorldImplService.wsdl +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd deleted file mode 100644 index c9c0acb038..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/pom.xml deleted file mode 100644 index c26b4614bb..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/pom.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-external-service - Apache Tuscany SCA iTest WS External Service - - - - - - - - ${artifactId} - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsgen1 - process-classes - - wsgen - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldService - true - ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/Bar.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/Bar.java deleted file mode 100644 index 1f330aa441..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/Bar.java +++ /dev/null @@ -1,152 +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. - */ - - -package org.apache.tuscany.sca.binding.ws.jaxws.external.service; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for bar complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="bar">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *         <element name="s" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *         <element name="x" type="{http://www.w3.org/2001/XMLSchema}int"/>
- *         <element name="y" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "bar", propOrder = { - "b", - "s", - "x", - "y" -}) -public class Bar { - - protected Boolean b; - protected String s; - protected int x; - protected Integer y; - - /** - * Gets the value of the b property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isB() { - return b; - } - - /** - * Sets the value of the b property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setB(Boolean value) { - this.b = value; - } - - /** - * Gets the value of the s property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getS() { - return s; - } - - /** - * Sets the value of the s property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setS(String value) { - this.s = value; - } - - /** - * Gets the value of the x property. - * - */ - public int getX() { - return x; - } - - /** - * Sets the value of the x property. - * - */ - public void setX(int value) { - this.x = value; - } - - /** - * Gets the value of the y property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getY() { - return y; - } - - /** - * Sets the value of the y property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setY(Integer value) { - this.y = value; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/Foo.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/Foo.java deleted file mode 100644 index 1b22153169..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/Foo.java +++ /dev/null @@ -1,88 +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. - */ - - -package org.apache.tuscany.sca.binding.ws.jaxws.external.service; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for foo complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="foo">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="bars" type="{http://ws.binding.sca.tuscany.apache.org/}bar" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "foo", propOrder = { - "bars" -}) -public class Foo { - - @XmlElement(nillable = true) - protected List bars; - - /** - * Gets the value of the bars property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the bars property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getBars().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Bar } - * - * - */ - public List getBars() { - if (bars == null) { - bars = new ArrayList(); - } - return this.bars; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java deleted file mode 100644 index 129365b5e4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java +++ /dev/null @@ -1,64 +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. - */ - -package org.apache.tuscany.sca.binding.ws.jaxws.external.service; - -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebResult; -import javax.jws.WebService; -import javax.xml.ws.RequestWrapper; -import javax.xml.ws.ResponseWrapper; - -@WebService(name = "HelloWorldService", targetNamespace = "http://helloworld/external") -public class HelloWorldService { - - @WebMethod - @WebResult(name = "getGreetingsReturn", targetNamespace = "http://helloworld/external") - @RequestWrapper(localName = "getGreetings", targetNamespace = "http://helloworld/external", className = "org.apache.tuscany.sca.binding.ws.jaxws.external.service.GetGreetings") - @ResponseWrapper(localName = "getGreetingsResponse", targetNamespace = "http://helloworld/external", className = "org.apache.tuscany.sca.binding.ws.jaxws.external.service.GetGreetingsResponse") - public String getGreetings( @WebParam(name = "name", targetNamespace = "http://helloworld/external") - String name) { - System.out.println("Entering External Service HelloWorld.getGreetings: " + name); - String response = "Hello " + name; - System.out.println("Leaving External Service HelloWorld.getGreetings: " + response); - return response; - } - - public Foo getGreetingsComplex(Foo foo){ - System.out.println("Entering External Service HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - Foo response = foo; - Bar b3 = new Bar(); - b3.setS("simon"); - b3.setX(7); - b3.setY(new Integer(8)); - b3.setB(Boolean.TRUE); - response.getBars().add(b3); - System.out.println("Leaving External Service HelloWorld.getGreetingsComplex: " + foo.getBars().get(0).getS()); - return response; - } - - public String GetGreetingsCaps(String name) { - System.out.println("Entering External Service HelloWorld.GetGreetingsCaps: " + name); - String response = "Hello " + name; - System.out.println("Leaving External Service HelloWorld.GetGreetingsCaps: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java deleted file mode 100644 index 3a6266f1ef..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java +++ /dev/null @@ -1,49 +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. - */ - -package org.apache.tuscany.sca.binding.ws.jaxws.external.service; - -import javax.xml.ws.Endpoint; - -public class HelloWorldServiceLauncher { - - public Endpoint endpoint; - - public HelloWorldServiceLauncher(){ - - } - - public void createService(){ - System.out.println(">>> Starting external JAXWS service at http://localhost:8086/External/HelloWorld"); - - // default JVM JAXWS support. - endpoint= Endpoint.publish("http://localhost:8086/External/HelloWorld", - new HelloWorldService()); - } - - public void destoryService(){ - System.out.println(">>> Stopping external JAXWS service at http://localhost:8086/External/HelloWorld"); - endpoint.stop(); - } - - public static void main(String[] args) throws Exception { - HelloWorldServiceLauncher launcher = new HelloWorldServiceLauncher(); - launcher.createService(); - } -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/README b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/README deleted file mode 100644 index 41dcb8680b..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/README +++ /dev/null @@ -1,68 +0,0 @@ -The module tests web service communications running over HTTPS. HTTPS is configured -in this embedded test environment by adding the confidentiality intent to both -reference and service and by configuring reference and service side policy sets -to configure the web service binding appropriately to enable SSL. - -When running the web service binding in a container that itself is configured -to provide SSL support these policy sets are not required. TODO can they themselves -detect that they are not required. - -The SSL configuration depends on public/private key pairs and a keystore. This is how -they are organized and generated - - -Generate Private/Public keys into a keystore for use at the server ------------------------------------------------------------------- - -keytool -genkey -keyalg RSA -sigalg MD5withRSA -keysize 1024 -alias TuscanyUser -dname "CN=Tuscany Service, OU=Tuscany, O=Apache, L=Hursley, S=Hampshire, C=UK" -storetype JKS -keystore tuscany.jks -validity 9999 -keypass tuscany -storepass tuscany - -View the contents of the key store that result ----------------------------------------------- - -keytool -list -v -keystore tuscany.jks -storepass tuscany - -Keystore type: JKS -Keystore provider: SUN - -Your keystore contains 1 entry - -Alias name: tuscanyuser -Creation date: 26-Feb-2010 -Entry type: PrivateKeyEntry -Certificate chain length: 1 -Certificate[1]: -Owner: CN=Tuscany Service, OU=Tuscany, O=Apache, L=Hursley, ST=Hampshire, C=UK -Issuer: CN=Tuscany Service, OU=Tuscany, O=Apache, L=Hursley, ST=Hampshire, C=UK -Serial number: 4b87b4d7 -Valid from: Fri Feb 26 11:47:35 GMT 2010 until: Mon Jul 13 12:47:35 BST 2037 -Certificate fingerprints: - MD5: C3:0C:D6:DF:F6:27:26:47:AD:41:44:CA:D7:98:FA:41 - SHA1: 2E:82:AD:F6:54:E0:C6:A5:47:5C:8C:9F:3B:5A:65:8E:F9:5A:40:07 - Signature algorithm name: MD5withRSA - Version: 3 - - -IN THIS EMBEDDED TEST THE FOLLOWING ARE NOT REQUIRED AS BOTH REFERENCE AND SERVICES -ARE RUNNING IN THE SAME JVM AND HAVE ACCESS TO THE SERVICE SIDE KEY STORE - -Generate the client side certificate ------------------------------------- - -keytool -export -alias TuscanyUser -file tuscany.cer -keystore tuscany.jks -storepass tuscany - -Print the contents of the generated certificate file ----------------------------------------------------- - -keytool -printcert -v -file tuscany.cer - -Owner: CN=Tuscany Service, OU=Tuscany, O=Apache, L=Hursley, ST=Hampshire, C=UK -Issuer: CN=Tuscany Service, OU=Tuscany, O=Apache, L=Hursley, ST=Hampshire, C=UK -Serial number: 4b87b4d7 -Valid from: Fri Feb 26 11:47:35 GMT 2010 until: Mon Jul 13 12:47:35 BST 2037 -Certificate fingerprints: - MD5: C3:0C:D6:DF:F6:27:26:47:AD:41:44:CA:D7:98:FA:41 - SHA1: 2E:82:AD:F6:54:E0:C6:A5:47:5C:8C:9F:3B:5A:65:8E:F9:5A:40:07 - Signature algorithm name: MD5withRSA - Version: 3 - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/pom.xml deleted file mode 100644 index 53bfba4dc6..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-http-ssl - Apache Tuscany SCA iTest WS HTTP SSL - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-Beta1 - pom - - - - org.apache.tuscany.sca - tuscany-policy-security - 2.0-Beta1 - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java deleted file mode 100644 index 98eb6e361b..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java +++ /dev/null @@ -1,29 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java deleted file mode 100644 index 2c6c4fc92c..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java +++ /dev/null @@ -1,35 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClient implements HelloWorld { - - @Reference - public HelloWorld helloWorldWS; - - public String getGreetings(String s) { - String response = helloWorldWS.getGreetings(s); - System.out.println("At client: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java deleted file mode 100644 index 3662007984..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java +++ /dev/null @@ -1,30 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -public class HelloWorldService implements HelloWorld { - - public String getGreetings(String s) { - String response = "Hello " + s; - System.out.println("At service: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7e71dd465f..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions deleted file mode 100644 index 04fe620be4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions +++ /dev/null @@ -1,17 +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. -org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml deleted file mode 100644 index d7251590ba..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite deleted file mode 100644 index aa21221b30..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl deleted file mode 100644 index a352696b8e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/tuscany.jks b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/tuscany.jks deleted file mode 100644 index d67bccdf8b..0000000000 Binary files a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/tuscany.jks and /dev/null differ diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java deleted file mode 100644 index d58f761b79..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java +++ /dev/null @@ -1,59 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorld; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.Ignore; - -@Ignore("TUSCANY-3632") -public class HTTPSTestCase extends TestCase { - - private Node node; - private HelloWorld helloWorld; - private HelloWorld helloWorld2; - private HelloWorld helloWorld3; - - @Override - protected void setUp() throws Exception { - node = NodeFactory.newInstance().createNode(new Contribution("test", "target/classes")); - node.start(); - helloWorld = node.getService(HelloWorld.class, "HelloWorldClient"); - helloWorld2 = node.getService(HelloWorld.class, "HelloWorldClient2"); - helloWorld3 = node.getService(HelloWorld.class, "HelloWorldClient3"); - } - - public void testCalculator() throws Exception { - assertEquals("Hello petra", helloWorld.getGreetings("petra")); - assertEquals("Hello petra", helloWorld2.getGreetings("petra")); - // TODO - check policy matching for unconfigure reference - //assertEquals("Hello petra", helloWorld3.getGreetings("petra")); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/pom.xml deleted file mode 100644 index bf25ba78d0..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/pom.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-launcher-axis2 - Apache Tuscany SCA iTest WS Launcher Axis2 - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-Beta1 - pom - - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-Beta1 - - - - - org.apache.tuscany.sca - itest-ws-external-client - 2.0-Beta1 - - - - org.apache.tuscany.sca - itest-ws-external-service - 2.0-Beta1 - - - - - - ${artifactId} - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackForwardSpecTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackForwardSpecTestCase.java deleted file mode 100644 index aaf9504116..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackForwardSpecTestCase.java +++ /dev/null @@ -1,114 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.axis2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class CallbackForwardSpecTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-callback-forwardspec/target/itest-ws-contribution-callback-forwardspec.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - - @Test - @Ignore - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } - - // Test may be causing build hang problems: temporarily ignore - // see dev list 16th July '10 - @Test - @Ignore - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackFullSpecTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackFullSpecTestCase.java deleted file mode 100644 index a8980c8031..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackFullSpecTestCase.java +++ /dev/null @@ -1,111 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.axis2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class CallbackFullSpecTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-callback-fullspec/target/itest-ws-contribution-callback-fullspec.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - - @Test - @Ignore - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } - - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackPromotionTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackPromotionTestCase.java deleted file mode 100644 index 8c26e5c54a..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackPromotionTestCase.java +++ /dev/null @@ -1,112 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.axis2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class CallbackPromotionTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-callback-promotion/target/itest-ws-contribution-callback-promotion.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - - @Test - @Ignore - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } - - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackTestCase.java deleted file mode 100644 index 3bd65d549a..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/CallbackTestCase.java +++ /dev/null @@ -1,112 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.axis2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class CallbackTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-callback/target/itest-ws-contribution-callback.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - -/* - @Test - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } -*/ - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/DocLitTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/DocLitTestCase.java deleted file mode 100644 index a7fb6d6125..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/DocLitTestCase.java +++ /dev/null @@ -1,124 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.axis2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class DocLitTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("doc-lit", "../contribution-doc-lit/target/itest-ws-contribution-doc-lit.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - -/* - @Test - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } -*/ - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsException() throws Exception { - try { - externalClient.getGreetingsException("Fred"); - } catch (Exception ex) { - return; - } - - fail("expecting exception"); - } - - @Test - @Ignore("TUSCANY-3621") - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/DocLitWrappedTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/DocLitWrappedTestCase.java deleted file mode 100644 index 95e61ccc1b..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/DocLitWrappedTestCase.java +++ /dev/null @@ -1,122 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.axis2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class DocLitWrappedTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("doc-lit-wrapped", "../contribution-doc-lit-wrapped/target/itest-ws-contribution-doc-lit-wrapped.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - -/* - @Test - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } -*/ - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsException() throws Exception { - try { - externalClient.getGreetingsException("Fred"); - } catch (Exception ex) { - return; - } - - fail("expecting exception"); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/JavaFirstTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/JavaFirstTestCase.java deleted file mode 100644 index 77418f331f..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/JavaFirstTestCase.java +++ /dev/null @@ -1,123 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.axis2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class JavaFirstTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-java-first/target/itest-ws-contribution-java-first.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - -/* - @Test - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } -*/ - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsException() throws Exception { - try { - externalClient.getGreetingsException("Fred"); - } catch (Exception ex) { - return; - } - - fail("expecting exception"); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/RpcLitTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/RpcLitTestCase.java deleted file mode 100644 index 9f74dd47b8..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/RpcLitTestCase.java +++ /dev/null @@ -1,122 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.axis2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class RpcLitTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("rpc-lit", "../contribution-rpc-lit/target/itest-ws-contribution-rpc-lit.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - -/* - @Test - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } -*/ - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsException() throws Exception { - try { - externalClient.getGreetingsException("Fred"); - } catch (Exception ex) { - return; - } - - fail("expecting exception"); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/WSDLFirstTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/WSDLFirstTestCase.java deleted file mode 100644 index 7ed4829d85..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/axis2/WSDLFirstTestCase.java +++ /dev/null @@ -1,130 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.axis2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; -import junit.framework.TestCase; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class WSDLFirstTestCase extends TestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("wsdl-first", "../contribution-wsdl-first/target/itest-ws-contribution-wsdl-first.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - -/* - @Test - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } -*/ - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - @Ignore - public void testGetGreetingsException() throws Exception { - try { - externalClient.getGreetingsException("Fred"); - } catch (Exception ex) { - return; - } - - fail("expecting exception"); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @Test - public void testGetGreetingsCaps() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetingsCaps("Fred")); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/pom.xml deleted file mode 100644 index 215669b01f..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-launcher-base - Apache Tuscany SCA iTest WS Launcher Base - - - - org.apache.tuscany.sca - tuscany-base-runtime - 2.0-Beta1 - - - - - org.apache.tuscany.sca - itest-ws-external-client - 2.0-Beta1 - - - - org.apache.tuscany.sca - itest-ws-external-service - 2.0-Beta1 - - - - - - ${artifactId} - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackForwardSpecTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackForwardSpecTestCase.java deleted file mode 100644 index d349e450c2..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackForwardSpecTestCase.java +++ /dev/null @@ -1,112 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.base; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class CallbackForwardSpecTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-callback-forwardspec/target/itest-ws-contribution-callback-forwardspec.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - - @Test - @Ignore - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } - - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackFullSpecTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackFullSpecTestCase.java deleted file mode 100644 index 0e0e6e93ba..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackFullSpecTestCase.java +++ /dev/null @@ -1,111 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.base; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class CallbackFullSpecTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-callback-fullspec/target/itest-ws-contribution-callback-fullspec.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - - @Test - @Ignore - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } - - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackPromotionTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackPromotionTestCase.java deleted file mode 100644 index 09697f82ba..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackPromotionTestCase.java +++ /dev/null @@ -1,112 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.base; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class CallbackPromotionTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-callback-promotion/target/itest-ws-contribution-callback-promotion.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - - @Test - @Ignore - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } - - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackTestCase.java deleted file mode 100644 index 49ba20c20b..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/CallbackTestCase.java +++ /dev/null @@ -1,112 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.base; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class CallbackTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-callback/target/itest-ws-contribution-callback.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - -/* - @Test - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } -*/ - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/DocLitWrappedTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/DocLitWrappedTestCase.java deleted file mode 100644 index a85007e019..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/DocLitWrappedTestCase.java +++ /dev/null @@ -1,122 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.base; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class DocLitWrappedTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("doc-lit-wrapped", "../contribution-doc-lit-wrapped/target/itest-ws-contribution-doc-lit-wrapped.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - -/* - @Test - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } -*/ - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsException() throws Exception { - try { - externalClient.getGreetingsException("Fred"); - } catch (Exception ex) { - return; - } - - fail("expecting exception"); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/JavaFirstTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/JavaFirstTestCase.java deleted file mode 100644 index 0aa6a71db4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/JavaFirstTestCase.java +++ /dev/null @@ -1,123 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.base; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class JavaFirstTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-java-first/target/itest-ws-contribution-java-first.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - -/* - @Test - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } -*/ - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsException() throws Exception { - try { - externalClient.getGreetingsException("Fred"); - } catch (Exception ex) { - return; - } - - fail("expecting exception"); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/WSDLFirstTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/WSDLFirstTestCase.java deleted file mode 100644 index c8566bfa3b..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/launcher-base/src/test/java/org/apache/tuscany/sca/binding/ws/launcher/base/WSDLFirstTestCase.java +++ /dev/null @@ -1,125 +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. - */ - -package org.apache.tuscany.sca.binding.ws.launcher.base; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; -import junit.framework.TestCase; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Bar; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Foo; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class WSDLFirstTestCase extends TestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("wsdl-first", "../contribution-wsdl-first/target/itest-ws-contribution-wsdl-first.jar")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - -/* - @Test - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } -*/ - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - @Ignore - public void testGetGreetingsException() throws Exception { - try { - externalClient.getGreetingsException("Fred"); - } catch (Exception ex) { - return; - } - - fail("expecting exception"); - } - - @Test - public void testGetGreetingsComplex() throws Exception { - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.getBars().add(b1); - f.getBars().add(b2); - - Foo f2 = externalClient.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars().get(0).getS()); - assertEquals(1, f2.getBars().get(0).getX()); - assertEquals(2, f2.getBars().get(0).getY().intValue()); - assertTrue(f2.getBars().get(0).isB()); - assertEquals("simon", f2.getBars().get(2).getS()); - assertEquals(7, f2.getBars().get(2).getX()); - assertEquals(8, f2.getBars().get(2).getY().intValue()); - assertTrue(f2.getBars().get(2).isB().booleanValue()); - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/pom.xml deleted file mode 100644 index 7050f9581a..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/pom.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - pom - itest-ws - Apache Tuscany SCA iTest WS - - - defaults - authentication-basic - http-ssl - wsdl - endpoints - endpoint-references - - - contribution-java-first - contribution-wsdl-first - contribution-callback - contribution-callback-forwardspec - contribution-callback-fullspec - contribution-callback-promotion - contribution-doc-lit - contribution-doc-lit-wrapped - contribution-rpc-lit - external-client - external-service - launcher-axis2 - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/pom.xml b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/pom.xml deleted file mode 100644 index 1a40d511bb..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-Beta1 - ../pom.xml - - - itest-ws-wsdl - Apache Tuscany SCA iTest WS WSDL - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-Beta1 - pom - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Account.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Account.java deleted file mode 100644 index 963712c0c2..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Account.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface Account { - - CustomerProfileData getCustomerProfile(String loginID); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/AccountService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/AccountService.java deleted file mode 100644 index ab5fc0f873..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/AccountService.java +++ /dev/null @@ -1,33 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -public class AccountService implements Account { - - public CustomerProfileData getCustomerProfile(String loginID) { - return new CustomerProfileData(loginID); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/CustomerProfileData.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/CustomerProfileData.java deleted file mode 100644 index 6f6a374450..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/CustomerProfileData.java +++ /dev/null @@ -1,113 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -public class CustomerProfileData { - - private String firstName; - private String lastName; - private String address; - private String email; - private String loginID; - private String password; - private int id; - - public CustomerProfileData() { - firstName = "John"; - lastName = "Doe"; - address = "345 Main Street"; - email = "john@doe.org"; - this.loginID = "DefaultloginID"; - password = "hello"; - id = 1234; - } - - public CustomerProfileData(String loginID) { - firstName = "John"; - lastName = "Doe"; - address = "345 Main Street"; - email = "john@doe.org"; - this.loginID = loginID; - password = "hello"; - id = 1234; - } - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - - public String getAddress() { - return address; - } - - public void setAddress(String address) { - this.address = address; - } - - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public String getLoginID() { - return loginID; - } - - public void setLoginID(String loginID) { - this.loginID = loginID; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public int getId() { - return id; - } - - public void setId(int id) { - this.id = id; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java deleted file mode 100644 index d6db1c2d0b..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java +++ /dev/null @@ -1,29 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java deleted file mode 100644 index e248815805..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java +++ /dev/null @@ -1,30 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMElement; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldOM { - - OMElement getGreetings(OMElement parmE); - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java deleted file mode 100644 index 8439696fa8..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMElement; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldOMComponent implements HelloWorldOM { - - @Reference - public HelloWorldOM helloWorldWS; - - public OMElement getGreetings(OMElement om) { - return helloWorldWS.getGreetings(om); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java deleted file mode 100644 index 5b8578c816..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; - -public class HelloWorldOMService implements HelloWorldOM { - - public OMElement getGreetings(OMElement requestOM) { - System.out.println(" **** getGreetings **** "); - String name = requestOM.getFirstElement().getText(); - - OMFactory omFactory = OMAbstractFactory.getOMFactory(); - OMElement responseOM = omFactory.createOMElement("getGreetingsResponse", "http://helloworld-om", "helloworld"); - OMElement param = omFactory.createOMElement("getGreetingsReturn", "http://helloworld-om", "helloworld"); - responseOM.addChild(param); - param.addChild(omFactory.createOMText("Hello " + name)); - - return responseOM; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java deleted file mode 100644 index 052b49ff55..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java +++ /dev/null @@ -1,28 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -public class HelloWorldService implements HelloWorld { - - public String getGreetings(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/package-info.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/package-info.java deleted file mode 100644 index 805a515382..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/package-info.java +++ /dev/null @@ -1,21 +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. - */ - -@javax.xml.bind.annotation.XmlSchema(namespace = "http://accounts") -package org.apache.tuscany.sca.binding.ws.axis2; diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdata.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdata.xsd deleted file mode 100644 index 2479f3dbe5..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdata.xsd +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdefs.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdefs.xsd deleted file mode 100644 index 24cf3eebad..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdefs.xsd +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerinfo.xsd b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerinfo.xsd deleted file mode 100644 index b78909142f..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerinfo.xsd +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.composite deleted file mode 100644 index c520d2e3b2..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.wsdl deleted file mode 100644 index 29be66fb71..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.wsdl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl deleted file mode 100644 index 1a2272d7ee..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import-nested.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import-nested.wsdl deleted file mode 100644 index 686b08a1d4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import-nested.wsdl +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import.wsdl deleted file mode 100644 index 105c82a411..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import.wsdl +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-include.wsdl b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-include.wsdl deleted file mode 100644 index 7a7a4033ce..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-include.wsdl +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-import.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-import.composite deleted file mode 100644 index 65270b8d6c..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-import.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-include.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-include.composite deleted file mode 100644 index 02395c4615..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-include.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl.composite b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl.composite deleted file mode 100644 index 6b06cec722..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java deleted file mode 100644 index b79ee7d254..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java +++ /dev/null @@ -1,62 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.Assert; -import junit.framework.TestCase; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; -import org.apache.axiom.om.OMText; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public class HelloWorldWSDLMergedTestCase extends TestCase { - - private Node node; - private HelloWorldOM helloWorld; - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.composite", new Contribution("test", contribution)); - node.start(); - helloWorld = node.getService(HelloWorldOM.class, "HelloWorldWSDLMergedComponent"); - } - - public void testHelloWorld() throws Exception { - OMFactory fac = OMAbstractFactory.getOMFactory(); - OMElement requestOM = fac.createOMElement("getGreetings", "http://helloworld-om", "helloworld"); - OMElement parmE = fac.createOMElement("name", "http://helloworld-om", "helloworld"); - requestOM.addChild(parmE); - parmE.addChild(fac.createOMText("petra")); - OMElement responseOM = helloWorld.getGreetings(requestOM); - OMElement child = (OMElement)responseOM.getFirstElement(); - Assert.assertEquals("Hello petra", ((OMText)child.getFirstOMChild()).getText()); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLImportTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLImportTestCase.java deleted file mode 100644 index e48e1bc050..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLImportTestCase.java +++ /dev/null @@ -1,99 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.net.URL; -import java.util.List; - -import javax.wsdl.Definition; -import javax.wsdl.Port; -import javax.wsdl.Service; -import javax.wsdl.extensions.soap.SOAPAddress; -import javax.wsdl.factory.WSDLFactory; -import javax.wsdl.xml.WSDLReader; -import javax.xml.namespace.QName; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -public class QuestionMarkWSDLImportTestCase extends TestCase { - - private Node node; - - /** - * Tests ?wsdl works and returns the correct port endpoint from the WSDL - */ - public void testWSDLImportPortEndpoint() throws Exception { - InputStream inp = new URL("http://localhost:8086/AccountService?wsdl").openStream(); - BufferedReader br = new BufferedReader(new InputStreamReader(inp)); - String line; - while((line = br.readLine()) != null) { - System.out.println(line); - } - br.close(); - - WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader(); - wsdlReader.setFeature("javax.wsdl.verbose", false); - wsdlReader.setFeature("javax.wsdl.importDocuments", true); - - Definition definition = wsdlReader.readWSDL("http://localhost:8086/AccountService?wsdl"); - assertNotNull(definition); - Service service = definition.getService(new QName("http://account2/AccountService/Account", "Account")); - Port port = service.getPort("AccountSOAP11Port"); - - String endpoint = getEndpoint(port); - // String ip = HttpUtils.getIpAddress(); - assertEquals("http://localhost:8086/AccountService", endpoint); - } - - private String getEndpoint(Port port) { - List wsdlPortExtensions = port.getExtensibilityElements(); - for (final Object extension : wsdlPortExtensions) { - if (extension instanceof SOAPAddress) { - return ((SOAPAddress) extension).getLocationURI(); - } - } - throw new RuntimeException("no SOAPAddress"); - } - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-import.composite", new Contribution("test", contribution)); - node.start(); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLIncludeTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLIncludeTestCase.java deleted file mode 100644 index 173d952b0e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLIncludeTestCase.java +++ /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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.net.URL; -import java.util.List; - -import javax.wsdl.Definition; -import javax.wsdl.Port; -import javax.wsdl.Service; -import javax.wsdl.extensions.soap.SOAPAddress; -import javax.wsdl.factory.WSDLFactory; -import javax.wsdl.xml.WSDLReader; -import javax.xml.namespace.QName; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -public class QuestionMarkWSDLIncludeTestCase extends TestCase { - - private Node node; - - /** - * Tests ?wsdl works and returns the correct port endpoint from the WSDL - */ - public void testWSDLIncludePortEndpoint() throws Exception { - InputStream inp = new URL("http://localhost:8085/AccountService?wsdl").openStream(); - BufferedReader br = new BufferedReader(new InputStreamReader(inp)); - String line; - while((line = br.readLine()) != null) { - System.out.println(line); - } - br.close(); - - WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader(); - wsdlReader.setFeature("javax.wsdl.verbose", false); - wsdlReader.setFeature("javax.wsdl.importDocuments", true); - - Definition definition = wsdlReader.readWSDL("http://localhost:8085/AccountService?wsdl"); - assertNotNull(definition); - Service service = definition.getService(new QName("http://accounts/AccountService/Account", "Account")); - Port port = service.getPort("AccountSOAP11Port"); - - String endpoint = getEndpoint(port); - assertEquals("http://localhost:8085/AccountService", endpoint); - } - - private String getEndpoint(Port port) { - List wsdlPortExtensions = port.getExtensibilityElements(); - for (final Object extension : wsdlPortExtensions) { - if (extension instanceof SOAPAddress) { - return ((SOAPAddress) extension).getLocationURI(); - } - } - throw new RuntimeException("no SOAPAddress"); - } - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-include.composite", new Contribution("test", contribution)); - node.start(); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLTestCase.java b/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLTestCase.java deleted file mode 100644 index 635c49b8ab..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC3/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLTestCase.java +++ /dev/null @@ -1,126 +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. - */ - -package org.apache.tuscany.sca.binding.ws.axis2; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.net.URL; -import java.util.List; - -import javax.wsdl.Definition; -import javax.wsdl.Port; -import javax.wsdl.Service; -import javax.wsdl.extensions.soap.SOAPAddress; -import javax.wsdl.factory.WSDLFactory; -import javax.wsdl.xml.WSDLReader; -import javax.xml.namespace.QName; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -public class QuestionMarkWSDLTestCase extends TestCase { - - private Node node; - - /** - * Tests ?wsdl works and returns the correct port endpoint from the WSDL - */ - public void testWSDLPortEndpoint() throws Exception { - InputStream inp = new URL("http://localhost:8085/services/HelloWorldWebService2?wsdl").openStream(); - BufferedReader br = new BufferedReader(new InputStreamReader(inp)); - String line; - while((line = br.readLine()) != null) { - System.out.println(line); - } - br.close(); - - WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader(); - wsdlReader.setFeature("javax.wsdl.verbose",false); - wsdlReader.setFeature("javax.wsdl.importDocuments",true); - - Definition definition = wsdlReader.readWSDL("http://localhost:8085/services/HelloWorldWebService2?wsdl"); - assertNotNull(definition); - Service service = definition.getService(new QName("http://helloworld/HelloWorldService/HelloWorld", - "HelloWorld")); - Port port = service.getPort("ep2SOAP11Port"); - - String endpoint = getEndpoint(port); - assertEquals("http://localhost:8085/services/HelloWorldWebService2", endpoint); - } - - /** - * Tests ?wsdl works and returns the correct port endpoint from binding.ws with a custom URI - */ - public void testCustomEndpoint() throws Exception { - InputStream inp = new URL("http://localhost:8085/foo/bar?wsdl").openStream(); - BufferedReader br = new BufferedReader(new InputStreamReader(inp)); - String line; - while((line = br.readLine()) != null) { - System.out.println(line); - } - br.close(); - - WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader(); - wsdlReader.setFeature("javax.wsdl.verbose",false); - wsdlReader.setFeature("javax.wsdl.importDocuments",true); - - Definition definition = wsdlReader.readWSDL("http://localhost:8085/foo/bar?wsdl"); - assertNotNull(definition); - Service service = definition.getService(new QName("http://axis2.ws.binding.sca.tuscany.apache.org/", - "HelloWorld")); - Port port = service.getPort("ep1SOAP11Port"); - - String endpoint = getEndpoint(port); - // TODO - used to get the real host here but WSDL seems to have localhost in it atm? - assertEquals("http://localhost:8085/foo/bar", endpoint); - } - - protected String getEndpoint(Port port) { - List wsdlPortExtensions = port.getExtensibilityElements(); - for (final Object extension : wsdlPortExtensions) { - if (extension instanceof SOAPAddress) { - return ((SOAPAddress) extension).getLocationURI(); - } - } - throw new RuntimeException("no SOAPAddress"); - } - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl.composite", new Contribution("test", contribution)); - node.start(); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} -- cgit v1.2.3