cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r552244 - in /incubator/cxf/trunk/distribution/src/main/release/samples: js_client/README.txt js_client/build.xml js_client/ js_client/run_client.bat js_client/ js_provider/README.txt
Date Sun, 01 Jul 2007 04:58:18 GMT
Author: ningjiang
Date: Sat Jun 30 21:58:17 2007
New Revision: 552244

CXF-757 applied the patch of Glen, and removed the prerequisite of downloading the js and
xmlbean jars, because we ship them in CXF distribution.

    incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml   (with

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/js_client/README.txt
--- incubator/cxf/trunk/distribution/src/main/release/samples/js_client/README.txt (original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/js_client/README.txt Sat Jun
30 21:58:17 2007
@@ -1,24 +1,11 @@
 Hello World Client Demo using JavaScript 
+The client demo demonstrates the use of (non-browser)
+JavaScript to call a CXF server.
-The client demo demonstrates the use of the JavaScript to call CXF server
+The client side makes call by JAXWS. It uses the Mozilla Rhino library 
+to read the JavaScript file and run it.
-The client side makes call by JAXWS. It use mozilla Rhino library to read 
-java script file and run it.
-You should set the CXF_HOME environment to the CXF install path in 
-run_client and run_client.bat files.
-If your environment already includes cxf-manifest-incubator.jar on the
-CLASSPATH, and the JDK and ant bin directories on the PATH.
-You also need to download js-1.6R5.jar from
-( and xbean-2.2.0.jar 
-from ( and place
-these two jars under CXF_HOME/lib directory. 
 Building and running the demo server using ant
@@ -37,25 +24,22 @@
   ant clean
-Running the demo using javascript
+Running the JavaScript client
+In another command line window, run the ant "client" target from 
+the build.xml file located in the same directory as this README.
-From the samples/js_client directory run the commands, entered on a
-single command line:
-For UNIX (must use forward slashes):
-    ./
-For Windows (may use either forward or back slashes):
-    run_client.bat
+Using either UNIX or Windows:
+  ant client
-When running the client, it can terminate the server process by issuing Ctrl-C in its command
+When running the client, you can terminate the server process by issuing 
+Ctrl-C in its command window.
-It will show the output:
+The client will show this output:
 invoke sayHi().   return Bonjour
 invoke greetMe(String).   return Hello Jeff
-The same time, server give the output:
+The same time, the server will give this output:
      [java] Executing operation sayHi
      [java] Executing operation greetMe

Added: incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml
--- incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml Sat Jun
30 21:58:17 2007
@@ -0,0 +1,30 @@
+<?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
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  KIND, either express or implied. See the License for the
+  specific language governing permissions and limitations
+  under the License.
+<project name="js_client" default="all" basedir=".">   
+    <property name="thirdparty.classpath" 
+       value="../hello_world/build/classes;lib/js-1.6R5.jar;lib/xbean-2.2.0.jar"/>
+    <import file="../common_build.xml"/>    
+    <target name="client" description="run demo client">
+        <cxfrun classname=""
+            param1="src/helloworld.js"/>
+    </target> 

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
--- incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt (original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt Sat Jun
30 21:58:17 2007
@@ -27,10 +27,6 @@
 javac, and java to build and run the demos, you must set the
-You also need to download js-1.6R5.jar from
-( and xbean-2.2.0.jar 
-from ( and place
-these two jars under CXF_HOME/lib directory. 
 Building and running the demo using ant

View raw message