You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sv...@apache.org on 2007/05/17 14:17:06 UTC
svn commit: r538883 - in
/incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main:
resources/META-INF/ resources/META-INF/sca-contribution.xml
resources/jsonrpc.composite webapp/HelloWorldJSONRPC.html
Author: svkrish
Date: Thu May 17 05:17:05 2007
New Revision: 538883
URL: http://svn.apache.org/viewvc?view=rev&rev=538883
Log:
included sca-contribution.xml, changed composite to move service inside component out to the composite, changes to html
Added:
incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/resources/META-INF/
incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/resources/META-INF/sca-contribution.xml
Modified:
incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/resources/jsonrpc.composite
incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/webapp/HelloWorldJSONRPC.html
Added: incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/resources/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/resources/META-INF/sca-contribution.xml?view=auto&rev=538883
==============================================================================
--- incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/resources/META-INF/sca-contribution.xml (added)
+++ incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/resources/META-INF/sca-contribution.xml Thu May 17 05:17:05 2007
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* 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.
+-->
+
+<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"
+targetNamespace="http://sample"
+ xmlns:sample="http://sample">
+ <deployable composite="sample:helloworldjsonrpc"/>
+</contribution>
+
Modified: incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/resources/jsonrpc.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/resources/jsonrpc.composite?view=diff&rev=538883&r1=538882&r2=538883
==============================================================================
--- incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/resources/jsonrpc.composite (original)
+++ incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/resources/jsonrpc.composite Thu May 17 05:17:05 2007
@@ -17,15 +17,20 @@
* specific language governing permissions and limitations
* under the License.
-->
+
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ targetNamespace="http://sample"
+ xmlns:sample="http://sample"
name="helloworldjsonrpc">
+
+ <service name="HelloWorldService" promote="HelloWorldJSONServiceComponent/HelloWorldService">
+ <interface.java interface="helloworldjsonrpc.HelloWorldService"/>
+ <binding.jsonrpc/>
+ </service>
<component name="HelloWorldJSONServiceComponent">
- <service name="HelloWorldService">
- <interface.java interface="helloworldjsonrpc.HelloWorldService"/>
- <binding.jsonrpc/>
- </service>
<implementation.java class="helloworldjsonrpc.HelloWorldServiceImpl"/>
</component>
</composite>
+
Modified: incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/webapp/HelloWorldJSONRPC.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/webapp/HelloWorldJSONRPC.html?view=diff&rev=538883&r1=538882&r2=538883
==============================================================================
--- incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/webapp/HelloWorldJSONRPC.html (original)
+++ incubator/tuscany/java/sca/samples/helloworld-jsonrpc/src/main/webapp/HelloWorldJSONRPC.html Thu May 17 05:17:05 2007
@@ -32,7 +32,7 @@
function getGreeting() {
var name = document.getElementById("name").value;
- var result = SCA.HelloWorldJSONService.getGreetings(name);
+ var result = SCA.HelloWorldService.getGreetings(name);
document.getElementById('greeting').innerHTML=result;
}
</script>
@@ -62,7 +62,7 @@
This example uses the JavaScript served from
<a href="services/SCA/scripts">services/SCA/scripts</a>
to make JSON-RPC requests to the service located at
- <a href="services/HelloWorldJSONService">services/HelloWorldJSONService</a>
+ <a href="services/HelloWorldService">services/HelloWorldService</a>
</tr>
<tr>
<td>Request</td>
@@ -93,9 +93,9 @@
<td colspan="2">
<p>This example uses the <a href="http://dojotoolkit.org/">Dojo Toolkit</a>
to create a JavaScript object <code>helloWorldService</code> for the service at
- <a href="services/HelloWorldJSONService">services/HelloWorldJSONService</a>
+ <a href="services/HelloWorldService">services/HelloWorldService</a>
using <a href="http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book9">Dojo's RPC classes</a>
- and providing them with <a href="services/HelloWorldJSONService?smd">services/HelloWorldJSONService?smd</a>
+ and providing them with <a href="services/HelloWorldService?smd">services/HelloWorldService?smd</a>
for <a href="http://dojo.jot.com/SMD">Simple Method Description (SMD)</a> input.</p>
<p>It then creates a Dojo button that will envoke the <code>getGreetings</code> method of the <code>helloWorldService</code> object.</p>
</tr>
@@ -128,7 +128,7 @@
handlerNode.innerHTML = "<p>" + result + "</p>" ;
}
- var helloWorldService = new dojo.rpc.JsonService("services/HelloWorldJSONService?smd");
+ var helloWorldService = new dojo.rpc.JsonService("services/HelloWorldService?smd");
</script>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org