Author: antelder
Date: Sun May 14 03:47:56 2006
New Revision: 406309

URL: http://svn.apache.org/viewcvs?rev=406309&view=rev
Log:
Fix for TUSCANY-287, delete old JavaScript samples, add a new E4X sample, one 
more to come

Added:
    incubator/tuscany/java/samples/sca/helloworlde4xws/   (with props)
    incubator/tuscany/java/samples/sca/helloworlde4xws/pom.xml
    incubator/tuscany/java/samples/sca/helloworlde4xws/src/   (with props)
    incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/   (with props)
    incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/   
(with props)
    
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/
   (with props)
    
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.componentType
    
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.js
    
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/sca.module
    incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/ 
  (with props)
    
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/helloworld.wsdl
    incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/   (with 
props)
    incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/ 
  (with props)
    
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/web.xml
Removed:
    incubator/tuscany/java/samples/sca/JavaScript/
Modified:
    incubator/tuscany/java/samples/sca/pom.xml

Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun May 14 03:47:56 2006
@@ -0,0 +1 @@
+svn-ignores

Added: incubator/tuscany/java/samples/sca/helloworlde4xws/pom.xml
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworlde4xws/pom.xml?rev=406309&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworlde4xws/pom.xml (added)
+++ incubator/tuscany/java/samples/sca/helloworlde4xws/pom.xml Sun May 14 
03:47:56 2006
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *  Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, 
as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ -->
+<project>
+
+    <parent>
+        <groupId>org.apache.tuscany.samples.sca</groupId>
+        <artifactId>tuscany-samples-sca</artifactId>
+        <version>SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>sample-helloworlde4xws</artifactId>
+    <packaging>war</packaging>
+    <name>Tuscany HelloWorld JavaScript/E4X Web Service Sample</name>
+    <description>A sample HelloWorld Web Service using 
JavaScript/E4X</description>
+    <version>SNAPSHOT</version>
+
+    <dependencies>
+    
+        <dependency>
+            <groupId>org.apache.tuscany</groupId>
+            <artifactId>tuscany-core</artifactId>
+            <version>${pom.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca.containers</groupId>
+            <artifactId>tuscany-container-rhino</artifactId>
+            <version>${pom.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
+    </dependencies>
+</project>

Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/src/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun May 14 03:47:56 2006
@@ -0,0 +1 @@
+svn-ignores

Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun May 14 03:47:56 2006
@@ -0,0 +1 @@
+svn-ignores

Propchange: 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun May 14 03:47:56 2006
@@ -0,0 +1 @@
+svn-ignores

Propchange: 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun May 14 03:47:56 2006
@@ -0,0 +1 @@
+svn-ignores

Added: 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.componentType
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.componentType?rev=406309&view=auto
==============================================================================
--- 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.componentType
 (added)
+++ 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.componentType
 Sun May 14 03:47:56 2006
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+
+    <service name="HelloWorldE4XService">
+        <interface.wsdl interface="http://helloworld#HelloWorld"/>
+    </service>
+
+</componentType>
\ No newline at end of file

Added: 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.js
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.js?rev=406309&view=auto
==============================================================================
--- 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.js
 (added)
+++ 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.js
 Sun May 14 03:47:56 2006
@@ -0,0 +1,28 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+function process(xmlIn) {
+
+   var response = "e4xHello " + xmlIn..*::name;
+
+   var xmlOut = 
+      <ns1:getGreetingsResponse xmlns:ns1="http://helloworld";>
+          <ns1:getGreetingsReturn> { response } </ns1:getGreetingsReturn>
+      </ns1:getGreetingsResponse>;   
+
+   return xmlOut;
+}

Added: 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/sca.module
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/sca.module?rev=406309&view=auto
==============================================================================
--- 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/sca.module
 (added)
+++ 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/sca.module
 Sun May 14 03:47:56 2006
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright (c) 2005 BEA Sytems Inc.
+  Copyright (c) 2005 International Business Machines
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+ -->
+<module xmlns="http://www.osoa.org/xmlns/sca/0.9"; 
xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9";
+        xmlns:js="http://org.apache.tuscany/xmlns/js/0.9";
+        name="helloworld">
+
+    <import.sdo wsdlLocation="wsdl/helloworld.wsdl"/>
+    <import.wsdl wsdlLocation="wsdl/helloworld.wsdl"/>
+
+    <entryPoint name="HelloWorldE4XWebService">
+        <interface.wsdl 
interface="http://helloworld#wsdl.interface(HelloWorld)"/>
+        <binding.ws 
port="http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"/>
+        <reference>HelloWorldComponent</reference>
+    </entryPoint>
+
+    <component name="HelloWorldComponent">
+        <js:implementation.js scriptFile="helloworld/HelloWorldImpl.js"/>
+    </component>
+    
+</module>

Propchange: 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun May 14 03:47:56 2006
@@ -0,0 +1 @@
+svn-ignores

Added: 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/helloworld.wsdl
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/helloworld.wsdl?rev=406309&view=auto
==============================================================================
--- 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/helloworld.wsdl
 (added)
+++ 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/helloworld.wsdl
 Sun May 14 03:47:56 2006
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright (c) 2005 The Apache Software Foundation or its licensors, as 
applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+ -->
+<wsdl:definitions targetNamespace="http://helloworld"; 
xmlns:tns="http://helloworld"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+       name="helloworld">
+
+    <wsdl:types>
+        <schema elementFormDefault="qualified" 
targetNamespace="http://helloworld"; xmlns="http://www.w3.org/2001/XMLSchema";>
+
+            <element name="getGreetings">
+                <complexType>
+                    <sequence>
+                        <element name="name" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+
+            <element name="getGreetingsResponse">
+                <complexType>
+                    <sequence>
+                        <element name="getGreetingsReturn" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+        </schema>
+    </wsdl:types>
+
+    <wsdl:message name="getGreetingsRequest">
+        <wsdl:part element="tns:getGreetings" name="parameters"/>
+    </wsdl:message>
+
+    <wsdl:message name="getGreetingsResponse">
+        <wsdl:part element="tns:getGreetingsResponse" name="parameters"/>
+    </wsdl:message>
+
+    <wsdl:portType name="HelloWorld">
+        <wsdl:operation name="getGreetings">
+            <wsdl:input message="tns:getGreetingsRequest" 
name="getGreetingsRequest"/>
+            <wsdl:output message="tns:getGreetingsResponse" 
name="getGreetingsResponse"/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+    <wsdl:binding name="HelloWorldSoapBinding" type="tns:HelloWorld">
+        <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="getGreetings">
+            <wsdlsoap:operation soapAction=""/>
+            <wsdl:input name="getGreetingsRequest">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="getGreetingsResponse">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+
+    <wsdl:service name="HelloWorldService">
+        <wsdl:port binding="tns:HelloWorldSoapBinding" 
name="HelloWorldSoapPort">
+            <wsdlsoap:address 
location="http://localhost:8080/sample-helloworldws-SNAPSHOT/services/HelloWorldWebService"/>
+        </wsdl:port>
+    </wsdl:service>
+
+</wsdl:definitions>

Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun May 14 03:47:56 2006
@@ -0,0 +1 @@
+svn-ignores

Propchange: 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun May 14 03:47:56 2006
@@ -0,0 +1 @@
+svn-ignores

Added: 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/web.xml?rev=406309&view=auto
==============================================================================
--- 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/web.xml
 (added)
+++ 
incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/web.xml
 Sun May 14 03:47:56 2006
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  Copyright (c) 2005 The Apache Software Foundation or its licensors, as 
applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+ -->
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
+Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
+<web-app>
+
+    <display-name>Tuscany HelloWorld JavaScript Web Service 
Sample</display-name>
+
+</web-app>

Modified: incubator/tuscany/java/samples/sca/pom.xml
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/pom.xml?rev=406309&r1=406308&r2=406309&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/pom.xml (original)
+++ incubator/tuscany/java/samples/sca/pom.xml Sun May 14 03:47:56 2006
@@ -38,7 +38,7 @@
         <module>helloworldwsclient</module>
         <module>supplychain</module>
         <module>helloworldjsonrpc</module>
-        <module>JavaScript</module>
         <module>helloworld-jms</module>
+        <module>helloworlde4xws</module>
     </modules>
 </project>


Reply via email to