What do you think, do these have much value? Should it be merged with the helloworldjsonrpc sample? Should I come up with something better for TUSCANY-287?
...ant On 5/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Author: antelder Date: Sun May 14 07:05:15 2006 New Revision: 406330 URL: http://svn.apache.org/viewcvs?rev=406330&view=rev Log: Fix for TUSCANY-287 Added: incubator/tuscany/java/samples/sca/helloworldjsclient/ (with props) incubator/tuscany/java/samples/sca/helloworldjsclient/pom.xml incubator/tuscany/java/samples/sca/helloworldjsclient/src/ incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/ incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/ incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/sca.module incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/ incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/ incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/ incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml Modified: incubator/tuscany/java/samples/sca/helloworlde4xws/ (props changed) incubator/tuscany/java/samples/sca/helloworlde4xws/src/ (props changed) incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/ (props changed) incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/ (props changed) incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/ (props changed) incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/ (props changed) incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/ (props changed) incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/ (props changed) incubator/tuscany/java/samples/sca/pom.xml Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Sun May 14 07:05:15 2006 @@ -1 +1,13 @@ -svn-ignores +target +*.iws +*.ipr +*.iml +.project +.classpath +maven.log +velocity.log* +junit*.properties +.settings +.deployables +.wtpmodules + Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/src/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Sun May 14 07:05:15 2006 @@ -1 +1,13 @@ -svn-ignores +target +*.iws +*.ipr +*.iml +.project +.classpath +maven.log +velocity.log* +junit*.properties +.settings +.deployables +.wtpmodules + Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Sun May 14 07:05:15 2006 @@ -1 +1,13 @@ -svn-ignores +target +*.iws +*.ipr +*.iml +.project +.classpath +maven.log +velocity.log* +junit*.properties +.settings +.deployables +.wtpmodules + Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Sun May 14 07:05:15 2006 @@ -1 +1,13 @@ -svn-ignores +target +*.iws +*.ipr +*.iml +.project +.classpath +maven.log +velocity.log* +junit*.properties +.settings +.deployables +.wtpmodules + Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Sun May 14 07:05:15 2006 @@ -1 +1,13 @@ -svn-ignores +target +*.iws +*.ipr +*.iml +.project +.classpath +maven.log +velocity.log* +junit*.properties +.settings +.deployables +.wtpmodules + Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Sun May 14 07:05:15 2006 @@ -1 +1,13 @@ -svn-ignores +target +*.iws +*.ipr +*.iml +.project +.classpath +maven.log +velocity.log* +junit*.properties +.settings +.deployables +.wtpmodules + Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Sun May 14 07:05:15 2006 @@ -1 +1,13 @@ -svn-ignores +target +*.iws +*.ipr +*.iml +.project +.classpath +maven.log +velocity.log* +junit*.properties +.settings +.deployables +.wtpmodules + Propchange: incubator/tuscany/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Sun May 14 07:05:15 2006 @@ -1 +1,13 @@ -svn-ignores +target +*.iws +*.ipr +*.iml +.project +.classpath +maven.log +velocity.log* +junit*.properties +.settings +.deployables +.wtpmodules + Propchange: incubator/tuscany/java/samples/sca/helloworldjsclient/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Sun May 14 07:05:15 2006 @@ -0,0 +1,13 @@ +target +*.iws +*.ipr +*.iml +.project +.classpath +maven.log +velocity.log* +junit*.properties +.settings +.deployables +.wtpmodules + Added: incubator/tuscany/java/samples/sca/helloworldjsclient/pom.xml URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldjsclient/pom.xml?rev=406330&view=auto ============================================================================== --- incubator/tuscany/java/samples/sca/helloworldjsclient/pom.xml (added) +++ incubator/tuscany/java/samples/sca/helloworldjsclient/pom.xml Sun May 14 07:05:15 2006 @@ -0,0 +1,56 @@ +<?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-helloworldjsclient</artifactId> + <packaging>war</packaging> + <name>Tuscany HelloWorld JSON-RPC WS Client Sample</name> + <description>A web app client for the HelloWorld Web service samples</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.bindings</groupId> + <artifactId>tuscany-binding-jsonrpc</artifactId> + <version>${pom.version}</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany.sca.bindings</groupId> + <artifactId>tuscany-binding-axis2</artifactId> + <version>${pom.version}</version> + <scope>provided</scope> + </dependency> + + </dependencies> + +</project> Added: incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/sca.module URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/sca.module?rev=406330&view=auto ============================================================================== --- incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/sca.module (added) +++ incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/sca.module Sun May 14 07:05:15 2006 @@ -0,0 +1,50 @@ +<?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:jsonrpc="http://org.apache.tuscany/xmlns/jsonrpc/0.9" + + name="sampleHelloworldJSONRPC"> + + <import.sdo wsdlLocation="wsdl/helloworld.wsdl"/> + <import.wsdl wsdlLocation="wsdl/helloworld.wsdl"/> + + <entryPoint name="JavaHelloworld"> + <interface.wsdl interface=" http://helloworld#wsdl.interface(HelloWorld)"/> + <jsonrpc:binding.jsonrpc/> + <reference>JavaHelloworldWS</reference> + </entryPoint> + + <entryPoint name="E4XHelloworld"> + <interface.wsdl interface=" http://helloworld#wsdl.interface(HelloWorld)"/> + <jsonrpc:binding.jsonrpc/> + <reference>E4XHelloworldWS</reference> + </entryPoint> + + <externalService name="JavaHelloworldWS"> + <interface.wsdl interface=" http://helloworld#wsdl.interface(HelloWorld)"/> + <binding.ws port=" http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"/> + </externalService> + + <externalService name="E4XHelloworldWS"> + <interface.wsdl interface=" http://helloworld#wsdl.interface(HelloWorld)"/> + <binding.ws + uri=" http://localhost:8080/sample-helloworlde4xws-SNAPSHOT/services/HelloWorldE4XWebService " + port=" http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"/> + </externalService> + +</module> Added: incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl?rev=406330&view=auto ============================================================================== --- incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl (added) +++ incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl Sun May 14 07:05:15 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> Added: incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html?rev=406330&view=auto ============================================================================== --- incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html (added) +++ incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html Sun May 14 07:05:15 2006 @@ -0,0 +1,35 @@ +<html> + <head> + <title>Tuscany HelloWorld WS Client Sample</TITLE> + + <script type="text/javascript" src="SCA/scripts/sca.js"></script> + + <script language="JavaScript"> + function getGreeting(service) { + var name = document.getElementById("name").value; + var result = service.getGreetings(name); + document.getElementById('greeting').innerHTML=result; + } + </script> + </head> + + <body> + + <h2>Tuscany HelloWorld WS Client Sample</h2><br> + + <p> + Name please: + <input type="text" id="name" size="30" value="World" /> + + <br><BR> + + <input type="button" value="Java WS" onclick="getGreeting( SCA.JavaHelloworld)" /> + <input type="button" value="E4X WS" onclick="getGreeting( SCA.E4XHelloworld)" /> + + </p> + + <br><hr> + <div id='greeting'></div> + + </body> +</html> Added: incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml?rev=406330&view=auto ============================================================================== --- incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml (added) +++ incubator/tuscany/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml Sun May 14 07:05:15 2006 @@ -0,0 +1,27 @@ +<?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 JSON-RPC WS Client Sample</display-name> + + <welcome-file-list id="WelcomeFileList"> + <welcome-file>HelloWorldClient.html</welcome-file> + </welcome-file-list> + +</web-app> Modified: incubator/tuscany/java/samples/sca/pom.xml URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/pom.xml?rev=406330&r1=406329&r2=406330&view=diff ============================================================================== --- incubator/tuscany/java/samples/sca/pom.xml (original) +++ incubator/tuscany/java/samples/sca/pom.xml Sun May 14 07:05:15 2006 @@ -40,5 +40,6 @@ <module>helloworldjsonrpc</module> <module>helloworld-jms</module> <module>helloworlde4xws</module> + <module>helloworldjsclient</module> </modules> </project>
