summaryrefslogtreecommitdiffstats
path: root/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main')
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/sca.module49
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl75
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html50
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml27
4 files changed, 0 insertions, 201 deletions
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/sca.module
deleted file mode 100644
index f73adafbd5..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/sca.module
+++ /dev/null
@@ -1,49 +0,0 @@
-<?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.
- -->
-<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/services/HelloWorldE4XWebService"
- port="http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"/>
- </externalService>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl
deleted file mode 100644
index cbc15f58eb..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl
+++ /dev/null
@@ -1,75 +0,0 @@
-<?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/services/HelloWorldWebService"/>
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html
deleted file mode 100644
index 98d76dc25e..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<html>
-<!--
- 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.
- -->
- <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: &nbsp;&nbsp;&nbsp;
- <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>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 9757e60124..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?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>